Tynamo™-SNAP
v1.0.4

com.qindesign.servlet.example
Class RequestInfoServlet

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

public class RequestInfoServlet
extends HttpServlet

Example servlet showing request headers and info.

Version:
1.0.4
Author:
Shawn Silverman

Constructor Summary
RequestInfoServlet()
           
 
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestInfoServlet

public RequestInfoServlet()
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.

Overrides:
doGet in class HttpServlet
Throws:
IOException
ServletException

Tynamo™-SNAP
v1.0.4

© 2001-2007 Shawn Silverman