Package com.day.cq.commons.feed
Class AtomFeed
- java.lang.Object
-
- com.day.cq.commons.feed.AbstractFeed
-
- com.day.cq.commons.feed.AtomFeed
-
- All Implemented Interfaces:
Feed
public class AtomFeed extends AbstractFeed
Deprecated.Use the Apache Sling Atom Tag Library instead.TheAtomFeed
class prints a resource as an Atom feed.
-
-
Field Summary
-
Fields inherited from interface com.day.cq.commons.feed.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 Summary
Constructors Constructor Description AtomFeed(Resource res, SlingHttpServletRequest req, SlingHttpServletResponse resp)
Deprecated.Creates a newAtomFeed
instance using the specified resource, servlet request and response.AtomFeed(SlingHttpServletRequest req, SlingHttpServletResponse resp)
Deprecated.Creates a newAtomFeed
instance using the specified servlet request and response.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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.-
Methods inherited from class com.day.cq.commons.feed.AbstractFeed
getCharacterEncoding, printChildEntries, printChildEntries, printEntries, printEntries, printEntry, printFooter
-
-
-
-
Constructor Detail
-
AtomFeed
public AtomFeed(SlingHttpServletRequest req, SlingHttpServletResponse resp) throws RepositoryException
Deprecated.Creates a newAtomFeed
instance using the specified servlet request and response. The resource to render will be taken from the request.- Parameters:
req
- The servlet requestresp
- The servlet response- Throws:
RepositoryException
- if no node can be found
-
AtomFeed
public AtomFeed(Resource res, SlingHttpServletRequest req, SlingHttpServletResponse resp) throws RepositoryException
Deprecated.Creates a newAtomFeed
instance using the specified resource, servlet request and response.- Parameters:
res
- The resourcereq
- The servlet requestresp
- The servlet response- Throws:
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 interfaceFeed
- Overrides:
getContentType
in classAbstractFeed
- Returns:
- The type
-
-