net.dpml.test.http
Class DispatchServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended bynet.dpml.test.http.DispatchServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class DispatchServlet
extends HttpServlet

Test Servlet RequestDispatcher.

Author:
Greg Wilkins (gregw)
See Also:
Serialized Form

Constructor Summary
DispatchServlet()
           
 
Method Summary
 void destroy()
          Destroy the servlet.
 void doGet(HttpServletRequest sreq, HttpServletResponse sres)
          Process a get request.
 void doPost(HttpServletRequest sreq, HttpServletResponse sres)
          Process a post request.
 String getServletInfo()
          Return thr servlet info.
 void init(ServletConfig config)
          Servlet initialization.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DispatchServlet

public DispatchServlet()
Method Detail

init

public void init(ServletConfig config)
          throws ServletException
Servlet initialization.

Parameters:
config - the servlet config
Throws:
ServletException - in an initialization error occurs

doPost

public void doPost(HttpServletRequest sreq,
                   HttpServletResponse sres)
            throws ServletException,
                   IOException
Process a post request.

Parameters:
sreq - the servlet http request
sres - the servlet http response
Throws:
ServletException - in a processing error occurs
IOException - in an I/O error occurs

doGet

public void doGet(HttpServletRequest sreq,
                  HttpServletResponse sres)
           throws ServletException,
                  IOException
Process a get request.

Parameters:
sreq - the servlet http request
sres - the servlet http response
Throws:
ServletException - in a processing error occurs
IOException - in an I/O error occurs

getServletInfo

public String getServletInfo()
Return thr servlet info.

Returns:
the info

destroy

public void destroy()
Destroy the servlet.