|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SessionManager
Session Manager. The API required to manage sessions for a servlet context.
Nested Class Summary | |
---|---|
static interface |
SessionManager.MetaManager
MetaManager. |
static interface |
SessionManager.Session
|
Field Summary | |
---|---|
static String |
__MaxAge
Session Max Age. |
static String |
__SessionCookie
Session cookie name. |
static String |
__SessionDomain
Session Domain. |
static String |
__SessionPath
Session Path. |
static String |
__SessionURL
Session URL parameter name. |
static String |
__SessionUrlPrefix
|
Method Summary | |
---|---|
void |
addEventListener(EventListener listener)
Add an event listener. |
void |
clearEventListeners()
|
boolean |
getHttpOnly()
|
HttpSession |
getHttpSession(String id)
|
int |
getMaxInactiveInterval()
|
SessionManager.MetaManager |
getMetaManager()
|
boolean |
getSecureCookies()
|
Cookie |
getSessionCookie(HttpSession session,
String contextPath,
boolean requestIsSecure)
Get a Cookie for a session. |
HttpSession |
newHttpSession(HttpServletRequest request)
|
void |
removeEventListener(EventListener listener)
|
void |
setMaxInactiveInterval(int seconds)
|
void |
setMetaManager(SessionManager.MetaManager meta)
|
Methods inherited from interface org.mortbay.component.LifeCycle |
---|
isFailed, isRunning, isStarted, isStarting, isStopping, start, stop |
Field Detail |
---|
static final String __SessionCookie
static final String __SessionURL
static final String __SessionUrlPrefix
static final String __SessionDomain
static final String __SessionPath
static final String __MaxAge
Method Detail |
---|
HttpSession getHttpSession(String id)
HttpSession newHttpSession(HttpServletRequest request)
boolean getSecureCookies()
boolean getHttpOnly()
int getMaxInactiveInterval()
void setMaxInactiveInterval(int seconds)
void addEventListener(EventListener listener)
listener
- An Event Listener. Individual SessionManagers
implemetations may accept arbitrary listener types, but they
are expected to at least handle
HttpSessionActivationListener,
HttpSessionAttributeListener,
HttpSessionBindingListener,
HttpSessionListenervoid removeEventListener(EventListener listener)
void clearEventListeners()
Cookie getSessionCookie(HttpSession session, String contextPath, boolean requestIsSecure)
session
- contextPath
- TODO
SessionManager.MetaManager getMetaManager()
void setMetaManager(SessionManager.MetaManager meta)
meta
- the cross context session meta manager.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |