Class UserSession
java.lang.Object
|
+--javax.servlet.GenericServlet
|
+--javax.servlet.http.HttpServlet
|
+--SuperServlet
|
+--UserSession
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- public class UserSession
- extends SuperServlet
This class implements a servlet for logging in and loggin out a user into
the forum. It uses tables in database: 'db_03_peta_la' at 'atlas.dsv.su.se'.
- Version:
- $Revision: 1.0.1, 2003-11-10 $
- Author:
- Peter Larsson
- See Also:
- Serialized Form
Method Summary |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
The Get method is run when a User is to be logged in or logged out. |
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
The Post method is run when a User is to be logged in or logged out. |
void |
init()
The init-method which is run when servlet is run for the first time. |
Methods inherited from class javax.servlet.http.HttpServlet |
service |
Methods inherited from class javax.servlet.GenericServlet |
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserSession
public UserSession()
init
public void init()
throws javax.servlet.ServletException
The init-method which is run when servlet is run for the first time.
- Overrides:
init
in class SuperServlet
- Throws:
javax.servlet.ServletException
- The standard ServletException
doGet
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
The Get method is run when a User is to be logged in or logged out.
- Parameters:
request
- The Requestresponse
- The Response- Throws:
java.io.IOException
- The standard IOExceptionjavax.servlet.ServletException
- The standard ServletException
doPost
public void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
The Post method is run when a User is to be logged in or logged out.
- Parameters:
request
- The Requestresponse
- The Response- Throws:
java.io.IOException
- The standard IOExceptionjavax.servlet.ServletException
- The standard ServletException