org.eclipse.jetty.server
接口 SessionIdManager

所有超级接口:
LifeCycle
所有已知实现类:
AbstractSessionIdManager, HashSessionIdManager, JDBCSessionIdManager

public interface SessionIdManager
extends LifeCycle

Session ID Manager. Manages session IDs across multiple contexts.


嵌套类摘要
 
从接口 org.eclipse.jetty.util.component.LifeCycle 继承的嵌套类/接口
LifeCycle.Listener
 
方法摘要
 void addSession(HttpSession session)
          Add a session to the list of known sessions for a given ID.
 String getClusterId(String nodeId)
          Get a cluster ID from a node ID.
 String getNodeId(String clusterId, HttpServletRequest request)
          Get a node ID from a cluster ID and a request
 String getWorkerName()
           
 boolean idInUse(String id)
           
 void invalidateAll(String id)
          Call HttpSession.invalidate() on all known sessions for the given id.
 String newSessionId(HttpServletRequest request, long created)
           
 void removeSession(HttpSession session)
          Remove session from the list of known sessions for a given ID.
 
从接口 org.eclipse.jetty.util.component.LifeCycle 继承的方法
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
 

方法详细信息

idInUse

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.

addSession

void addSession(HttpSession session)
Add a session to the list of known sessions for a given ID.

参数:
session - The session

removeSession

void removeSession(HttpSession session)
Remove session from the list of known sessions for a given ID.

参数:
session -

invalidateAll

void invalidateAll(String id)
Call HttpSession.invalidate() on all known sessions for the given id.

参数:
id - The session ID without any cluster node extension

newSessionId

String newSessionId(HttpServletRequest request,
                    long created)
参数:
request -
created -
返回:
the new session id

getWorkerName

String getWorkerName()

getClusterId

String getClusterId(String nodeId)
Get a cluster ID from a node ID. Strip node identifier from a located session ID.

参数:
nodeId -
返回:
the cluster id

getNodeId

String getNodeId(String clusterId,
                 HttpServletRequest request)
Get a node ID from a cluster ID and a request

参数:
clusterId - The ID of the session
request - The request that for the session (or null)
返回:
The session ID qualified with the node ID.


Copyright © 2013. All Rights Reserved.