public class RssFeed extends AbstractFeed
RssFeed
class prints a resource as an RSS feed.DEFAULT_CHARACTER_ENCODING, DEFAULT_CONTENT_TYPE, SELECTOR_ATOM, SELECTOR_FEED, SELECTOR_FEEDENTRY, SELECTOR_RSS, SUFFIX_COMMENTS, SUFFIX_FEED, SUFFIX_FEEDENTRY, SUFFIX_HTML, SUFFIX_XML
Constructor and Description |
---|
RssFeed(Resource res,
SlingHttpServletRequest req,
SlingHttpServletResponse resp)
Creates a new
RssFeed instance using the specified
resource, servlet request and response. |
RssFeed(SlingHttpServletRequest req,
SlingHttpServletResponse resp)
Creates a new
RssFeed instance using the specified
servlet request and response. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContentType()
Returns the content type of the feed.
|
void |
printEntry()
Prints the current resource as a feed entry.
|
void |
printHeader()
Writes the feed header.
|
getCharacterEncoding, printChildEntries, printChildEntries, printEntries, printEntries, printEntry, printFooter
public RssFeed(SlingHttpServletRequest req, SlingHttpServletResponse resp) throws RepositoryException
RssFeed
instance using the specified
servlet request and response.req
- The servlet requestresp
- The servlet responseRepositoryException
- if no node can be foundpublic RssFeed(Resource res, SlingHttpServletRequest req, SlingHttpServletResponse resp) throws RepositoryException
RssFeed
instance using the specified
resource, servlet request and response.res
- The resourcereq
- The servlet requestresp
- The servlet responseRepositoryException
- if no node can be foundpublic void printHeader() throws java.io.IOException
java.io.IOException
- If output failspublic void printEntry() throws java.io.IOException
java.io.IOException
- If output failspublic java.lang.String getContentType()
getContentType
in interface Feed
getContentType
in class AbstractFeed
Copyright © 2010 - 2020 Adobe. All Rights Reserved