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

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

public class TradeAppServlet
extends HttpServlet

TradeAppServlet provides the standard web interface to Trade and can be accessed with the Go Trade! link. Driving benchmark load using this interface requires a sophisticated web load generator that is capable of filling HTML forms and posting dynamic data.

See Also:
Serialized Form

Constructor Summary
TradeAppServlet()
           
 
Method Summary
 void doGet(HttpServletRequest request, HttpServletResponse response)
          Process incoming HTTP GET requests
 void doPost(HttpServletRequest request, HttpServletResponse response)
          Process incoming HTTP POST requests
 String getServletInfo()
          Returns a string that contains information about TradeScenarioServlet
 void init(ServletConfig config)
          Servlet initialization method.
 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, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TradeAppServlet

public TradeAppServlet()
Method Detail

init

public void init(ServletConfig config)
          throws ServletException
Servlet initialization method.

Specified by:
init in interface Servlet
Overrides:
init in class GenericServlet
Throws:
ServletException

getServletInfo

public String getServletInfo()
Returns a string that contains information about TradeScenarioServlet

Specified by:
getServletInfo in interface Servlet
Overrides:
getServletInfo in class GenericServlet
Returns:
The servlet information

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.