org.eclipse.jetty.server.session
类 HashSessionIdManager

java.lang.Object
  继承者 org.eclipse.jetty.util.component.AbstractLifeCycle
      继承者 org.eclipse.jetty.server.session.AbstractSessionIdManager
          继承者 org.eclipse.jetty.server.session.HashSessionIdManager
所有已实现的接口:
SessionIdManager, LifeCycle

public class HashSessionIdManager
extends AbstractSessionIdManager

HashSessionIdManager. An in-memory implementation of the session ID manager.


嵌套类摘要
 
从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的嵌套类/接口
AbstractLifeCycle.AbstractLifeCycleListener
 
从接口 org.eclipse.jetty.util.component.LifeCycle 继承的嵌套类/接口
LifeCycle.Listener
 
字段摘要
 
从类 org.eclipse.jetty.server.session.AbstractSessionIdManager 继承的字段
_random, _reseed, _weakRandom, _workerName
 
从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的字段
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
 
构造方法摘要
HashSessionIdManager()
           
HashSessionIdManager(Random random)
           
 
方法摘要
 void addSession(HttpSession session)
          Add a session to the list of known sessions for a given ID.
protected  void doStart()
           
protected  void doStop()
           
 String getClusterId(String nodeId)
          Get the session ID without any worker ID.
 String getNodeId(String clusterId, HttpServletRequest request)
          Get the session ID with any worker ID.
 Collection<HttpSession> getSession(String id)
           
 Collection<String> getSessions()
           
 boolean idInUse(String id)
           
 void invalidateAll(String id)
          Call HttpSession.invalidate() on all known sessions for the given id.
 void removeSession(HttpSession session)
          Remove session from the list of known sessions for a given ID.
 
从类 org.eclipse.jetty.server.session.AbstractSessionIdManager 继承的方法
getRandom, getReseed, getWorkerName, initRandom, newSessionId, setRandom, setReseed, setWorkerName
 
从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的方法
addLifeCycleListener, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
从接口 org.eclipse.jetty.util.component.LifeCycle 继承的方法
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
 

构造方法详细信息

HashSessionIdManager

public HashSessionIdManager()

HashSessionIdManager

public HashSessionIdManager(Random random)
方法详细信息

getSessions

public Collection<String> getSessions()
返回:
Collection of String session IDs

getSession

public Collection<HttpSession> getSession(String id)
返回:
Collection of Sessions for the passed session ID

getNodeId

public String getNodeId(String clusterId,
                        HttpServletRequest request)
Get the session ID with any worker ID.

参数:
clusterId -
request -
返回:
sessionId plus any worker ID.

getClusterId

public String getClusterId(String nodeId)
Get the session ID without any worker ID.

参数:
nodeId - the node id
返回:
sessionId without any worker ID.

doStart

protected void doStart()
                throws Exception
覆盖:
AbstractSessionIdManager 中的 doStart
抛出:
Exception

doStop

protected void doStop()
               throws Exception
覆盖:
AbstractSessionIdManager 中的 doStop
抛出:
Exception

idInUse

public boolean idInUse(String id)
参数:
id - The session ID without any cluster node extension
返回:
True if the session ID is in use by at least one context.
另请参见:
SessionIdManager.idInUse(String)

addSession

public void addSession(HttpSession session)
从接口 SessionIdManager 复制的描述
Add a session to the list of known sessions for a given ID.

参数:
session - The session
另请参见:
SessionIdManager.addSession(HttpSession)

removeSession

public void removeSession(HttpSession session)
从接口 SessionIdManager 复制的描述
Remove session from the list of known sessions for a given ID.

另请参见:
SessionIdManager.removeSession(HttpSession)

invalidateAll

public void invalidateAll(String id)
从接口 SessionIdManager 复制的描述
Call HttpSession.invalidate() on all known sessions for the given id.

参数:
id - The session ID without any cluster node extension
另请参见:
SessionIdManager.invalidateAll(String)


Copyright © 2013. All Rights Reserved.