com.qindesign.servlet.example
Class RequestReflectorServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.qindesign.servlet.example.RequestReflectorServlet
- All Implemented Interfaces:
- 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
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
RequestReflectorServlet
public RequestReflectorServlet()
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
© 2001-2007 Shawn Silverman