public class RssNewsFeed extends HttpServlet
Modifier and Type | Field and Description |
---|---|
private byte[] |
cachedRssNews |
private String |
contextPath |
private static boolean |
enabled |
private String |
host |
private static Date |
lastReset |
private static long |
lastUpdate |
private SessionControl |
sc |
private static long |
serialVersionUID |
private Charset |
utf8 |
Constructor and Description |
---|
RssNewsFeed() |
Modifier and Type | Method and Description |
---|---|
protected void |
doGet(HttpServletRequest request,
HttpServletResponse response) |
private String |
getNewsFeed(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 Date lastReset
private static boolean enabled
private String host
private String contextPath
private 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, IOException
doGet
in class HttpServlet
ServletException
IOException