|
|||||||||||
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.
Field Summary | |
static String |
__DefaultSessionCookie
|
static String |
__DefaultSessionDomain
|
static String |
__DefaultSessionURL
|
static String |
__MaxAgeProperty
Session Max Age. |
static String |
__SessionCookieProperty
Session cookie name. |
static String |
__SessionDomainProperty
Session Domain. |
static String |
__SessionPathProperty
Session Path. |
static String |
__SessionURLProperty
Session URL parameter name. |
Methods inherited from interface org.mortbay.component.LifeCycle |
isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, start, stop |
Field Detail |
public static final String __SessionCookieProperty
public static final String __DefaultSessionCookie
public static final String __SessionURLProperty
public static final String __DefaultSessionURL
public static final String __SessionDomainProperty
public static final String __DefaultSessionDomain
public static final String __SessionPathProperty
public static final String __MaxAgeProperty
Method Detail |
public HttpSession getHttpSession(String id)
public HttpSession newHttpSession(HttpServletRequest request)
public boolean getSecureCookies()
public boolean getHttpOnly()
public int getMaxInactiveInterval()
public void setMaxInactiveInterval(int seconds)
public void setSessionHandler(SessionHandler handler)
public 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,
HttpSessionListenerpublic void removeEventListener(EventListener listener)
public void clearEventListeners()
public Cookie getSessionCookie(HttpSession session, String contextPath, boolean requestIsSecure)
session
- The session to which the cookie should refer.contextPath
- The context to which the cookie should be linked. The client will only send the cookie value
when requesting resources under this path.requestIsSecure
- Whether the client is accessing the server over a secure protocol (i.e. HTTPS).
SessionManager
uses cookies, then this method will return a new
cookie object
that should be set on the client in order to link future HTTP requests
with the session
. If cookies are not in use, this method returns null
.public SessionIdManager getIdManager()
public SessionIdManager getMetaManager()
getIdManager()
public void setIdManager(SessionIdManager meta)
meta
- the cross context session meta manager.public boolean isValid(HttpSession session)
public String getNodeId(HttpSession session)
session
-
public String getClusterId(HttpSession session)
session
-
public Cookie access(HttpSession session, boolean secure)
SessionHandler
when a session is access by a request
public void complete(HttpSession session)
SessionHandler
when a reqeuest is not longer
handling a session. Not this includes new sessions, so there may not
be a matching call to #access(HttpSession)
.
public void setSessionCookie(String cookieName)
public String getSessionCookie()
public void setSessionURL(String url)
public String getSessionURL()
public String getSessionURLPrefix()
public void setSessionDomain(String domain)
public String getSessionDomain()
public void setSessionPath(String path)
public String getSessionPath()
public void setMaxCookieAge(int maxCookieAgeInSeconds)
public int getMaxCookieAge()
public boolean isUsingCookies()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |