|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.geronimo.samples.daytrader.web.TradeScenarioServlet
public class TradeScenarioServlet
TradeScenarioServlet emulates a population of web users by generating a specific Trade operation for a randomly chosen user on each access to the URL. Test this servlet by clicking Trade Scenario and hit "Reload" on your browser to step through a Trade Scenario. To benchmark using this URL aim your favorite web load generator (such as AKStress) at the Trade Scenario URL and fire away.
Constructor Summary | |
---|---|
TradeScenarioServlet()
|
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 TradeScenarioServlet |
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 |
---|
public TradeScenarioServlet()
Method Detail |
---|
public void init(ServletConfig config) throws ServletException
init
in interface Servlet
init
in class GenericServlet
ServletException
public String getServletInfo()
getServletInfo
in interface Servlet
getServletInfo
in class GenericServlet
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
doGet
in class HttpServlet
request
- Object that encapsulates the request to the servletresponse
- Object that encapsulates the response from the servlet
ServletException
IOException
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
doPost
in class HttpServlet
request
- Object that encapsulates the request to the servletresponse
- Object that encapsulates the response from the servlet
ServletException
IOException
public void performTask(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
request
- Object that encapsulates the request to the servletresponse
- Object that encapsulates the response from the servlet
ServletException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |