org.openspaces.jee.sessions.jetty
Class AbstractSessionIdManager
java.lang.Object
  
org.eclipse.jetty.util.component.AbstractLifeCycle
      
org.openspaces.jee.sessions.jetty.AbstractSessionIdManager
- All Implemented Interfaces: 
 - org.eclipse.jetty.server.SessionIdManager, org.eclipse.jetty.util.component.LifeCycle
 
- Direct Known Subclasses: 
 - GigaSessionIdManager
 
public abstract class AbstractSessionIdManager
- extends org.eclipse.jetty.util.component.AbstractLifeCycle
- implements org.eclipse.jetty.server.SessionIdManager
  
Base class for session id manager taken from later versions of Jetty.
 
| Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle | 
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener | 
 
| Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle | 
org.eclipse.jetty.util.component.LifeCycle.Listener | 
 
 
| Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle | 
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING | 
 
 
 
| Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle | 
addLifeCycleListener, doStop, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, 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.eclipse.jetty.server.SessionIdManager | 
addSession, getClusterId, getNodeId, idInUse, invalidateAll, removeSession | 
 
| Methods inherited from interface org.eclipse.jetty.util.component.LifeCycle | 
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop | 
 
SESSION_ID_RANDOM_ALGORITHM
protected static final String SESSION_ID_RANDOM_ALGORITHM
- See Also:
 - Constant Field Values
 
SESSION_ID_RANDOM_ALGORITHM_ALT
protected static final String SESSION_ID_RANDOM_ALGORITHM_ALT
- See Also:
 - Constant Field Values
 
_random
protected Random _random
_weakRandom
protected boolean _weakRandom
_workerName
protected String _workerName
_server
protected org.eclipse.jetty.server.Server _server
AbstractSessionIdManager
public AbstractSessionIdManager(org.eclipse.jetty.server.Server server)
AbstractSessionIdManager
public AbstractSessionIdManager(org.eclipse.jetty.server.Server server,
                                Random random)
getWorkerName
public String getWorkerName()
- Specified by:
 getWorkerName in interface org.eclipse.jetty.server.SessionIdManager
 
 
setWorkerName
public void setWorkerName(String name)
 
 
getRandom
public Random getRandom()
 
 
setRandom
public void setRandom(Random random)
 
 
newSessionId
public String newSessionId(javax.servlet.http.HttpServletRequest request,
                           long created)
- Create a new session id if necessary.
- Specified by:
 newSessionId in interface org.eclipse.jetty.server.SessionIdManager
 
 
 
doStart
public void doStart()
- Overrides:
 doStart in class org.eclipse.jetty.util.component.AbstractLifeCycle
 
 
initRandom
public void initRandom()
- Set up a random number generator for the session ids.
 By preference, use a SecureRandom but allow to be injected.
 
 
 
Copyright © GigaSpaces.