|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.GenericServlet javax.servlet.http.HttpServlet info.magnolia.module.rssaggregator.servlet.AbstractServlet info.magnolia.module.rssaggregator.servlet.FeedSyndicationServlet
public class FeedSyndicationServlet
Writes an XML feed to the response. Based on the given request parameters, a FeedGenerator will be resolved and is used for generating an XML feed. The content of the feed will be written to the response with the appropriate character encoding.
FeedGeneratorResolver
,
FeedGenerator
,
Serialized FormConstructor Summary | |
---|---|
FeedSyndicationServlet()
Construct a new AggregateFeedSyndicationController initialized with a FeedGeneratorResolver . |
Method Summary | |
---|---|
void |
handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Subclass need implement this method in order to handle the request. |
void |
setFeedGeneratorResolver(FeedGeneratorResolver feedGeneratorResolver)
Set the FeedGeneratorResolver used for resolving the FeedGenerators. |
protected void |
writeToResponse(String content,
String characterEncoding,
javax.servlet.http.HttpServletResponse response)
Write the given content to the response using the default content type text/xml. |
protected void |
writeToResponse(String content,
String contentType,
String characterEncoding,
javax.servlet.http.HttpServletResponse response)
Write the given content to the response. |
Methods inherited from class info.magnolia.module.rssaggregator.servlet.AbstractServlet |
---|
doGet, doPost, processRequest |
Methods inherited from class javax.servlet.http.HttpServlet |
---|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FeedSyndicationServlet()
FeedGeneratorResolver
.
Method Detail |
---|
public void handleRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
AbstractServlet
handleRequest
in class AbstractServlet
request
- the request to handleresponse
- the associated response
Exception
- if an exception occurs during request handlingprotected void writeToResponse(String content, String contentType, String characterEncoding, javax.servlet.http.HttpServletResponse response) throws IOException
content
- the content to writecharacterEncoding
- the character encoding to useresponse
- the response to write to
IOException
- if an IOException occursprotected void writeToResponse(String content, String characterEncoding, javax.servlet.http.HttpServletResponse response) throws IOException
content
- the content to writecharacterEncoding
- the character encoding to useresponse
- the response to write to
IOException
- if an IOException occurspublic void setFeedGeneratorResolver(FeedGeneratorResolver feedGeneratorResolver)
FeedGeneratorResolver
used for resolving the FeedGenerators.
feedGeneratorResolver
- the generator resolver to be used (must not be null)
IllegalArgumentException
- if the given generatorResolver
is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |