public class HashSessionIdManager extends AbstractSessionIdManager
AbstractLifeCycle.AbstractLifeCycleListener
LifeCycle.Listener
_random, _reseed, _weakRandom, _workerAttr, _workerName
Constructor and Description |
---|
HashSessionIdManager() |
HashSessionIdManager(Random random) |
Modifier and Type | Method and Description |
---|---|
void |
addSession(HttpSession session)
Add a session to the list of known sessions for a given ID.
|
protected void |
doStart() |
protected void |
doStop() |
Collection<HttpSession> |
getSession(String id) |
Collection<String> |
getSessions() |
boolean |
idInUse(String id) |
void |
invalidateAll(String id)
Call
HttpSession.invalidate() on all known sessions for the given id. |
void |
removeSession(HttpSession session)
Remove session from the list of known sessions for a given ID.
|
void |
renewSessionId(String oldClusterId,
String oldNodeId,
HttpServletRequest request)
Change the existing session id.
|
getClusterId, getNodeId, getRandom, getReseed, getWorkerName, initRandom, newSessionId, newSessionId, setRandom, setReseed, setWorkerName
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
public HashSessionIdManager()
public HashSessionIdManager(Random random)
public Collection<String> getSessions()
public Collection<HttpSession> getSession(String id)
protected void doStart() throws Exception
doStart
in class AbstractSessionIdManager
Exception
protected void doStop() throws Exception
doStop
in class AbstractSessionIdManager
Exception
public boolean idInUse(String id)
id
- The session ID without any cluster node extensionSessionIdManager#idInUse(String)
public void addSession(HttpSession session)
SessionIdManager
session
- The sessionSessionIdManager#addSession(HttpSession)
public void removeSession(HttpSession session)
SessionIdManager
SessionIdManager#removeSession(HttpSession)
public void invalidateAll(String id)
SessionIdManager
HttpSession.invalidate()
on all known sessions for the given id.id
- The session ID without any cluster node extensionSessionIdManager#invalidateAll(String)
public void renewSessionId(String oldClusterId, String oldNodeId, HttpServletRequest request)
SessionIdManager
renewSessionId
in interface SessionIdManager
renewSessionId
in class AbstractSessionIdManager
Copyright © 1995-2015 Webtide. All Rights Reserved.