If the property org.mortbay.jetty.servlet.AbstractSessionManager.23Notifications is set to true, the 2.3 servlet spec notification style will be used.
| Modifier and Type | Class and Description |
|---|---|
| public static class | AbstractSessionManager.
Deprecated
as a consequence of Null returning implementation of HttpSessionContext
HttpSessionContext being deprecated.
|
| public abstract class | AbstractSessionManager.
Implements |
| public static interface | AbstractSessionManager.
Interface that any session wrapper should implement so that SessionManager may access the Jetty session implementation. |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| private static final HttpSessionContext | __nullSessionContext
Deprecated
as a consequence of
HttpSessionContext being deprecated.
|
| protected ContextHandler. | |
| protected int | |
| protected boolean | |
| protected ClassLoader | |
| protected int | |
| protected int | |
| protected int | |
| protected boolean | |
| protected int | |
| protected boolean | |
| protected Object | |
| protected String | |
| protected String | |
| protected SessionHandler | |
| protected SessionIdManager | |
| protected String | |
| protected String | |
| protected Object | |
| protected String | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Cookie | access(HttpSession
the session object session, boolean whether the request is secure or not secure)Implements org. SessionHandler when a session is first accessed by a request.
|
| 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)Implements org. |
| protected abstract void | |
| protected void | addSession(AbstractSessionManager.
Add the session Registers the session with this manager and registers the session ID with the sessionIDManager; |
| public void | clearEventListeners()
Implements org. |
| public void | complete(HttpSession
the session object session)Implements org. SessionHandler when a session is last accessed by a request.
|
| public void | |
| public void | |
| public String | getClusterId(HttpSession
the session object session)Implements org. |
| public boolean | |
| public HttpSession | getHttpSession(String
the session id nodeId)Implements org. HttpSession with the given session id
|
| public SessionIdManager | Returns: Returns the metaManager used for cross context session managementImplements org. |
| public int | |
| public int | Returns: secondsImplements org. |
| public int | |
| public SessionIdManager | getMetaManager()
Implements org.
Deprecated
use
getIdManager()
|
| public int | |
| public String | getNodeId(HttpSession
the session object session)Implements org. |
| public int | |
| public boolean | Returns: Returns the secureCookies.Implements org. |
| public abstract AbstractSessionManager. | Returns: A Session or null if none exists.The session ID in the cluster, stripped of any worker name. idInCluster)Get a known existingsession |
| public String | |
| public Cookie | getSessionCookie(HttpSession
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)Implements org. |
| public String | |
| public SessionHandler | |
| public String | |
| public String | |
| public abstract Map | |
| public String | |
| public abstract int | |
| protected abstract void | |
| public boolean | Returns: true if the cluster node id (worker id) is returned as part of the session id byHttpSession#getId(). Default is false.
|
| public boolean | Returns: Returns the usingCookies.Implements org. |
| public boolean | isValid(HttpSession
the session to test for validity session)Implements org. |
| public HttpSession | newHttpSession(HttpServletRequest
the HttpServletRequest containing the requested session id request)Implements org. |
| protected abstract AbstractSessionManager. | |
| public void | removeEventListener(EventListener
the session event listener to remove listener)Implements org. |
| public void | removeSession(HttpSession
The session to remove session, boolean True if invalidate)HttpSessionListener#sessionDestroyed(HttpSessionEvent) and
SessionIdManager#invalidateAll(String) should be called.Remove session from manager |
| public void | removeSession(AbstractSessionManager.
The session to remove session,True if invalidate)HttpSessionListener#sessionDestroyed(HttpSessionEvent) and
SessionIdManager#invalidateAll(String) should be called.Remove session from manager |
| protected abstract void | |
| public void | |
| public void | |
| public void | setIdManager(SessionIdManager
The metaManager used for cross context session management. metaManager)Implements org. |
| public void | setMaxCookieAge(int
the max age to set on the session cookie, in seconds maxCookieAgeInSeconds)Implements org. |
| public void | setMaxInactiveInterval(int seconds)
Implements org. |
| public void | |
| public void | setNodeIdInSessionId(boolean
true if the cluster node id (worker id) will be returned as part of the session id by nodeIdInSessionId)HttpSession#getId(). Default is false.
|
| public void | |
| public void | |
| public void | setSessionCookie(String
the session cookie name cookieName)Implements org. |
| public void | setSessionDomain(String
the domain to set on the session cookie domain)Implements org. |
| public void | setSessionHandler(SessionHandler
The sessionHandler to set. sessionHandler)Implements org. SessionHandler.
|
| public void | setSessionIdPathParameterName(String
the URL path parameter name for session id URL rewriting (null or "none" for no rewriting). param)Implements org. |
| public void | setSessionPath(String
the path to set on the session cookie path)Implements org. |
| public void |
| __distantFuture | back to summary |
|---|---|
| public static final int __distantFuture | |
| __nullSessionContext | back to summary |
|---|---|
| private static final HttpSessionContext __nullSessionContext
Deprecated as a consequence of | |
| _context | back to summary |
|---|---|
| protected ContextHandler. | |
| _dftMaxIdleSecs | back to summary |
|---|---|
| protected int _dftMaxIdleSecs | |
| _httpOnly | back to summary |
|---|---|
| protected boolean _httpOnly | |
| _loader | back to summary |
|---|---|
| protected ClassLoader _loader | |
| _maxCookieAge | back to summary |
|---|---|
| protected int _maxCookieAge | |
| _maxSessions | back to summary |
|---|---|
| protected int _maxSessions | |
| _minSessions | back to summary |
|---|---|
| protected int _minSessions | |
| _nodeIdInSessionId | back to summary |
|---|---|
| protected boolean _nodeIdInSessionId | |
| _refreshCookieAge | back to summary |
|---|---|
| protected int _refreshCookieAge | |
| _secureCookies | back to summary |
|---|---|
| protected boolean _secureCookies | |
| _sessionAttributeListeners | back to summary |
|---|---|
| protected Object _sessionAttributeListeners | |
| _sessionCookie | back to summary |
|---|---|
| protected String _sessionCookie | |
| _sessionDomain | back to summary |
|---|---|
| protected String _sessionDomain | |
| _sessionHandler | back to summary |
|---|---|
| protected SessionHandler _sessionHandler | |
| _sessionIdManager | back to summary |
|---|---|
| protected SessionIdManager _sessionIdManager | |
| _sessionIdPathParameterName | back to summary |
|---|---|
| protected String _sessionIdPathParameterName | |
| _sessionIdPathParameterNamePrefix | back to summary |
|---|---|
| protected String _sessionIdPathParameterNamePrefix | |
| _sessionListeners | back to summary |
|---|---|
| protected Object _sessionListeners | |
| _sessionPath | back to summary |
|---|---|
| protected String _sessionPath | |
| _usingCookies | back to summary |
|---|---|
| private boolean _usingCookies | |
| AbstractSessionManager | back to summary |
|---|---|
| public AbstractSessionManager() | |
| access | back to summary |
|---|---|
| public Cookie access(HttpSession session, boolean secure) Implements org. Doc from org. Called by the
| |
| addEventListener | back to summary |
|---|---|
| public void addEventListener(EventListener listener) Implements org. Doc from org. Adds an event listener for session-related events.
| |
| addSession | back to summary |
|---|---|
| protected abstract void addSession(AbstractSessionManager. | |
| addSession | back to summary |
|---|---|
| protected void addSession(AbstractSessionManager. Add the session Registers the session with this manager and registers the session ID with the sessionIDManager; | |
| clearEventListeners | back to summary |
|---|---|
| public void clearEventListeners() Implements org. Doc from org. Removes all event listeners for session-related events. | |
| complete | back to summary |
|---|---|
| public void complete(HttpSession session) Implements org. Doc from org. Called by the
| |
| doStart | back to summary |
|---|---|
| public void doStart() throws Exception | |
| doStop | back to summary |
|---|---|
| public void doStop() throws Exception | |
| getClusterId | back to summary |
|---|---|
| public String getClusterId(HttpSession session) Implements org.
| |
| getHttpOnly | back to summary |
|---|---|
| public boolean getHttpOnly() Implements org.
| |
| getHttpSession | back to summary |
|---|---|
| public HttpSession getHttpSession(String nodeId) Implements org. Doc from org. Returns the
| |
| getIdManager | back to summary |
|---|---|
| public SessionIdManager getIdManager() Implements org.
| |
| getMaxCookieAge | back to summary |
|---|---|
| public int getMaxCookieAge() Implements org.
| |
| getMaxInactiveInterval | back to summary |
|---|---|
| public int getMaxInactiveInterval() Implements org.
| |
| getMaxSessions | back to summary |
|---|---|
| public int getMaxSessions() | |
| getMetaManager | back to summary |
|---|---|
| public SessionIdManager getMetaManager() Implements org. Deprecated use
| |
| getMinSessions | back to summary |
|---|---|
| public int getMinSessions() | |
| getNodeId | back to summary |
|---|---|
| public String getNodeId(HttpSession session) Implements org.
| |
| getRefreshCookieAge | back to summary |
|---|---|
| public int getRefreshCookieAge() | |
| getSecureCookies | back to summary |
|---|---|
| public boolean getSecureCookies() Implements org.
| |
| getSession | back to summary |
|---|---|
| public abstract AbstractSessionManager. Get a known existingsession
| |
| getSessionCookie | back to summary |
|---|---|
| public String getSessionCookie() Implements org.
| |
| getSessionCookie | back to summary |
|---|---|
| public Cookie getSessionCookie(HttpSession session, String contextPath, boolean requestIsSecure) Implements org. Doc from org. Gets a Cookie for a session.
| |
| getSessionDomain | back to summary |
|---|---|
| public String getSessionDomain() Implements org.
| |
| getSessionHandler | back to summary |
|---|---|
public SessionHandler getSessionHandler()
| |
| getSessionIdPathParameterName | back to summary |
|---|---|
| public String getSessionIdPathParameterName() Implements org.
| |
| getSessionIdPathParameterNamePrefix | back to summary |
|---|---|
| public String getSessionIdPathParameterNamePrefix() Implements org.
| |
| getSessionMap | back to summary |
|---|---|
| public abstract Map Deprecated Need to review if it is needed. | |
| getSessionPath | back to summary |
|---|---|
| public String getSessionPath() Implements org.
| |
| getSessions | back to summary |
|---|---|
| public abstract int getSessions() | |
| invalidateSessions | back to summary |
|---|---|
| protected abstract void invalidateSessions() | |
| isNodeIdInSessionId | back to summary |
|---|---|
public boolean isNodeIdInSessionId()
| |
| isUsingCookies | back to summary |
|---|---|
| public boolean isUsingCookies() Implements org.
| |
| isValid | back to summary |
|---|---|
| public boolean isValid(HttpSession session) Implements org.
| |
| newHttpSession | back to summary |
|---|---|
| public HttpSession newHttpSession(HttpServletRequest request) Implements org. Create a new HttpSession for a request
| |
| newSession | back to summary |
|---|---|
| protected abstract AbstractSessionManager. Create a new session instance | |
| removeEventListener | back to summary |
|---|---|
| public void removeEventListener(EventListener listener) Implements org. Doc from org. Removes an event listener for for session-related events.
| |
| removeSession | back to summary |
|---|---|
| public void removeSession(HttpSession session, boolean invalidate) Remove session from manager
| |
| removeSession | back to summary |
|---|---|
| public void removeSession(AbstractSessionManager. Remove session from manager
| |
| removeSession | back to summary |
|---|---|
| protected abstract void removeSession(String idInCluster) | |
| resetStats | back to summary |
|---|---|
| public void resetStats() | |
| setHttpOnly | back to summary |
|---|---|
public void setHttpOnly(boolean httpOnly)
| |
| setIdManager | back to summary |
|---|---|
| public void setIdManager(SessionIdManager metaManager) Implements org. Doc from org. Sets the cross context session id manager
| |
| setMaxCookieAge | back to summary |
|---|---|
| public void setMaxCookieAge(int maxCookieAgeInSeconds) Implements org. Doc from org. Sets the max age to set on the session cookie, in seconds
| |
| setMaxInactiveInterval | back to summary |
|---|---|
| public void setMaxInactiveInterval(int seconds) Implements org. Doc from org. Sets the max period of inactivity, after which the session is invalidated, in seconds. | |
| setMetaManager | back to summary |
|---|---|
| public void setMetaManager(SessionIdManager metaManager)
Deprecated | |
| setNodeIdInSessionId | back to summary |
|---|---|
public void setNodeIdInSessionId(boolean nodeIdInSessionId)
| |
| setRefreshCookieAge | back to summary |
|---|---|
| public void setRefreshCookieAge(int ageInSeconds) | |
| setSecureCookies | back to summary |
|---|---|
public void setSecureCookies(boolean secureCookies)
| |
| setSessionCookie | back to summary |
|---|---|
| public void setSessionCookie(String cookieName) Implements org. Doc from org. Sets the session cookie name.
| |
| setSessionDomain | back to summary |
|---|---|
| public void setSessionDomain(String domain) Implements org. Doc from org. Sets the domain to set on the session cookie
| |
| setSessionHandler | back to summary |
|---|---|
| public void setSessionHandler(SessionHandler sessionHandler) Implements org. Doc from org. Sets the
| |
| setSessionIdPathParameterName | back to summary |
|---|---|
| public void setSessionIdPathParameterName(String param) Implements org. Doc from org. Sets the session id URL path parameter name.
| |
| setSessionPath | back to summary |
|---|---|
| public void setSessionPath(String path) Implements org. Doc from org. Sets the path to set on the session cookie
| |
| setUsingCookies | back to summary |
|---|---|
public void setUsingCookies(boolean usingCookies)
| |
Deprecated
as a consequence of HttpSessionContext being deprecated. See corresponding docs for further information.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Enumeration | |
| public HttpSession | getSession(String
the id of the session to be returned id)Implements javax.
Deprecated
From HttpSessionContext
|
| NullSessionContext | back to summary |
|---|---|
| private NullSessionContext() | |
| getIds | back to summary |
|---|---|
| public Enumeration Implements javax. Deprecated From HttpSessionContext
| |
| getSession | back to summary |
|---|---|
| public HttpSession getSession(String id) Implements javax. Deprecated From HttpSessionContext
| |
Implements javax.servlet.HttpSession from the javax.servlet package.
| Modifier and Type | Field and Description |
|---|---|
| protected long | |
| protected final String | |
| protected long | |
| protected final long | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected long | |
| protected long | |
| protected boolean | |
| protected final String | |
| protected int | |
| protected Map |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| public Object | getAttribute(String
a string specifying the name of the object name)Implements javax. null if no object is bound under the name.
|
| public Enumeration | getAttributeNames()
Implements javax. Enumeration of String objects
containing the names of all the objects bound to this session.
|
| protected String | |
| public long | |
| public long | getCreationTime()
Implements javax. |
| public String | getId()
Implements javax. |
| public long | getLastAccessedTime()
Implements javax. |
| public int | getMaxInactiveInterval()
Implements javax. |
| protected String | |
| public ServletContext | getServletContext()
Implements javax. |
| public AbstractSessionManager. | |
| public HttpSessionContext | |
| public Object | getValue(String
a string specifying the name of the object name)Implements javax.
Deprecated
As of Version 2.2, this method is replaced by
getAttribute
|
| public String[] | getValueNames()
Implements javax.
Deprecated
As of Version 2.2, this method is replaced by
getAttributeNames
|
| protected void | |
| public void | invalidate()
Implements javax. |
| public boolean | |
| public boolean | isNew()
Implements javax. true if the client does not yet know about the
session or if the client chooses not to join the session.
|
| protected boolean | |
| protected abstract Map | |
| public void | putValue(String
the name to which the object is bound;
cannot be null name, Object the object to be bound; cannot be null value)Implements javax.
Deprecated
As of Version 2.2, this method is replaced by
setAttribute
|
| public void | removeAttribute(String
the name of the object to
remove from this session name)Implements javax. |
| public void | removeValue(String
the name of the object to
remove from this session name)Implements javax.
Deprecated
As of Version 2.2, this method is replaced by
removeAttribute
|
| public void | setAttribute(String
the name to which the object is bound;
cannot be null name, Object the object to be bound value)Implements javax. |
| public void | |
| public void | setMaxInactiveInterval(int
An integer specifying the number
of seconds secs)Implements javax. |
| protected void | |
| public String | |
| protected void | unbindValue(String name, Object value)
If value implements HttpSessionBindingListener, call valueUnbound() |
| protected void |
| _accessed | back to summary |
|---|---|
| protected long _accessed | |
| _clusterId | back to summary |
|---|---|
| protected final String _clusterId | |
| _cookieSet | back to summary |
|---|---|
| protected long _cookieSet | |
| _created | back to summary |
|---|---|
| protected final long _created | |
| _doInvalidate | back to summary |
|---|---|
| protected boolean _doInvalidate | |
| _idChanged | back to summary |
|---|---|
| protected boolean _idChanged | |
| _invalid | back to summary |
|---|---|
| protected boolean _invalid | |
| _lastAccessed | back to summary |
|---|---|
| protected long _lastAccessed | |
| _maxIdleMs | back to summary |
|---|---|
| protected long _maxIdleMs | |
| _newSession | back to summary |
|---|---|
| protected boolean _newSession | |
| _nodeId | back to summary |
|---|---|
| protected final String _nodeId | |
| _requests | back to summary |
|---|---|
| protected int _requests | |
| _values | back to summary |
|---|---|
| protected Map<K, V> _values | |
| Session | back to summary |
|---|---|
| protected Session(HttpServletRequest request) | |
| Session | back to summary |
|---|---|
| protected Session(long created, String clusterId) | |
| access | back to summary |
|---|---|
| protected void access(long time) | |
| bindValue | back to summary |
|---|---|
| protected void bindValue(String name, Object value) If value implements HttpSessionBindingListener, call valueBound() | |
| complete | back to summary |
|---|---|
| protected void complete() | |
| cookieSet | back to summary |
|---|---|
| protected void cookieSet() | |
| didActivate | back to summary |
|---|---|
| protected void didActivate() | |
| doInvalidate | back to summary |
|---|---|
| protected void doInvalidate() throws IllegalStateException | |
| getAttribute | back to summary |
|---|---|
| public Object getAttribute(String name) Implements javax. Doc from javax. Returns the object bound with the specified name in this session, or
| |
| getAttributeNames | back to summary |
|---|---|
| public Enumeration Implements javax. Doc from javax. Returns an
| |
| getClusterId | back to summary |
|---|---|
| protected String getClusterId() | |
| getCookieSetTime | back to summary |
|---|---|
| public long getCookieSetTime() | |
| getCreationTime | back to summary |
|---|---|
| public long getCreationTime() throws IllegalStateException Implements javax. Doc from javax. Returns the time when this session was created, measured in milliseconds since midnight January 1, 1970 GMT.
| |
| getId | back to summary |
|---|---|
| public String getId() throws IllegalStateException Implements javax. Doc from javax. Returns a string containing the unique identifier assigned to this session. The identifier is assigned by the servlet container and is implementation dependent.
| |
| getLastAccessedTime | back to summary |
|---|---|
| public long getLastAccessedTime() throws IllegalStateException Implements javax. Doc from javax. Returns the last time the client sent a request associated with this session, as the number of milliseconds since midnight January 1, 1970 GMT, and marked by the time the container received the request. Actions that your application takes, such as getting or setting a value associated with the session, do not affect the access time.
| |
| getMaxInactiveInterval | back to summary |
|---|---|
| public int getMaxInactiveInterval() Implements javax. Doc from javax. Returns the maximum time interval, in seconds, that
the servlet container will keep this session open between
client accesses. After this interval, the servlet container
will invalidate the session. The maximum time interval can be set
with the A return value of zero or less indicates that the session will never timeout.
| |
| getNodeId | back to summary |
|---|---|
| protected String getNodeId() | |
| getServletContext | back to summary |
|---|---|
| public ServletContext getServletContext() Implements javax. Doc from javax. Returns the ServletContext to which this session belongs.
| |
| getSession | back to summary |
|---|---|
| public AbstractSessionManager. Implements org. | |
| getSessionContext | back to summary |
|---|---|
| public HttpSessionContext getSessionContext() throws IllegalStateException Implements javax. Deprecated
| |
| getValue | back to summary |
|---|---|
| public Object getValue(String name) throws IllegalStateException Implements javax. Deprecated As of Version 2.2, this method is replaced by
| |
| getValueNames | back to summary |
|---|---|
| public String[] getValueNames() throws IllegalStateException Implements javax. Deprecated As of Version 2.2, this method is replaced by
| |
| initValues | back to summary |
|---|---|
| protected void initValues() | |
| invalidate | back to summary |
|---|---|
| public void invalidate() throws IllegalStateException Implements javax. Doc from javax. Invalidates this session then unbinds any objects bound to it.
| |
| isIdChanged | back to summary |
|---|---|
| public boolean isIdChanged() | |
| isNew | back to summary |
|---|---|
| public boolean isNew() throws IllegalStateException Implements javax. Doc from javax. Returns
| |
| isValid | back to summary |
|---|---|
| protected boolean isValid() | |
| newAttributeMap | back to summary |
|---|---|
| protected abstract Map | |
| putValue | back to summary |
|---|---|
| public void putValue(String name, Object value) throws IllegalStateException Implements javax. Deprecated As of Version 2.2, this method is replaced by
| |
| removeAttribute | back to summary |
|---|---|
| public void removeAttribute(String name) Implements javax. Doc from javax. Removes the object bound with the specified name from this session. If the session does not have an object bound with the specified name, this method does nothing. After this method executes, and if the object
implements
| |
| removeValue | back to summary |
|---|---|
| public void removeValue(String name) throws IllegalStateException Implements javax. Deprecated As of Version 2.2, this method is replaced by
| |
| setAttribute | back to summary |
|---|---|
| public void setAttribute(String name, Object value) Implements javax. Doc from javax. Binds an object to this session, using the name specified. If an object of the same name is already bound to the session, the object is replaced. After this method executes, and if the new object
implements If an object was already bound to this session of this name
that implements If the value passed in is null, this has the same effect as calling
| |
| setIdChanged | back to summary |
|---|---|
| public void setIdChanged(boolean changed) | |
| setMaxInactiveInterval | back to summary |
|---|---|
| public void setMaxInactiveInterval(int secs) Implements javax. Doc from javax. Specifies the time, in seconds, between client requests before the servlet container will invalidate this session. An interval value of zero or less indicates that the session should never timeout.
| |
| timeout | back to summary |
|---|---|
| protected void timeout() throws IllegalStateException | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |
| unbindValue | back to summary |
|---|---|
| protected void unbindValue(String name, Object value) If value implements HttpSessionBindingListener, call valueUnbound() | |
| willPassivate | back to summary |
|---|---|
| protected void willPassivate() | |
| Modifier and Type | Method and Description |
|---|---|
| public AbstractSessionManager. |
| getSession | back to summary |
|---|---|
| public AbstractSessionManager. | |