Tynamo™-TINI
v1.0.4

com.qindesign.servlet.example
Class RequestReflectorServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.qindesign.servlet.example.RequestReflectorServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class RequestReflectorServlet
extends HttpServlet

Example servlet that reflects a request, as the server sees it, back to the client. This is useful for debugging purposes.

Version:
1.0.4
Author:
Shawn Silverman
See Also:
Serialized Form

Constructor Summary
RequestReflectorServlet()
           
 
Method Summary
 void doGet(HttpServletRequest req, HttpServletResponse resp)
          Process a GET request.
protected  void doPost(HttpServletRequest req, HttpServletResponse resp)
          Process a POST request.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestReflectorServlet

public RequestReflectorServlet()
Method Detail

doPost

protected void doPost(HttpServletRequest req,
                      HttpServletResponse resp)
               throws ServletException,
                      IOException
Process a POST request. This calls doGet.

Overrides:
doPost in class HttpServlet
Throws:
ServletException
IOException

doGet

public void doGet(HttpServletRequest req,
                  HttpServletResponse resp)
           throws IOException,
                  ServletException
Process a GET request. This reflects the complete request, as the server sees it, back to the client.

Overrides:
doGet in class HttpServlet
Throws:
IOException
ServletException

Tynamo™-TINI
v1.0.4

© 2001-2007 Shawn Silverman