|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Session Manager. The API required to manage sessions for a servlet context.
Nested Class Summary | |
static interface |
SessionManager.Session
|
Field Summary | |
static java.lang.String |
__MaxAge
Session Max Age. |
static java.lang.String |
__SessionCookie
Session cookie name. |
static java.lang.String |
__SessionDomain
Session Domain. |
static java.lang.String |
__SessionPath
Session Path. |
static java.lang.String |
__SessionURL
Session URL parameter name. |
static java.lang.String |
__SessionUrlPrefix
|
Method Summary | |
void |
addEventListener(java.util.EventListener listener)
Add an event listener. |
boolean |
getHttpOnly()
|
HttpSession |
getHttpSession(java.lang.String id)
|
int |
getMaxInactiveInterval()
|
boolean |
getSecureCookies()
|
Cookie |
getSessionCookie(HttpSession session,
boolean requestIsSecure)
Get a Cookie for a session. |
void |
initialize(ServletHandler handler)
|
HttpSession |
newHttpSession(HttpServletRequest request)
|
void |
removeEventListener(java.util.EventListener listener)
|
void |
setMaxInactiveInterval(int seconds)
|
Methods inherited from interface org.mortbay.util.LifeCycle |
isStarted, start, stop |
Field Detail |
public static final java.lang.String __SessionCookie
public static final java.lang.String __SessionURL
public static final java.lang.String __SessionUrlPrefix
public static final java.lang.String __SessionDomain
public static final java.lang.String __SessionPath
public static final java.lang.String __MaxAge
Method Detail |
public void initialize(ServletHandler handler)
public HttpSession getHttpSession(java.lang.String id)
public HttpSession newHttpSession(HttpServletRequest request)
public boolean getSecureCookies()
public boolean getHttpOnly()
public int getMaxInactiveInterval()
public void setMaxInactiveInterval(int seconds)
public void addEventListener(java.util.EventListener listener) throws java.lang.IllegalArgumentException
listener
- An Event Listener. Individual SessionManagers
implemetations may accept arbitrary listener types, but they
are expected to at least handle
HttpSessionActivationListener,
HttpSessionAttributeListener,
HttpSessionBindingListener,
HttpSessionListener
java.lang.IllegalArgumentException
- If an unsupported listener
is passed.public void removeEventListener(java.util.EventListener listener)
public Cookie getSessionCookie(HttpSession session, boolean requestIsSecure)
session
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |