SessionIdManager, org.eclipse.jetty.util.component.LifeCyclepublic class HashSessionIdManager extends AbstractSessionIdManager
FAILED, RUNNING, STARTED, STARTING, STOP_ON_FAILURE, STOPPED, STOPPING_random, _reseed, _weakRandom, _workerAttr, _workerName| Constructor | Description |
|---|---|
HashSessionIdManager() |
|
HashSessionIdManager(java.util.Random random) |
| 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.
|
protected void |
doStart() |
|
protected void |
doStop() |
|
java.util.Collection<javax.servlet.http.HttpSession> |
getSession(java.lang.String id) |
|
java.util.Collection<java.lang.String> |
getSessions() |
|
boolean |
idInUse(java.lang.String id) |
|
void |
invalidateAll(java.lang.String id) |
Call
HttpSession.invalidate() on all known sessions for the given 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.
|
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stopgetClusterId, getNodeId, getRandom, getReseed, getWorkerName, initRandom, newSessionId, newSessionId, setRandom, setReseed, setWorkerNamepublic HashSessionIdManager()
public HashSessionIdManager(java.util.Random random)
public java.util.Collection<java.lang.String> getSessions()
public java.util.Collection<javax.servlet.http.HttpSession> getSession(java.lang.String id)
id - the id of the sessionprotected void doStart()
throws java.lang.Exception
doStart in class AbstractSessionIdManagerjava.lang.Exceptionprotected void doStop()
throws java.lang.Exception
doStop in class AbstractSessionIdManagerjava.lang.Exceptionpublic boolean idInUse(java.lang.String id)
id - The session ID without any cluster node extensionSessionIdManager.idInUse(String)public void addSession(javax.servlet.http.HttpSession session)
SessionIdManagersession - The sessionSessionIdManager.addSession(HttpSession)public void removeSession(javax.servlet.http.HttpSession session)
SessionIdManagersession - the session to removeSessionIdManager.removeSession(HttpSession)public void invalidateAll(java.lang.String id)
SessionIdManagerHttpSession.invalidate() on all known sessions for the given id.id - The session ID without any cluster node extensionSessionIdManager.invalidateAll(String)public void renewSessionId(java.lang.String oldClusterId,
java.lang.String oldNodeId,
javax.servlet.http.HttpServletRequest request)
SessionIdManagerrenewSessionId in interface SessionIdManagerrenewSessionId in class AbstractSessionIdManageroldClusterId - the old cluster idoldNodeId - the old node idrequest - the request containing the sessionCopyright © 1995–2018 Webtide. All rights reserved.