|
||||||||||
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.prims.PingServlet2Session2EntityCollection
public class PingServlet2Session2EntityCollection
PingServlet2Session2Entity tests key functionality of a servlet call to a
stateless SessionEJB, and then to a Entity EJB representing data in a database.
This servlet makes use of the Stateless Session EJB Trade
, and then
uses TradeConfig
to generate a random user. The users
portfolio is looked up using the Holding Entity EJB returnin a collection of Holdings
Constructor Summary | |
---|---|
PingServlet2Session2EntityCollection()
|
Method Summary | |
---|---|
void |
doGet(HttpServletRequest req,
HttpServletResponse res)
this is the main method of the servlet that will service all get requests. |
void |
doPost(HttpServletRequest req,
HttpServletResponse res)
forwards post requests to the doGet method Creation date: (11/6/2000 10:52:39 AM) |
String |
getServletInfo()
returns a string of information about the servlet |
void |
init(ServletConfig config)
called when the class is loaded to initialize the servlet |
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 PingServlet2Session2EntityCollection()
Method Detail |
---|
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
doPost
in class HttpServlet
res
- javax.servlet.http.HttpServletRequestres2
- javax.servlet.http.HttpServletResponse
ServletException
IOException
public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException
doGet
in class HttpServlet
request
- HttpServletRequestresponce
- HttpServletResponce
IOException
ServletException
public String getServletInfo()
getServletInfo
in interface Servlet
getServletInfo
in class GenericServlet
public void init(ServletConfig config) throws ServletException
init
in interface Servlet
init
in class GenericServlet
config
- ServletConfig:
ServletException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |