org.eclipse.jetty.util.component.LifeCycleAbstractSessionIdManager, HashSessionIdManager, JDBCSessionIdManagerpublic interface SessionIdManager
extends org.eclipse.jetty.util.component.LifeCycle
| Modifier and Type | Method | Description |
|---|---|---|
void |
addSession(javax.servlet.http.HttpSession session) |
Add a session to the list of known sessions for a given ID.
|
java.lang.String |
getClusterId(java.lang.String nodeId) |
Get a cluster ID from a node ID.
|
java.lang.String |
getNodeId(java.lang.String clusterId,
javax.servlet.http.HttpServletRequest request) |
Get a node ID from a cluster ID and a request
|
java.lang.String |
getWorkerName() |
|
boolean |
idInUse(java.lang.String id) |
|
void |
invalidateAll(java.lang.String id) |
Call
HttpSession.invalidate() on all known sessions for the given id. |
java.lang.String |
newSessionId(javax.servlet.http.HttpServletRequest request,
long created) |
Create a new Session ID.
|
void |
removeSession(javax.servlet.http.HttpSession session) |
Remove session from the list of known sessions for a given ID.
|
void |
renewSessionId(java.lang.String oldClusterId,
java.lang.String oldNodeId,
javax.servlet.http.HttpServletRequest request) |
Change the existing session id.
|
boolean idInUse(java.lang.String id)
id - The session ID without any cluster node extensionvoid addSession(javax.servlet.http.HttpSession session)
session - The sessionvoid removeSession(javax.servlet.http.HttpSession session)
session - the session to removevoid invalidateAll(java.lang.String id)
HttpSession.invalidate() on all known sessions for the given id.id - The session ID without any cluster node extensionjava.lang.String newSessionId(javax.servlet.http.HttpServletRequest request,
long created)
request - the request with the sesioncreated - the timestamp for when the session was createdjava.lang.String getWorkerName()
java.lang.String getClusterId(java.lang.String nodeId)
nodeId - the node idjava.lang.String getNodeId(java.lang.String clusterId,
javax.servlet.http.HttpServletRequest request)
clusterId - The ID of the sessionrequest - The request that for the session (or null)void renewSessionId(java.lang.String oldClusterId,
java.lang.String oldNodeId,
javax.servlet.http.HttpServletRequest request)
oldClusterId - the old cluster idoldNodeId - the old node idrequest - the request containing the sessionCopyright © 1995–2018 Webtide. All rights reserved.