org.apache.taglibs.rdc
Class GrammarServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.apache.taglibs.rdc.GrammarServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class GrammarServlet
extends javax.servlet.http.HttpServlet

GrammarServlet serves out grammars from the RDC jar.

Version:
1.0
See Also:
Serialized Form

Constructor Summary
GrammarServlet()
           
 
Method Summary
 void destroy()
          This method is called once by the container just before the servlet is taken out of service.
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          This method is called by the container for each GET request.
 void init()
          This method is called once by the container when the servlet is initialized, before any requests are delivered to the servlet.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
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

GrammarServlet

public GrammarServlet()
Method Detail

init

public void init()
This method is called once by the container when the servlet is initialized, before any requests are delivered to the servlet. GrammarServlet uses init params jar and grammarDirectory These params are recorded in member variables. if no init params are specified, we use some reasonable defaults.

Overrides:
init in class javax.servlet.GenericServlet

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws javax.servlet.ServletException,
                  java.io.IOException
This method is called by the container for each GET request. Grammar to extract is specified as part of the URL We extract this from PathInfo, and serve the specified grammar from the RDC jar file.

Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
java.io.IOException

destroy

public void destroy()
This method is called once by the container just before the servlet is taken out of service.

Specified by:
destroy in interface javax.servlet.Servlet
Overrides:
destroy in class javax.servlet.GenericServlet


Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.