Top Description Methods
org.eclipse.jetty.session

public Interface SessionDataMap

extends LifeCycle
Known Direct Subinterfaces
org.eclipse.jetty.session.SessionDataStore
Imports
org.eclipse.jetty.util.component.LifeCycle

SessionDataMap A map style access to SessionData keyed by the session id.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the session was deleted
delete
(String
identity of session to delete
id
)

Delete session data

public void
initialize(SessionContext
context associated
context
)

Initialize this data map for the given context.

public SessionData

Returns:

the SessionData matching the id
load
(String
identity of session to load
id
)

Read in session data.

public void
store(String
identity of session to store
id
,
SessionData
info of session to store
data
)

Store the session data.

Inherited from org.eclipse.jetty.util.component.LifeCycle:
addEventListenerisFailedisRunningisStartedisStartingisStoppedisStoppingremoveEventListenerstartstartstopstop

Method Detail

deleteback to summary
public boolean delete(String id) throws Exception

Delete session data

Parameters
id:String

identity of session to delete

Returns:boolean

true if the session was deleted

Exceptions
Exception:
if unable to delete session data
initializeback to summary
public void initialize(SessionContext context) throws Exception

Initialize this data map for the given context. A SessionDataMap can only be used by one context(/session manager).

Parameters
context:SessionContext

context associated

Exceptions
Exception:
if unable to initialize the
loadback to summary
public SessionData load(String id) throws Exception

Read in session data.

Parameters
id:String

identity of session to load

Returns:SessionData

the SessionData matching the id

Exceptions
Exception:
if unable to load session data
storeback to summary
public void store(String id, SessionData data) throws Exception

Store the session data.

Parameters
id:String

identity of session to store

data:SessionData

info of session to store

Exceptions
Exception:
if unable to write session data