Class BaseRSSMVCResourceCommand

Object
com.liferay.portal.kernel.portlet.bridges.mvc.BaseRSSMVCResourceCommand
All Implemented Interfaces:
MVCCommand, MVCResourceCommand

public abstract class BaseRSSMVCResourceCommand extends Object implements MVCResourceCommand
Author:
Eduardo GarcĂ­a
  • Field Summary

    Fields inherited from interface com.liferay.portal.kernel.portlet.bridges.mvc.MVCResourceCommand

    EMPTY
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract byte[]
    getRSS(jakarta.portlet.ResourceRequest resourceRequest, jakarta.portlet.ResourceResponse resourceResponse)
     
    protected boolean
    isRSSFeedsEnabled(jakarta.portlet.ResourceRequest resourceRequest)
     
    boolean
    serveResource(jakarta.portlet.ResourceRequest resourceRequest, jakarta.portlet.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 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: 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:
      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)