org.eclipse.jetty.server
public interface SessionIdManager extends LifeCycle
LifeCycle.Listener
Modifier and Type | Method and 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) |
void |
removeSession(javax.servlet.http.HttpSession session)
Remove session from the list of known sessions for a given ID.
|
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
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
- void 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
- created
- java.lang.String getWorkerName()
java.lang.String getClusterId(java.lang.String nodeId)
nodeId
- java.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)Copyright © 2014. All Rights Reserved.