Liferay 7.0-ce-b4

com.liferay.portal.kernel.portlet.bridges.mvc
Class BaseMVCResourceCommand

java.lang.Object
  extended by com.liferay.portal.kernel.portlet.bridges.mvc.BaseMVCResourceCommand
All Implemented Interfaces:
MVCCommand, MVCResourceCommand

public abstract class BaseMVCResourceCommand
extends Object
implements MVCResourceCommand


Field Summary
 
Fields inherited from interface com.liferay.portal.kernel.portlet.bridges.mvc.MVCResourceCommand
EMPTY
 
Constructor Summary
BaseMVCResourceCommand()
           
 
Method Summary
protected abstract  void doServeResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse)
           
protected  PortletConfig getPortletConfig(ResourceRequest resourceRequest)
           
protected  PortletRequestDispatcher getPortletRequestDispatcher(ResourceRequest resourceRequest, String path)
           
protected  void include(ResourceRequest resourceRequest, ResourceResponse resourceResponse, String jspPath)
           
 boolean serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse)
          Invoked by MVCPortlet to allow the portlet to serve a resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseMVCResourceCommand

public BaseMVCResourceCommand()
Method Detail

serveResource

public boolean serveResource(ResourceRequest resourceRequest,
                             ResourceResponse resourceResponse)
                      throws PortletException
Description copied from interface: MVCResourceCommand
Invoked by MVCPortlet to allow the portlet to serve a resource.

Specified by:
serveResource in interface MVCResourceCommand
Parameters:
resourceRequest - the resource request
resourceResponse - the resource response
Returns:
true if an error occurs in serving the resource; false otherwise
Throws:
PortletException

doServeResource

protected abstract void doServeResource(ResourceRequest resourceRequest,
                                        ResourceResponse resourceResponse)
                                 throws Exception
Throws:
Exception

getPortletConfig

protected PortletConfig getPortletConfig(ResourceRequest resourceRequest)

getPortletRequestDispatcher

protected PortletRequestDispatcher getPortletRequestDispatcher(ResourceRequest resourceRequest,
                                                               String path)

include

protected void include(ResourceRequest resourceRequest,
                       ResourceResponse resourceResponse,
                       String jspPath)
                throws IOException,
                       PortletException
Throws:
IOException
PortletException

Liferay 7.0-ce-b4