|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SessionIdManager
Session ID Manager. Manages session IDs across multiple contexts.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle |
---|
LifeCycle.Listener |
Method Summary | |
---|---|
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. |
Methods inherited from interface org.eclipse.jetty.util.component.LifeCycle |
---|
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop |
Method Detail |
---|
boolean idInUse(java.lang.String id)
id
- The session ID without any cluster node extension
void 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |