org.apache.aries.samples.ariestrader.web.prims
Class PingSession1

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.apache.aries.samples.ariestrader.web.prims.PingSession1
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class PingSession1
extends javax.servlet.http.HttpServlet

PingHTTPSession1 - SessionID tests fundamental HTTP session functionality by creating a unique session ID for each individual user. The ID is stored in the users session and is accessed and displayed on each user request.

See Also:
Serialized Form

Constructor Summary
PingSession1()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          this is the main method of the servlet that will service all get requests.
 void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.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(javax.servlet.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

PingSession1

public PingSession1()
Method Detail

doPost

public void doPost(javax.servlet.http.HttpServletRequest req,
                   javax.servlet.http.HttpServletResponse res)
            throws javax.servlet.ServletException,
                   IOException
forwards post requests to the doGet method Creation date: (11/6/2000 10:52:39 AM)

Overrides:
doPost in class javax.servlet.http.HttpServlet
Parameters:
res - javax.servlet.http.HttpServletRequest
res2 - javax.servlet.http.HttpServletResponse
Throws:
javax.servlet.ServletException
IOException

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws javax.servlet.ServletException,
                  IOException
this is the main method of the servlet that will service all get requests.

Overrides:
doGet in class javax.servlet.http.HttpServlet
Parameters:
request - HttpServletRequest
responce - HttpServletResponce
Throws:
javax.servlet.ServletException
IOException

getServletInfo

public String getServletInfo()
returns a string of information about the servlet

Specified by:
getServletInfo in interface javax.servlet.Servlet
Overrides:
getServletInfo in class javax.servlet.GenericServlet
Returns:
info String: contains info about the servlet

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
called when the class is loaded to initialize the servlet

Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class javax.servlet.GenericServlet
Parameters:
config - ServletConfig:
Throws:
javax.servlet.ServletException


Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.