Class AtomFeed

  • All Implemented Interfaces:
    Feed

    public class AtomFeed
    extends AbstractFeed
    Deprecated.
    Use the Apache Sling Atom Tag Library instead.
    The AtomFeed class prints a resource as an Atom feed.
    • Constructor Detail

      • AtomFeed

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

        public AtomFeed​(Resource res,
                        SlingHttpServletRequest req,
                        SlingHttpServletResponse resp)
                 throws javax.jcr.RepositoryException
        Deprecated.
        Creates a new AtomFeed 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
        Deprecated.
        Writes the feed header.
        Throws:
        java.io.IOException - If output fails
      • printEntry

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

        public java.lang.String getContentType()
        Deprecated.
        Returns the content type of the feed.
        Specified by:
        getContentType in interface Feed
        Overrides:
        getContentType in class AbstractFeed
        Returns:
        The type