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 |
|---|
AbstractFeed(Resource res,
SlingHttpServletRequest req,
SlingHttpServletResponse resp)
Creates a new feed instance using the specified resource.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCharacterEncoding()
Returns the character encoding of the feed.
|
String |
getContentType()
Returns the content type of the feed.
|
void |
printChildEntries()
Prints the children of the current resource as feed entries
|
void |
printChildEntries(int max)
Prints the children of the current resource as feed entries
|
void |
printEntries(Iterator<Resource> iter)
Prints the specified resources as feed entries
|
void |
printEntries(Iterator<Resource> iter,
int max)
Prints the specified resources as feed entries
|
void |
printEntry(Resource res)
Prints the specified resource as a feed entry
|
void |
printFooter()
Writes the feed footer.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprintEntry, printHeaderpublic AbstractFeed(Resource res, SlingHttpServletRequest req, SlingHttpServletResponse resp) throws RepositoryException
res - The resourcereq - The servlet requestresp - The servlet responseRepositoryException - if no node can be foundpublic String getContentType()
getContentType in interface Feedpublic String getCharacterEncoding()
getCharacterEncoding in interface Feedpublic void printEntry(Resource res) throws IOException
printEntry in interface Feedres - the resourceIOException - If output failspublic void printChildEntries()
throws IOException
printChildEntries in interface FeedIOException - If output failspublic void printChildEntries(int max)
throws IOException
printChildEntries in interface Feedmax - The maximum number of entriesIOException - If output failspublic void printEntries(Iterator<Resource> iter) throws IOException
printEntries in interface Feediter - The resourcesIOException - If output failspublic void printEntries(Iterator<Resource> iter, int max) throws IOException
printEntries in interface Feediter - The resourcesmax - The maximum number of entriesIOException - If output failspublic void printFooter()
throws IOException
printFooter in interface FeedIOException - If output failsCopyright © 2010 - 2020 Adobe. All Rights Reserved