net.dpml.test.http
Class DispatchServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by net.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.

Specified by:
init in interface Servlet
Overrides:
init in class GenericServlet
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.

Overrides:
doPost in class HttpServlet
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.

Overrides:
doGet in class HttpServlet
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.

Specified by:
getServletInfo in interface Servlet
Overrides:
getServletInfo in class GenericServlet
Returns:
the info

destroy

public void destroy()
Destroy the servlet.

Specified by:
destroy in interface Servlet
Overrides:
destroy in class GenericServlet