com.pow2.servlets
Class HTTPDumpServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.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
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 |
HTTPDumpServlet
public HTTPDumpServlet()
- Default constructor
doGet
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
- Process GET and POST methods.
Redirects to doPost()
.
- Parameters:
request
- the request objectresponse
- 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 objectresponse
- 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.