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