Class RssFeed

  • All Implemented Interfaces:
    Feed

    public class RssFeed
    extends AbstractFeed
    The RssFeed class prints a resource as an RSS feed.
    • Constructor Detail

      • RssFeed

        public RssFeed​(SlingHttpServletRequest req,
                       SlingHttpServletResponse resp)
                throws javax.jcr.RepositoryException
        Creates a new RssFeed instance using the specified servlet request and response.
        Parameters:
        req - The servlet request
        resp - The servlet response
        Throws:
        javax.jcr.RepositoryException - if no node can be found
      • RssFeed

        public RssFeed​(Resource res,
                       SlingHttpServletRequest req,
                       SlingHttpServletResponse resp)
                throws javax.jcr.RepositoryException
        Creates a new RssFeed instance using the specified resource, servlet request and response.
        Parameters:
        res - The resource
        req - The servlet request
        resp - The servlet response
        Throws:
        javax.jcr.RepositoryException - if no node can be found
    • Method Detail

      • printHeader

        public void printHeader()
                         throws java.io.IOException
        Writes the feed header.
        Throws:
        java.io.IOException - If output fails
      • printEntry

        public void printEntry()
                        throws java.io.IOException
        Prints the current resource as a feed entry.
        Throws:
        java.io.IOException - If output fails