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, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddSession, getClusterId, getNodeId, idInUse, invalidateAll, removeSessionprotected Random _random
protected boolean _weakRandom
protected String _workerName
protected Server _server
public AbstractSessionIdManager(Server server)
public String getWorkerName()
getWorkerName in interface SessionIdManagerpublic void setWorkerName(String name)
public Random getRandom()
public void setRandom(Random random)
public String newSessionId(HttpServletRequest request, long created)
newSessionId in interface SessionIdManagerSessionIdManager.newSessionId(javax.servlet.http.HttpServletRequest, long)public void doStart()
doStart in class org.mortbay.component.AbstractLifeCyclepublic void initRandom()
Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.