public class RssNewsFeed extends HttpServlet
Modifier and Type | Field and Description |
---|---|
private byte[] |
cachedRssNews |
private java.lang.String |
contextPath |
private static boolean |
enabled |
private java.lang.String |
host |
private static java.util.Date |
lastReset |
private static long |
lastUpdate |
private SessionControl |
sc |
private static long |
serialVersionUID |
private java.nio.charset.Charset |
utf8 |
Constructor and Description |
---|
RssNewsFeed() |
Modifier and Type | Method and Description |
---|---|
protected void |
doGet(HttpServletRequest request,
HttpServletResponse response) |
private java.lang.String |
getNewsFeed(java.lang.String rootUrl,
boolean debug)
Generate the XML string for the news feed.
|
void |
init() |
static boolean |
isEnabled()
Check if the rss servlet has been enabled or not.
|
static void |
reset()
Reset the feed and force it to regenerate it's content.
|
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
private static final long serialVersionUID
private static long lastUpdate
private static java.util.Date lastReset
private static boolean enabled
private java.lang.String host
private java.lang.String contextPath
private java.nio.charset.Charset utf8
private SessionControl sc
private byte[] cachedRssNews
public static void reset()
public static boolean isEnabled()
public void init() throws ServletException
init
in class GenericServlet
ServletException
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException
doGet
in class HttpServlet
ServletException
java.io.IOException
private java.lang.String getNewsFeed(java.lang.String rootUrl, boolean debug)