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 继承的方法 |
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 |
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.