org.apache.geronimo.jmxdebug.web.velocity
Class BasicVelocityActionServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.geronimo.jmxdebug.web.velocity.BasicVelocityActionServlet
- All Implemented Interfaces:
- Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- Direct Known Subclasses:
- DebugServlet
- public abstract class BasicVelocityActionServlet
- extends javax.servlet.http.HttpServlet
Simple servlet to dispatch based on 'action'. Also inits velocity in a
simple way
- Version:
- $Id: BasicVelocityActionServlet.java,v 1.2 2004/07/26 17:14:48 dain Exp $
- See Also:
- Serialized Form
Method Summary |
abstract void |
defaultAction(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Called when there is a request w/ no action verb |
protected abstract String |
getActionVerb()
Defines the 'action verb' for the app |
protected org.apache.velocity.app.VelocityEngine |
getVelocityEngine()
|
void |
init()
|
protected boolean |
renderTemplate(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
org.apache.velocity.VelocityContext velocityContext,
String templateName)
|
void |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
for dispatching to the method specified... |
abstract void |
unknownAction(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Called when there is a request w/ invalid action verb |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_PROPS
public static final String DEFAULT_PROPS
- See Also:
- Constant Field Values
BasicVelocityActionServlet
public BasicVelocityActionServlet()
service
public void service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
- for dispatching to the method specified...
- Throws:
javax.servlet.ServletException
IOException
init
public void init()
throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
getActionVerb
protected abstract String getActionVerb()
- Defines the 'action verb' for the app
defaultAction
public abstract void defaultAction(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
- Called when there is a request w/ no action verb
- Throws:
javax.servlet.ServletException
IOException
unknownAction
public abstract void unknownAction(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
- Called when there is a request w/ invalid action verb
- Throws:
javax.servlet.ServletException
IOException
getVelocityEngine
protected org.apache.velocity.app.VelocityEngine getVelocityEngine()
renderTemplate
protected boolean renderTemplate(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
org.apache.velocity.VelocityContext velocityContext,
String templateName)
Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.