Top Methods
org.mortbay.jetty

public Interface SessionIdManager

extends LifeCycle
Known Direct Implementers
org.mortbay.jetty.servlet.AbstractSessionIdManager, org.mortbay.jetty.servlet.HashSessionIdManager
Imports
javax.servlet.http.HttpServletRequest, .HttpSession, org.mortbay.component.LifeCycle

Author
gregw

Method Summary

Modifier and TypeMethod and Description
public void
addSession(HttpSession
The session
session
)

Add a session to the list of known sessions for a given ID.

public String
getClusterId(String nodeId)

Get a cluster ID from a node ID. Strip node identifier from a located session ID.

public String

Returns:

The session ID qualified with the node ID.
getNodeId
(String
The ID of the session
clusterId
,
HttpServletRequest
The request that for the session (or null)
request
)

Get a node ID from a cluster ID and a request

public String
public boolean

Returns:

True if the session ID is in use by at least one context.
idInUse
(String
The session ID without any cluster node extension
id
)

public void
invalidateAll(String
The session ID without any cluster node extension
id
)

Call HttpSession#invalidate() on all known sessions for the given id.

public String
newSessionId(HttpServletRequest request, long created)

public void
removeSession(HttpSession session)

Remove session from the list of known sessions for a given ID.

Inherited from org.mortbay.component.LifeCycle:
addLifeCycleListenerisFailedisRunningisStartedisStartingisStoppedisStoppingremoveLifeCycleListenerstartstop

Method Detail

addSessionback to summary
public void addSession(HttpSession session)

Add a session to the list of known sessions for a given ID.

Parameters
session:HttpSession

The session

getClusterIdback to summary
public String getClusterId(String nodeId)

Get a cluster ID from a node ID. Strip node identifier from a located session ID.

getNodeIdback to summary
public String getNodeId(String clusterId, HttpServletRequest request)

Get a node ID from a cluster ID and a request

Parameters
clusterId:String

The ID of the session

request:HttpServletRequest

The request that for the session (or null)

Returns:String

The session ID qualified with the node ID.

getWorkerNameback to summary
public String getWorkerName()
idInUseback to summary
public boolean idInUse(String id)
Parameters
id:String

The session ID without any cluster node extension

Returns:boolean

True if the session ID is in use by at least one context.

invalidateAllback to summary
public void invalidateAll(String id)

Call HttpSession#invalidate() on all known sessions for the given id.

Parameters
id:String

The session ID without any cluster node extension

newSessionIdback to summary
public String newSessionId(HttpServletRequest request, long created)
removeSessionback to summary
public void removeSession(HttpSession session)

Remove session from the list of known sessions for a given ID.