org.mortbay.jetty.servlet.wadi
Class WadiSessionAdaptor

java.lang.Object
  extended by org.mortbay.jetty.servlet.wadi.WadiSessionAdaptor
All Implemented Interfaces:
WadiSession

public class WadiSessionAdaptor
extends java.lang.Object
implements WadiSession


Constructor Summary
WadiSessionAdaptor(org.codehaus.wadi.core.session.Session session)
           
 
Method Summary
 java.lang.Object addState(java.lang.String key, java.lang.Object value)
          Map like contract to manipulate state information.
 java.lang.String getSessionId()
          Gets the sessionId.
 java.util.Map getState()
          Map like contract to manipulate state information.
 java.lang.Object getState(java.lang.String key)
          Map like contract to manipulate state information.
 void onEndAccess()
          Notifies the session that state accesses are now completed.
 void release()
          Releases the session.
 java.lang.Object removeState(java.lang.String key)
          Map like contract to manipulate state information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WadiSessionAdaptor

public WadiSessionAdaptor(org.codehaus.wadi.core.session.Session session)
Method Detail

getSessionId

public java.lang.String getSessionId()
Description copied from interface: WadiSession
Gets the sessionId.

Specified by:
getSessionId in interface WadiSession
Returns:
sessionId.

release

public void release()
Description copied from interface: WadiSession
Releases the session.

When a Session is released, it is released from the underlying set of SessionManagers. In other words, its sessionId is unknown and its state is permanently lost. After the release of a Session, the behavior of the other methods is undefined.

Specified by:
release in interface WadiSession

addState

public java.lang.Object addState(java.lang.String key,
                                 java.lang.Object value)
Description copied from interface: WadiSession
Map like contract to manipulate state information.

Specified by:
addState in interface WadiSession

getState

public java.lang.Object getState(java.lang.String key)
Description copied from interface: WadiSession
Map like contract to manipulate state information.

Specified by:
getState in interface WadiSession

removeState

public java.lang.Object removeState(java.lang.String key)
Description copied from interface: WadiSession
Map like contract to manipulate state information.

Specified by:
removeState in interface WadiSession

getState

public java.util.Map getState()
Description copied from interface: WadiSession
Map like contract to manipulate state information.

The returned Map is mutable and is backed by the session.

Specified by:
getState in interface WadiSession

onEndAccess

public void onEndAccess()
Description copied from interface: WadiSession
Notifies the session that state accesses are now completed.

When state accesses end, the underlying local SessionManager may decide to replicate synchronously or asynchronously the current state to remote SessionManagers.

Specified by:
onEndAccess in interface WadiSession


Copyright © 1995-2009 Mort Bay Consulting. All Rights Reserved.