| org.mortbay.jetty.SessionManager
All known Subclasses: org.mortbay.jetty.servlet.AbstractSessionManager,
SessionManager | public interface SessionManager extends LifeCycle(Code) | | Session Manager.
The API required to manage sessions for a servlet context.
author: Greg Wilkins |
__DefaultSessionCookie | final public static String __DefaultSessionCookie(Code) | | |
__DefaultSessionDomain | final public static String __DefaultSessionDomain(Code) | | |
__DefaultSessionURL | final public static String __DefaultSessionURL(Code) | | |
__MaxAgeProperty | final public static String __MaxAgeProperty(Code) | | Session Max Age.
If this property is set as a ServletContext InitParam, then it is
used as the max age for the session cookie. If it is not set, then
a max age of -1 is used.
|
__SessionCookieProperty | final public static String __SessionCookieProperty(Code) | | Session cookie name.
Defaults to JSESSIONID, but can be set with the
org.mortbay.jetty.servlet.SessionCookie system property.
|
__SessionDomainProperty | final public static String __SessionDomainProperty(Code) | | Session Domain.
If this property is set as a ServletContext InitParam, then it is
used as the domain for session cookies. If it is not set, then
no domain is specified for the session cookie.
|
__SessionPathProperty | final public static String __SessionPathProperty(Code) | | Session Path.
If this property is set as a ServletContext InitParam, then it is
used as the path for the session cookie. If it is not set, then
the context path is used as the path for the cookie.
|
__SessionURLProperty | final public static String __SessionURLProperty(Code) | | Session URL parameter name.
Defaults to jsessionid, but can be set with the
org.mortbay.jetty.servlet.SessionURL system property.
|
access | public Cookie access(HttpSession session, boolean secure)(Code) | | Called by the
SessionHandler when a session is access by a request
Cookie If non null, this cookie should be set on the response to either migrate the session or to refresh a cookie that may expire. |
addEventListener | public void addEventListener(EventListener listener)(Code) | | Add an event listener.
Parameters: listener - An Event Listener. Individual SessionManagersimplemetations may accept arbitrary listener types, but theyare expected to at least handleHttpSessionActivationListener,HttpSessionAttributeListener,HttpSessionBindingListener,HttpSessionListener |
clearEventListeners | public void clearEventListeners()(Code) | | |
getHttpOnly | public boolean getHttpOnly()(Code) | | true if session cookies should be httponly (microsoft extension) |
getMaxCookieAge | public int getMaxCookieAge()(Code) | | |
getMaxInactiveInterval | public int getMaxInactiveInterval()(Code) | | |
getSecureCookies | public boolean getSecureCookies()(Code) | | true if session cookies should be secure |
getSessionCookie | public Cookie getSessionCookie(HttpSession session, String contextPath, boolean requestIsSecure)(Code) | | Get a Cookie for a session.
Parameters: session - The session to which the cookie should refer. Parameters: contextPath - The context to which the cookie should be linked. The client will only send the cookie valuewhen requesting resources under this path. Parameters: requestIsSecure - Whether the client is accessing the server over a secure protocol (i.e. HTTPS). If this SessionManager uses cookies, then this method will return a new Cookie cookie object that should be set on the client in order to link future HTTP requestswith the session . If cookies are not in use, this method returns null . |
getSessionURLPrefix | public String getSessionURLPrefix()(Code) | | |
setIdManager | public void setIdManager(SessionIdManager meta)(Code) | | Parameters: meta - the cross context session meta manager. |
setMaxCookieAge | public void setMaxCookieAge(int maxCookieAgeInSeconds)(Code) | | |
setMaxInactiveInterval | public void setMaxInactiveInterval(int seconds)(Code) | | |
setSessionCookie | public void setSessionCookie(String cookieName)(Code) | | |
setSessionDomain | public void setSessionDomain(String domain)(Code) | | |
|
|