org.apache.geronimo.samples.daytrader.web
Class TestServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.apache.geronimo.samples.daytrader.web.TestServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class TestServlet
extends HttpServlet

See Also:
Serialized Form

Constructor Summary
TestServlet()
           
 
Method Summary
 void doGet(HttpServletRequest request, HttpServletResponse response)
          Process incoming HTTP GET requests
 void doPost(HttpServletRequest request, HttpServletResponse response)
          Process incoming HTTP POST requests
 void init(ServletConfig config)
           
 void performTask(HttpServletRequest req, HttpServletResponse resp)
          Main service method for TradeAppServlet
 
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, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestServlet

public TestServlet()
Method Detail

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 servlet
response - 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 servlet
response - 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 servlet
response - Object that encapsulates the response from the servlet
Throws:
ServletException
IOException


Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.