com.qindesign.servlet.example
Class RequestInfoServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.qindesign.servlet.example.RequestInfoServlet
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
public class RequestInfoServlet
- extends HttpServlet
Example servlet showing request headers and info.
- Version:
- 1.0.4
- Author:
- Shawn Silverman
- 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 |
RequestInfoServlet
public RequestInfoServlet()
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
© 2001-2007 Shawn Silverman