Class BaseMVCResourceCommand
Object
com.liferay.portal.kernel.portlet.bridges.mvc.BaseMVCResourceCommand
- All Implemented Interfaces:
MVCCommand,MVCResourceCommand
- Direct Known Subclasses:
BaseTransactionalMVCResourceCommand
- Author:
- Brian Wing Shun Chan
-
Field Summary
Fields inherited from interface com.liferay.portal.kernel.portlet.bridges.mvc.MVCResourceCommand
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voiddoServeResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) protected PortletConfiggetPortletConfig(ResourceRequest resourceRequest) protected PortletRequestDispatchergetPortletRequestDispatcher(ResourceRequest resourceRequest, String path) protected voidinclude(ResourceRequest resourceRequest, ResourceResponse resourceResponse, String jspPath) booleanserveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) Invoked byMVCPortletto allow the portlet to serve a resource.
-
Constructor Details
-
BaseMVCResourceCommand
public BaseMVCResourceCommand()
-
-
Method Details
-
serveResource
public boolean serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws PortletException Description copied from interface:MVCResourceCommandInvoked byMVCPortletto allow the portlet to serve a resource.- Specified by:
serveResourcein interfaceMVCResourceCommand- Parameters:
resourceRequest- the resource requestresourceResponse- the resource response- Returns:
trueif an error occurs in serving the resource;falseotherwise- Throws:
PortletException
-
doServeResource
protected abstract void doServeResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws Exception - Throws:
Exception
-
getPortletConfig
-
getPortletRequestDispatcher
protected PortletRequestDispatcher getPortletRequestDispatcher(ResourceRequest resourceRequest, String path) -
include
protected void include(ResourceRequest resourceRequest, ResourceResponse resourceResponse, String jspPath) throws IOException, PortletException - Throws:
IOExceptionPortletException
-