public abstract class BaseRSSMVCResourceCommand extends Object implements MVCResourceCommand
EMPTY
Constructor and Description |
---|
BaseRSSMVCResourceCommand() |
Modifier and Type | Method and Description |
---|---|
protected abstract byte[] |
getRSS(ResourceRequest resourceRequest,
ResourceResponse resourceResponse) |
protected boolean |
isRSSFeedsEnabled(ResourceRequest resourceRequest) |
boolean |
serveResource(ResourceRequest resourceRequest,
ResourceResponse resourceResponse)
Invoked by
MVCPortlet to allow the portlet to serve a resource. |
public boolean serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws 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
otherwisePortletException
protected abstract byte[] getRSS(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws Exception
Exception
protected boolean isRSSFeedsEnabled(ResourceRequest resourceRequest)