java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.velocity.servlet.VelocityServlet
org.roller.presentation.weblog.rss.RssServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- public class RssServlet
- extends org.apache.velocity.servlet.VelocityServlet
Roller's RSS Servlet, extends VelocityServlet to load Roller values into
VelocityContext and to return Roller RSS temlates for execution by
Velocity. Assumes that If-Modified-Since has already been handled.
| Fields inherited from class javax.servlet.http.HttpServlet |
|
| Methods inherited from class org.apache.velocity.servlet.VelocityServlet |
chooseCharacterEncoding, createContext, doGet, doPost, doRequest, getTemplate, getTemplate, handleRequest, init, initVelocity, loadConfiguration, mergeTemplate, requestCleanup, setContentType |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mLogger
private static org.apache.commons.logging.Log mLogger
RssServlet
public RssServlet()
handleRequest
public org.apache.velocity.Template handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.apache.velocity.context.Context ctx)
- Description copied from class:
org.apache.velocity.servlet.VelocityServlet
- Implement this method to add your application data to the context,
calling the
getTemplate() method to produce your return
value.
In the event of a problem, you may handle the request directly
and return null or throw a more meaningful exception
for the error handler to catch.
error
protected void error(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.Exception e)
throws javax.servlet.ServletException,
java.io.IOException
- Handle error in Velocity processing.