|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mortbay.component.AbstractLifeCycle org.mortbay.jetty.servlet.HashSessionIdManager
public class HashSessionIdManager
HashSessionIdManager. An in-memory implementation of the session ID manager.
Field Summary | |
---|---|
protected Random |
_random
|
protected static String |
SESSION_ID_RANDOM_ALGORITHM
|
protected static String |
SESSION_ID_RANDOM_ALGORITHM_ALT
|
Constructor Summary | |
---|---|
HashSessionIdManager()
|
|
HashSessionIdManager(Random random)
|
Method Summary | |
---|---|
void |
addSession(HttpSession session)
Add a session to the list of known sessions for a given ID. |
protected void |
doStart()
|
protected void |
doStop()
|
Random |
getRandom()
|
String |
getWorkerName()
Get the workname. |
boolean |
idInUse(String id)
|
void |
invalidateAll(String id)
Call HttpSession.invalidate() on all known sessions for the given id. |
String |
newSessionId(HttpServletRequest request,
long created)
|
void |
removeSession(HttpSession session)
Remove session from the list of known sessions for a given ID. |
void |
setRandom(Random random)
|
void |
setWorkerName(String workerName)
Set the workname. |
Methods inherited from class org.mortbay.component.AbstractLifeCycle |
---|
isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.mortbay.component.LifeCycle |
---|
isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, start, stop |
Field Detail |
---|
protected static final String SESSION_ID_RANDOM_ALGORITHM
protected static final String SESSION_ID_RANDOM_ALGORITHM_ALT
protected Random _random
Constructor Detail |
---|
public HashSessionIdManager()
public HashSessionIdManager(Random random)
Method Detail |
---|
public String getWorkerName()
getWorkerName
in interface SessionIdManager
public void setWorkerName(String workerName)
workerName
- protected void doStart()
doStart
in class AbstractLifeCycle
protected void doStop()
doStop
in class AbstractLifeCycle
public boolean idInUse(String id)
idInUse
in interface SessionIdManager
public void addSession(HttpSession session)
SessionIdManager
addSession
in interface SessionIdManager
session
- The sessionpublic void removeSession(HttpSession session)
SessionIdManager
removeSession
in interface SessionIdManager
public void invalidateAll(String id)
SessionIdManager
HttpSession.invalidate()
on all known sessions for the given id.
invalidateAll
in interface SessionIdManager
public String newSessionId(HttpServletRequest request, long created)
newSessionId
in interface SessionIdManager
public Random getRandom()
public void setRandom(Random random)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |