com.pow2.servlets
Class HTTPDumpServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended bycom.pow2.servlets.HTTPDumpServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class HTTPDumpServlet
extends HttpServlet

Simple HTTP Dump servlet.
Dumps the incoming HTTP request object and logs its content.

See Also:
Serialized Form

Constructor Summary
HTTPDumpServlet()
          Default constructor
 
Method Summary
 void doGet(HttpServletRequest request, HttpServletResponse response)
          Process GET and POST methods.
 void doPost(HttpServletRequest request, HttpServletResponse response)
          Dump the incoming HTTP request.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, 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

HTTPDumpServlet

public HTTPDumpServlet()
Default constructor

Method Detail

doGet

public void doGet(HttpServletRequest request,
                  HttpServletResponse response)
           throws ServletException,
                  IOException
Process GET and POST methods.
Redirects to doPost().

Parameters:
request - the request object
response - the response object
Throws:
ServletException - if any error occurs
IOException - if any I/O error occurs

doPost

public void doPost(HttpServletRequest request,
                   HttpServletResponse response)
            throws ServletException,
                   IOException
Dump the incoming HTTP request.

Parameters:
request - the request object
response - the response object
Throws:
ServletException - if any error occurs
IOException - if any I/O error occurs


Copyright © 2002-2004 Power Of Two S.R.L. All Rights Reserved.