Class BaseRSSMVCResourceCommand
Object
com.liferay.portal.kernel.portlet.bridges.mvc.BaseRSSMVCResourceCommand
- All Implemented Interfaces:
MVCCommand
,MVCResourceCommand
- Author:
- Eduardo GarcĂa
-
Field Summary
Fields inherited from interface com.liferay.portal.kernel.portlet.bridges.mvc.MVCResourceCommand
EMPTY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract byte[]
getRSS
(ResourceRequest resourceRequest, ResourceResponse resourceResponse) protected boolean
isRSSFeedsEnabled
(ResourceRequest resourceRequest) boolean
serveResource
(ResourceRequest resourceRequest, ResourceResponse resourceResponse) Invoked byMVCPortlet
to allow the portlet to serve a resource.
-
Constructor Details
-
BaseRSSMVCResourceCommand
public BaseRSSMVCResourceCommand()
-
-
Method Details
-
serveResource
public boolean serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws PortletException Description copied from interface:MVCResourceCommand
Invoked byMVCPortlet
to allow the portlet to serve a resource.- Specified by:
serveResource
in interfaceMVCResourceCommand
- Parameters:
resourceRequest
- the resource requestresourceResponse
- the resource response- Returns:
true
if an error occurs in serving the resource;false
otherwise- Throws:
PortletException
-
getRSS
protected abstract byte[] getRSS(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws Exception - Throws:
Exception
-
isRSSFeedsEnabled
-