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(jakarta.portlet.ResourceRequest resourceRequest, jakarta.portlet.ResourceResponse resourceResponse) protected jakarta.portlet.PortletConfiggetPortletConfig(jakarta.portlet.ResourceRequest resourceRequest) protected jakarta.portlet.PortletRequestDispatchergetPortletRequestDispatcher(jakarta.portlet.ResourceRequest resourceRequest, String path) protected voidinclude(jakarta.portlet.ResourceRequest resourceRequest, jakarta.portlet.ResourceResponse resourceResponse, String jspPath) booleanserveResource(jakarta.portlet.ResourceRequest resourceRequest, jakarta.portlet.ResourceResponse resourceResponse) Invoked byMVCPortletto allow the portlet to serve a resource.
-
Constructor Details
-
BaseMVCResourceCommand
public BaseMVCResourceCommand()
-
-
Method Details
-
serveResource
public boolean serveResource(jakarta.portlet.ResourceRequest resourceRequest, jakarta.portlet.ResourceResponse resourceResponse) throws jakarta.portlet.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:
jakarta.portlet.PortletException
-
doServeResource
protected abstract void doServeResource(jakarta.portlet.ResourceRequest resourceRequest, jakarta.portlet.ResourceResponse resourceResponse) throws Exception - Throws:
Exception
-
getPortletConfig
protected jakarta.portlet.PortletConfig getPortletConfig(jakarta.portlet.ResourceRequest resourceRequest) -
getPortletRequestDispatcher
protected jakarta.portlet.PortletRequestDispatcher getPortletRequestDispatcher(jakarta.portlet.ResourceRequest resourceRequest, String path) -
include
protected void include(jakarta.portlet.ResourceRequest resourceRequest, jakarta.portlet.ResourceResponse resourceResponse, String jspPath) throws IOException, jakarta.portlet.PortletException - Throws:
IOExceptionjakarta.portlet.PortletException
-