public class FeedSyndicationServlet extends AbstractServlet
FeedGeneratorResolver
,
FeedGenerator
,
Serialized FormConstructor and Description |
---|
FeedSyndicationServlet()
Construct a new AggregateFeedSyndicationController initialized with a
FeedGeneratorResolver . |
Modifier and Type | Method and Description |
---|---|
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.
|
doGet, doPost, processRequest
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public FeedSyndicationServlet()
FeedGeneratorResolver
.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 responseException
- 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 toIOException
- 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 toIOException
- 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 nullCopyright © 2016 Magnolia International Ltd.. All rights reserved.