| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | __MaxAgeProperty
Session Max Age. |
| public static final String | __SessionCookieProperty
Session cookie name. |
| public static final String | __SessionDomainProperty
Session Domain. |
| public static final String | __SessionIdPathParameterNameProperty
Session id path parameter name. |
| public static final String | __SessionPathProperty
Session Path. |
| Modifier and Type | Method and Description |
|---|---|
| public Cookie | Returns: the session cookie. If not null, this cookie should be set on the response to either migrate the session or to refresh a session cookie that may expire.the session object session, boolean whether the request is secure or not secure)Called by the |
| public void | addEventListener(EventListener
the session event listener to add
Individual SessionManagers implementations may accept arbitrary listener types,
but they are expected to at least handle HttpSessionActivationListener,
HttpSessionAttributeListener, HttpSessionBindingListener and HttpSessionListener. listener)Adds an event listener for session-related events. |
| public void | |
| public void | complete(HttpSession
the session object session)Called by the |
| public String | Returns: the unique id of the session within the cluster (without a node id extension)the session object session)
|
| public boolean | |
| public HttpSession | Returns: theHttpSession with the corresponding id or null if no session with the given id existsthe session id id)Returns the |
| public SessionIdManager | |
| public int | |
| public int | Returns: the max period of inactivity, after which the session is invalidated, in seconds.
|
| public SessionIdManager | |
| public String | Returns: the unique id of the session within the cluster, extended with an optional node id.the session object session)
|
| public boolean | |
| public Cookie | Returns: if thisSessionManager 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.the session to which the cookie should refer. session, String the context to which the cookie should be linked.
The client will only send the cookie value when requesting resources under this path. contextPath, boolean whether the client is accessing the server over a secure protocol (i.e. HTTPS). requestIsSecure)Gets a Cookie for a session. |
| public String | |
| public String | |
| public String | Returns: the URL path parameter name for session id URL rewriting, by default "jsessionid".
|
| public String | Returns: a formatted version ofgetSessionIdPathParameterName(), by default
";" + sessionIdParameterName + "=", for easier lookup in URL strings.
|
| public String | |
| public boolean | |
| public boolean | Returns: whether the given session is valid, that is, it has not been invalidated.the session to test for validity session)
|
| public HttpSession | Returns: the newHttpSessionthe HttpServletRequest containing the requested session id request)Creates a new |
| public void | removeEventListener(EventListener
the session event listener to remove listener)Removes an event listener for for session-related events. |
| public void | setIdManager(SessionIdManager
the cross context session id manager. idManager)Sets the cross context session id manager |
| public void | setMaxCookieAge(int
the max age to set on the session cookie, in seconds maxCookieAge)Sets the max age to set on the session cookie, in seconds |
| public void | setMaxInactiveInterval(int
the max inactivity period, in seconds. seconds)Sets the max period of inactivity, after which the session is invalidated, in seconds. |
| public void | |
| public void | setSessionDomain(String
the domain to set on the session cookie domain)Sets the domain to set on the session cookie |
| public void | |
| public void | setSessionIdPathParameterName(String
the URL path parameter name for session id URL rewriting (null or "none" for no rewriting). parameterName)Sets the session id URL path parameter name. |
| public void | setSessionPath(String
the path to set on the session cookie path)Sets the path to set on the session cookie |
| __DefaultSessionCookie | back to summary |
|---|---|
| public static final String __DefaultSessionCookie | |
| __DefaultSessionDomain | back to summary |
|---|---|
| public static final String __DefaultSessionDomain | |
| __DefaultSessionIdPathParameterName | back to summary |
|---|---|
| public static final String __DefaultSessionIdPathParameterName | |
| __MaxAgeProperty | back to summary |
|---|---|
| public static final String __MaxAgeProperty 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 | back to summary |
|---|---|
| public static final String __SessionCookieProperty Session cookie name. Defaults to JSESSIONID, but can be set with the org.mortbay.jetty.servlet.SessionCookie context init parameter. | |
| __SessionDomainProperty | back to summary |
|---|---|
| public static final String __SessionDomainProperty 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. | |
| __SessionIdPathParameterNameProperty | back to summary |
|---|---|
| public static final String __SessionIdPathParameterNameProperty Session id path parameter name. Defaults to jsessionid, but can be set with the org.mortbay.jetty.servlet.SessionIdPathParameterName context init parameter. If set to null or "none" no URL rewriting will be done. | |
| __SessionPathProperty | back to summary |
|---|---|
| public static final String __SessionPathProperty 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. | |
| access | back to summary |
|---|---|
| public Cookie access(HttpSession session, boolean secure) Called by the
| |
| addEventListener | back to summary |
|---|---|
| public void addEventListener(EventListener listener) Adds an event listener for session-related events.
| |
| clearEventListeners | back to summary |
|---|---|
| public void clearEventListeners() Removes all event listeners for session-related events.
| |
| complete | back to summary |
|---|---|
| public void complete(HttpSession session) Called by the
| |
| getClusterId | back to summary |
|---|---|
public String getClusterId(HttpSession session)
| |
| getHttpOnly | back to summary |
|---|---|
public boolean getHttpOnly()
| |
| getHttpSession | back to summary |
|---|---|
| public HttpSession getHttpSession(String id) Returns the
| |
| getIdManager | back to summary |
|---|---|
public SessionIdManager getIdManager()
| |
| getMaxCookieAge | back to summary |
|---|---|
public int getMaxCookieAge()
| |
| getMaxInactiveInterval | back to summary |
|---|---|
public int getMaxInactiveInterval()
| |
| getMetaManager | back to summary |
|---|---|
| public SessionIdManager getMetaManager()
Deprecated use
| |
| getNodeId | back to summary |
|---|---|
public String getNodeId(HttpSession session)
| |
| getSecureCookies | back to summary |
|---|---|
public boolean getSecureCookies()
| |
| getSessionCookie | back to summary |
|---|---|
| public Cookie getSessionCookie(HttpSession session, String contextPath, boolean requestIsSecure) Gets a Cookie for a session.
| |
| getSessionCookie | back to summary |
|---|---|
public String getSessionCookie()
| |
| getSessionDomain | back to summary |
|---|---|
public String getSessionDomain()
| |
| getSessionIdPathParameterName | back to summary |
|---|---|
public String getSessionIdPathParameterName()
| |
| getSessionIdPathParameterNamePrefix | back to summary |
|---|---|
public String getSessionIdPathParameterNamePrefix()
| |
| getSessionPath | back to summary |
|---|---|
public String getSessionPath()
| |
| isUsingCookies | back to summary |
|---|---|
public boolean isUsingCookies()
| |
| isValid | back to summary |
|---|---|
public boolean isValid(HttpSession session)
| |
| newHttpSession | back to summary |
|---|---|
| public HttpSession newHttpSession(HttpServletRequest request) Creates a new
| |
| removeEventListener | back to summary |
|---|---|
| public void removeEventListener(EventListener listener) Removes an event listener for for session-related events.
| |
| setIdManager | back to summary |
|---|---|
| public void setIdManager(SessionIdManager idManager) Sets the cross context session id manager
| |
| setMaxCookieAge | back to summary |
|---|---|
| public void setMaxCookieAge(int maxCookieAge) Sets the max age to set on the session cookie, in seconds
| |
| setMaxInactiveInterval | back to summary |
|---|---|
| public void setMaxInactiveInterval(int seconds) Sets the max period of inactivity, after which the session is invalidated, in seconds.
| |
| setSessionCookie | back to summary |
|---|---|
| public void setSessionCookie(String cookieName) Sets the session cookie name.
| |
| setSessionDomain | back to summary |
|---|---|
| public void setSessionDomain(String domain) Sets the domain to set on the session cookie
| |
| setSessionHandler | back to summary |
|---|---|
| public void setSessionHandler(SessionHandler handler) Sets the
| |
| setSessionIdPathParameterName | back to summary |
|---|---|
| public void setSessionIdPathParameterName(String parameterName) Sets the session id URL path parameter name.
| |
| setSessionPath | back to summary |
|---|---|
| public void setSessionPath(String path) Sets the path to set on the session cookie
| |