Top Fields Constructors Methods
org.mortbay.jetty.servlet

public abstract Class AbstractSessionIdManager

extends AbstractLifeCycle
implements SessionIdManager
Class Inheritance
All Implemented Interfaces
org.mortbay.jetty.SessionIdManager, org.mortbay.component.LifeCycle
Known Direct Subclasses
org.mortbay.jetty.servlet.JDBCSessionIdManager
Imports
java.security.NoSuchAlgorithmException, .SecureRandom, java.util.Random, javax.servlet.http.HttpServletRequest, org.mortbay.component.AbstractLifeCycle, org.mortbay.jetty.Server, .SessionIdManager, org.mortbay.log.Log

Field Summary

Modifier and TypeField and Description
private static final String
protected Random
protected Server
protected boolean
protected String
protected static final String
protected static final String
Inherited from org.mortbay.component.AbstractLifeCycle:
_listeners

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public void
public Random
public String
public void
initRandom()

Set up a random number generator for the sessionids.

public String
newSessionId(HttpServletRequest request, long created)

Implements org.mortbay.jetty.SessionIdManager.newSessionId.

Create a new session id if necessary.
public void
setRandom(Random random)

public void
Inherited from org.mortbay.component.AbstractLifeCycle:
addLifeCycleListenerdoStopisFailedisRunningisStartedisStartingisStoppedisStoppingremoveLifeCycleListenerstartstop

Field Detail

__NEW_SESSION_IDback to summary
private static final String __NEW_SESSION_ID
_randomback to summary
protected Random _random
_serverback to summary
protected Server _server
_weakRandomback to summary
protected boolean _weakRandom
_workerNameback to summary
protected String _workerName
SESSION_ID_RANDOM_ALGORITHMback to summary
protected static final String SESSION_ID_RANDOM_ALGORITHM
SESSION_ID_RANDOM_ALGORITHM_ALTback to summary
protected static final String SESSION_ID_RANDOM_ALGORITHM_ALT

Constructor Detail

AbstractSessionIdManagerback to summary
public AbstractSessionIdManager(Server server)
AbstractSessionIdManagerback to summary
public AbstractSessionIdManager(Server server, Random random)

Method Detail

doStartback to summary
public void doStart()

Overrides org.mortbay.component.AbstractLifeCycle.doStart.

getRandomback to summary
public Random getRandom()
getWorkerNameback to summary
public String getWorkerName()

Implements org.mortbay.jetty.SessionIdManager.getWorkerName.

initRandomback to summary
public void initRandom()

Set up a random number generator for the sessionids. By preference, use a SecureRandom but allow to be injected.

newSessionIdback to summary
public String newSessionId(HttpServletRequest request, long created)

Implements org.mortbay.jetty.SessionIdManager.newSessionId.

Create a new session id if necessary.

See Also
org.mortbay.jetty.SessionIdManager#newSessionId(javax.servlet.http.HttpServletRequest, long)
setRandomback to summary
public void setRandom(Random random)
setWorkerNameback to summary
public void setWorkerName(String name)