public class AtomFeed extends AbstractFeed
AtomFeed class prints a resource as an Atom 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 |
|---|
AtomFeed(Resource res,
SlingHttpServletRequest req,
SlingHttpServletResponse resp)
Deprecated.
Creates a new
AtomFeed instance using the specified
resource, servlet request and response. |
AtomFeed(SlingHttpServletRequest req,
SlingHttpServletResponse resp)
Deprecated.
Creates a new
AtomFeed instance using the specified
servlet request and response. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContentType()
Deprecated.
Returns the content type of the feed.
|
void |
printEntry()
Deprecated.
Prints the current resource as a feed entry.
|
void |
printHeader()
Deprecated.
Writes the feed header.
|
getCharacterEncoding, printChildEntries, printChildEntries, printEntries, printEntries, printEntry, printFooterpublic AtomFeed(SlingHttpServletRequest req, SlingHttpServletResponse resp) throws RepositoryException
AtomFeed instance using the specified
servlet request and response. The resource to render will be taken
from the request.req - The servlet requestresp - The servlet responseRepositoryException - if no node can be foundpublic AtomFeed(Resource res, SlingHttpServletRequest req, SlingHttpServletResponse resp) throws RepositoryException
AtomFeed 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 FeedgetContentType in class AbstractFeedCopyright © 2010 - 2023 Adobe. All Rights Reserved