edu.pdx.cs399J.servlets
Class SessionServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by edu.pdx.cs399J.servlets.SessionServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class SessionServlet
extends HttpServlet

A servlet that uses a session to maintain information about a user

See Also:
Serialized Form

Constructor Summary
SessionServlet()
           
 
Method Summary
protected  void doGet(HttpServletRequest request, HttpServletResponse response)
          Generates HTML that summarizes the session
protected  void doPost(HttpServletRequest request, HttpServletResponse response)
          Ends the session
 
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, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionServlet

public SessionServlet()
Method Detail

doGet

protected void doGet(HttpServletRequest request,
                     HttpServletResponse response)
              throws ServletException,
                     IOException
Generates HTML that summarizes the session

Overrides:
doGet in class HttpServlet
Throws:
ServletException
IOException

doPost

protected void doPost(HttpServletRequest request,
                      HttpServletResponse response)
               throws ServletException,
                      IOException
Ends the session

Overrides:
doPost in class HttpServlet
Throws:
ServletException
IOException


Copyright © 2000-2009 Portland State University. All Rights Reserved.