| 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 | __SessionPathProperty
Session Path. |
| public static final String | __SessionURLProperty
Session URL parameter name. |
| Modifier and Type | Method and Description |
|---|---|
| public Cookie | Returns: 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.Called by the |
| public void | addEventListener(EventListener
An Event Listener. Individual SessionManagers
implemetations may accept arbitrary listener types, but they
are expected to at least handle
HttpSessionActivationListener,
HttpSessionAttributeListener,
HttpSessionBindingListener,
HttpSessionListener listener)Add an event listener. |
| public void | |
| public void | complete(HttpSession session)
Called by the |
| public String | Returns: The unique id of the session within the cluster (without a node id extension)Get the session cluster id |
| public boolean | |
| public HttpSession | |
| public SessionIdManager | |
| public int | |
| public int | |
| public SessionIdManager | |
| public String | Returns: The unique id of the session within the cluster, extended with an optional node id.Get the session node id |
| 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)Get a Cookie for a session. |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public boolean | |
| public boolean | |
| public HttpSession | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| __DefaultSessionCookie | back to summary |
|---|---|
| public static final String __DefaultSessionCookie | |
| __DefaultSessionDomain | back to summary |
|---|---|
| public static final String __DefaultSessionDomain | |
| __DefaultSessionURL | back to summary |
|---|---|
| public static final String __DefaultSessionURL | |
| __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. | |
| __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. | |
| __SessionURLProperty | back to summary |
|---|---|
| public static final String __SessionURLProperty Session URL parameter name. Defaults to jsessionid, but can be set with the org.mortbay.jetty.servlet.SessionURL context init parameter. If set to null or "none" no URL rewriting will be done. | |
| access | back to summary |
|---|---|
| public Cookie access(HttpSession session, boolean secure) Called by the
| |
| addEventListener | back to summary |
|---|---|
| public void addEventListener(EventListener listener) Add an event listener.
| |
| clearEventListeners | back to summary |
|---|---|
| public void clearEventListeners() | |
| complete | back to summary |
|---|---|
| public void complete(HttpSession session) Called by the | |
| getClusterId | back to summary |
|---|---|
| public String getClusterId(HttpSession session) Get the session cluster id
| |
| getHttpOnly | back to summary |
|---|---|
public boolean getHttpOnly()
| |
| getHttpSession | back to summary |
|---|---|
| public HttpSession getHttpSession(String id) | |
| 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) Get the session node id
| |
| getSecureCookies | back to summary |
|---|---|
public boolean getSecureCookies()
| |
| getSessionCookie | back to summary |
|---|---|
| public Cookie getSessionCookie(HttpSession session, String contextPath, boolean requestIsSecure) Get a Cookie for a session.
| |
| getSessionCookie | back to summary |
|---|---|
| public String getSessionCookie() | |
| getSessionDomain | back to summary |
|---|---|
| public String getSessionDomain() | |
| getSessionPath | back to summary |
|---|---|
| public String getSessionPath() | |
| getSessionURL | back to summary |
|---|---|
| public String getSessionURL() | |
| getSessionURLPrefix | back to summary |
|---|---|
| public String getSessionURLPrefix() | |
| 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) | |
| removeEventListener | back to summary |
|---|---|
| public void removeEventListener(EventListener listener) | |
| setIdManager | back to summary |
|---|---|
public void setIdManager(SessionIdManager meta)
| |
| setMaxCookieAge | back to summary |
|---|---|
| public void setMaxCookieAge(int maxCookieAgeInSeconds) | |
| setMaxInactiveInterval | back to summary |
|---|---|
| public void setMaxInactiveInterval(int seconds) | |
| setSessionCookie | back to summary |
|---|---|
| public void setSessionCookie(String cookieName) | |
| setSessionDomain | back to summary |
|---|---|
| public void setSessionDomain(String domain) | |
| setSessionHandler | back to summary |
|---|---|
| public void setSessionHandler(SessionHandler handler) | |
| setSessionPath | back to summary |
|---|---|
| public void setSessionPath(String path) | |
| setSessionURL | back to summary |
|---|---|
| public void setSessionURL(String url) | |