|
|||||||||
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.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 |
---|
static final java.lang.String __SessionCookie
static final java.lang.String __SessionURL
static final java.lang.String __SessionUrlPrefix
static final java.lang.String __SessionDomain
static final java.lang.String __SessionPath
static final java.lang.String __MaxAge
Method Detail |
---|
void initialize(ServletHandler handler)
HttpSession getHttpSession(java.lang.String id)
HttpSession newHttpSession(HttpServletRequest request)
boolean getSecureCookies()
boolean getHttpOnly()
int getMaxInactiveInterval()
void setMaxInactiveInterval(int seconds)
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.void removeEventListener(java.util.EventListener listener)
Cookie getSessionCookie(HttpSession session, boolean requestIsSecure)
session
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |