public abstract class BaseMVCResourceCommand extends Object implements MVCResourceCommand
EMPTY
Constructor and Description |
---|
BaseMVCResourceCommand() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
doServeResource(javax.portlet.ResourceRequest resourceRequest,
javax.portlet.ResourceResponse resourceResponse) |
protected javax.portlet.PortletConfig |
getPortletConfig(javax.portlet.ResourceRequest resourceRequest) |
protected javax.portlet.PortletRequestDispatcher |
getPortletRequestDispatcher(javax.portlet.ResourceRequest resourceRequest,
String path) |
protected void |
include(javax.portlet.ResourceRequest resourceRequest,
javax.portlet.ResourceResponse resourceResponse,
String jspPath) |
boolean |
serveResource(javax.portlet.ResourceRequest resourceRequest,
javax.portlet.ResourceResponse resourceResponse)
Invoked by
MVCPortlet to allow the portlet to serve a resource. |
public boolean serveResource(javax.portlet.ResourceRequest resourceRequest, javax.portlet.ResourceResponse resourceResponse) throws javax.portlet.PortletException
MVCResourceCommand
MVCPortlet
to allow the portlet to serve a resource.serveResource
in interface MVCResourceCommand
resourceRequest
- the resource requestresourceResponse
- the resource responsetrue
if an error occurs in serving the resource;
false
otherwisejavax.portlet.PortletException
protected abstract void doServeResource(javax.portlet.ResourceRequest resourceRequest, javax.portlet.ResourceResponse resourceResponse) throws Exception
Exception
protected javax.portlet.PortletConfig getPortletConfig(javax.portlet.ResourceRequest resourceRequest)
protected javax.portlet.PortletRequestDispatcher getPortletRequestDispatcher(javax.portlet.ResourceRequest resourceRequest, String path)
protected void include(javax.portlet.ResourceRequest resourceRequest, javax.portlet.ResourceResponse resourceResponse, String jspPath) throws IOException, javax.portlet.PortletException
IOException
javax.portlet.PortletException