|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.figure8.join.control.FeedServlet
public class FeedServlet
This a servlet endpoint for news feed generation and distribution. Each request may contain 2 parameters : type may specify the format of syndication feed wanted by client (rss_0.9, rss_1.0, rss_2.0 and atom_0.3 are currently supported), release may contain the name of release to filter news for.
| Field Summary | |
|---|---|
static java.lang.String |
COULD_NOT_GENERATE_FEED_ERROR
Constant for error message returned to client |
static java.lang.String |
DEFAULT_TYPE
Constant for the default feed type (RSS 2.0) |
static java.lang.String |
FEED_TYPE_PARAM
Constant denoting the request parameter specifying the type of feed to generate. |
static java.lang.String |
RELEASE_PARAM
Constant denoting the request parameter specifying the release for whom feed should be generated. |
| Constructor Summary | |
|---|---|
FeedServlet()
|
|
| Method Summary | |
|---|---|
protected com.sun.syndication.feed.synd.SyndFeed |
createFeed(java.util.List messages)
Create a feed using a list of messages. |
protected com.sun.syndication.feed.synd.SyndEntry |
createFeedEntry(Message message)
Create a feed entry from a message. |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Generate and render a syndication feed depending on request parameters (type and release). |
protected void |
initializeManagers()
Retrieve the integration process and reporting managers if they have not been initialized yet. |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doHead, doOptions, doPost, 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 |
| Field Detail |
|---|
public static final java.lang.String FEED_TYPE_PARAM
public static final java.lang.String RELEASE_PARAM
public static final java.lang.String DEFAULT_TYPE
public static final java.lang.String COULD_NOT_GENERATE_FEED_ERROR
| Constructor Detail |
|---|
public FeedServlet()
| Method Detail |
|---|
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
doGet in class javax.servlet.http.HttpServletrequest - The Http request wrapperresponse - The Http response wrapper
java.io.IOException - if something wrong occurs during writing of response stream
protected void initializeManagers()
throws InvalidParameterException
InvalidParameterException - if they cannot be retrieved
protected com.sun.syndication.feed.synd.SyndFeed createFeed(java.util.List messages)
throws com.sun.syndication.io.FeedException
messages - A list of Messages
com.sun.syndication.io.FeedException
protected com.sun.syndication.feed.synd.SyndEntry createFeedEntry(Message message)
throws com.sun.syndication.io.FeedException
message - Message to use for creating entry
com.sun.syndication.io.FeedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||