org.objectweb.jonas.jmx.vjadmin.servlet
Class InitialServlet

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--org.apache.velocity.servlet.VelocityServlet
                    |
                    +--org.objectweb.jonas.jmx.vjadmin.servlet.JadminServlet
                          |
                          +--org.objectweb.jonas.jmx.vjadmin.servlet.InitialServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class InitialServlet
extends JadminServlet

See Also:
Serialized Form

Fields inherited from class org.apache.velocity.servlet.VelocityServlet
CONTENT_TYPE, DEFAULT_CONTENT_TYPE, DEFAULT_OUTPUT_ENCODING, INIT_PROPS_KEY, REQUEST, RESPONSE
 
Constructor Summary
InitialServlet()
           
 
Method Summary
 org.apache.velocity.Template handleRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apache.velocity.context.Context context)
           main routine to handle a request.
protected  java.util.Properties loadConfiguration(javax.servlet.ServletConfig config)
          Called by the VelocityServlet init().
 
Methods inherited from class org.objectweb.jonas.jmx.vjadmin.servlet.JadminServlet
alert, createContext, getDate, init
 
Methods inherited from class org.apache.velocity.servlet.VelocityServlet
doGet, doPost, doRequest, error, getTemplate, getTemplate, handleRequest, mergeTemplate, requestCleanup, setContentType
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, 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
 

Constructor Detail

InitialServlet

public InitialServlet()
Method Detail

loadConfiguration

protected java.util.Properties loadConfiguration(javax.servlet.ServletConfig config)
                                          throws java.io.IOException,
                                                 java.io.FileNotFoundException
Called by the VelocityServlet init(). We set some properties so that Velocity templates will loaded from a directory called "templates" under the Jadmin web application installation directory (i.e. under ../wabapps/jadmin/templates, where jadmin is name of the war containing the web application).
Overrides:
loadConfiguration in class org.apache.velocity.servlet.VelocityServlet

handleRequest

public org.apache.velocity.Template handleRequest(javax.servlet.http.HttpServletRequest request,
                                                  javax.servlet.http.HttpServletResponse response,
                                                  org.apache.velocity.context.Context context)

main routine to handle a request. Called by VelocityServlet, your responsibility as programmer is to simply return a valid Template

Overrides:
handleRequest in class org.apache.velocity.servlet.VelocityServlet
Parameters:
ctx - a Velocity Context object to be filled with data. Will be used for rendering this template
Returns:
Template to be used for request