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(jakarta.portlet.ResourceRequest resourceRequest, jakarta.portlet.ResourceResponse resourceResponse) protected booleanisRSSFeedsEnabled(jakarta.portlet.ResourceRequest resourceRequest) booleanserveResource(jakarta.portlet.ResourceRequest resourceRequest, jakarta.portlet.ResourceResponse resourceResponse) Invoked byMVCPortletto allow the portlet to serve a resource.
-
Constructor Details
-
BaseRSSMVCResourceCommand
public BaseRSSMVCResourceCommand()
-
-
Method Details
-
serveResource
public boolean serveResource(jakarta.portlet.ResourceRequest resourceRequest, jakarta.portlet.ResourceResponse resourceResponse) throws jakarta.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:
jakarta.portlet.PortletException
-
getRSS
protected abstract byte[] getRSS(jakarta.portlet.ResourceRequest resourceRequest, jakarta.portlet.ResourceResponse resourceResponse) throws Exception - Throws:
Exception
-
isRSSFeedsEnabled
protected boolean isRSSFeedsEnabled(jakarta.portlet.ResourceRequest resourceRequest)
-