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 |
|---|---|
java.lang.String |
getCharacterEncoding()
Returns the character encoding of the feed.
|
java.lang.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(java.util.Iterator<Resource> iter)
Prints the specified resources as feed entries
|
void |
printEntries(java.util.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 java.lang.String getContentType()
getContentType in interface Feedpublic java.lang.String getCharacterEncoding()
getCharacterEncoding in interface Feedpublic void printEntry(Resource res) throws java.io.IOException
printEntry in interface Feedres - the resourcejava.io.IOException - If output failspublic void printChildEntries()
throws java.io.IOException
printChildEntries in interface Feedjava.io.IOException - If output failspublic void printChildEntries(int max)
throws java.io.IOException
printChildEntries in interface Feedmax - The maximum number of entriesjava.io.IOException - If output failspublic void printEntries(java.util.Iterator<Resource> iter) throws java.io.IOException
printEntries in interface Feediter - The resourcesjava.io.IOException - If output failspublic void printEntries(java.util.Iterator<Resource> iter, int max) throws java.io.IOException
printEntries in interface Feediter - The resourcesmax - The maximum number of entriesjava.io.IOException - If output failspublic void printFooter()
throws java.io.IOException
printFooter in interface Feedjava.io.IOException - If output failsCopyright © 2010 - 2023 Adobe. All Rights Reserved