|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.vt.middleware.ldap.servlets.session.SessionManager
public abstract class SessionManager
SessionManager provides a parent class for initializing a
HttpSession after a successful authentication and destroying a
HttpSession after logout.
| Field Summary | |
|---|---|
protected boolean |
invalidateSession
Whether to invalidate session on logout. |
protected org.apache.commons.logging.Log |
logger
Log for this class. |
protected String |
sessionId
Identifier to set in the session after valid authentication. |
| Constructor Summary | |
|---|---|
SessionManager()
|
|
| Method Summary | |
|---|---|
abstract void |
login(javax.servlet.http.HttpSession session,
String user)
This performs any actions necessary to login the suppled user. |
abstract void |
logout(javax.servlet.http.HttpSession session)
This performs any actions necessary to logout the suppled session. |
void |
setInvalidateSession(boolean invalidate)
This sets whether to invalidate a session on logout. |
void |
setSessionId(String id)
This sets a session id that can be used in login(javax.servlet.http.HttpSession, java.lang.String) or logout(javax.servlet.http.HttpSession). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.apache.commons.logging.Log logger
protected String sessionId
protected boolean invalidateSession
| Constructor Detail |
|---|
public SessionManager()
| Method Detail |
|---|
public void setSessionId(String id)
login(javax.servlet.http.HttpSession, java.lang.String) or logout(javax.servlet.http.HttpSession).
id - Stringpublic void setInvalidateSession(boolean invalidate)
invalidate - boolean
public abstract void login(javax.servlet.http.HttpSession session,
String user)
throws javax.servlet.ServletException
session - HttpSessionuser - String
javax.servlet.ServletException - if an error occurs initializing the session
public abstract void logout(javax.servlet.http.HttpSession session)
throws javax.servlet.ServletException
session - HttpSession
javax.servlet.ServletException - if an error occurs cleaning up the session
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||