public class FeedRendererServlet extends SlingSafeMethodsServlet
FeedRendererServlet renders the current resource as
an Atom or RSS feed, depending on the value of the second selector.
If no second selector is passed, it defaults to Atom.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTR_NO_INCLUDE
Request attribute to use if whole feed should be rendered
regardless of any other request attribute.
|
| Constructor and Description |
|---|
FeedRendererServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doGet(SlingHttpServletRequest req,
SlingHttpServletResponse resp)
Called by the
SlingSafeMethodsServlet.mayService(SlingHttpServletRequest, SlingHttpServletResponse) method to
handle an HTTP GET request. |
protected Feed |
getFeed(SlingHttpServletRequest req,
SlingHttpServletResponse resp)
Returns an Atom or RSS feed, depending on the value of the second
selector.
|
doGeneric, doHead, doOptions, doTrace, getAllowedRequestMethods, getServletInfo, handleMethodNotImplemented, mayService, service, servicepublic static final java.lang.String ATTR_NO_INCLUDE
protected void doGet(SlingHttpServletRequest req, SlingHttpServletResponse resp) throws ServletException, java.io.IOException
SlingSafeMethodsServlet.mayService(SlingHttpServletRequest, SlingHttpServletResponse) method to
handle an HTTP GET request.
This default implementation reports back to the client that the method is not supported.
Implementations of this class should overwrite this method with their implementation for the HTTP GET method support.
doGet in class SlingSafeMethodsServletreq - The HTTP requestresp - The HTTP responseServletException - Not thrown by this implementation.java.io.IOException - If the error status cannot be reported back to the
client.protected Feed getFeed(SlingHttpServletRequest req, SlingHttpServletResponse resp) throws RepositoryException
req - The servlet requestresp - The servlet responseRepositoryException - If no node can be found