public abstract class AbstractSessionIdManager extends org.mortbay.component.AbstractLifeCycle implements SessionIdManager
Modifier and Type | Field and Description |
---|---|
protected Random |
_random |
protected Server |
_server |
protected boolean |
_weakRandom |
protected String |
_workerName |
Constructor and Description |
---|
AbstractSessionIdManager(Server server) |
AbstractSessionIdManager(Server server,
Random random) |
Modifier and Type | Method and Description |
---|---|
void |
doStart() |
Random |
getRandom() |
String |
getWorkerName() |
void |
initRandom()
Set up a random number generator for the sessionids.
|
String |
newSessionId(HttpServletRequest request,
long created)
Create a new session id if necessary.
|
void |
setRandom(Random random) |
void |
setWorkerName(String name) |
addLifeCycleListener, doStop, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addSession, getClusterId, getNodeId, idInUse, invalidateAll, removeSession
protected Random _random
protected boolean _weakRandom
protected String _workerName
protected Server _server
public AbstractSessionIdManager(Server server)
public String getWorkerName()
getWorkerName
in interface SessionIdManager
public void setWorkerName(String name)
public Random getRandom()
public void setRandom(Random random)
public String newSessionId(HttpServletRequest request, long created)
newSessionId
in interface SessionIdManager
SessionIdManager.newSessionId(javax.servlet.http.HttpServletRequest, long)
public void doStart()
doStart
in class org.mortbay.component.AbstractLifeCycle
public void initRandom()
Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.