org.mortbay.jetty.servlet.wadi
Interface WadiSession

All Known Implementing Classes:
WadiSessionAdaptor

public interface WadiSession


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.
 

Method Detail

getSessionId

java.lang.String getSessionId()
Gets the sessionId.

Returns:
sessionId.

addState

java.lang.Object addState(java.lang.String key,
                          java.lang.Object value)
Map like contract to manipulate state information.


getState

java.lang.Object getState(java.lang.String key)
Map like contract to manipulate state information.


removeState

java.lang.Object removeState(java.lang.String key)
Map like contract to manipulate state information.


getState

java.util.Map getState()
Map like contract to manipulate state information.

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


release

void release()
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.


onEndAccess

void onEndAccess()
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.



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