org.apache.geronimo.samples.daytrader.web
Class TestServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.geronimo.samples.daytrader.web.TestServlet
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
public class TestServlet
- extends HttpServlet
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestServlet
public TestServlet()
init
public void init(ServletConfig config)
throws ServletException
- Specified by:
init
in interface Servlet
- Overrides:
init
in class GenericServlet
- Throws:
ServletException
doGet
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
- Process incoming HTTP GET requests
- Overrides:
doGet
in class HttpServlet
- Parameters:
request
- Object that encapsulates the request to the servletresponse
- Object that encapsulates the response from the servlet
- Throws:
ServletException
IOException
doPost
public void doPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
- Process incoming HTTP POST requests
- Overrides:
doPost
in class HttpServlet
- Parameters:
request
- Object that encapsulates the request to the servletresponse
- Object that encapsulates the response from the servlet
- Throws:
ServletException
IOException
performTask
public void performTask(HttpServletRequest req,
HttpServletResponse resp)
throws ServletException,
IOException
- Main service method for TradeAppServlet
- Parameters:
request
- Object that encapsulates the request to the servletresponse
- Object that encapsulates the response from the servlet
- Throws:
ServletException
IOException
Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.