org.codehaus.wadi.core.session
Interface Session

All Superinterfaces:
Evictable, java.io.Externalizable, Motable, java.io.Serializable
All Known Subinterfaces:
WADIHttpSession, WebSession
All Known Implementing Classes:
AbstractReplicableSession, AtomicallyReplicableSession, BasicWebSession, DistributableSession, StandardSession

public interface Session
extends Motable, java.io.Externalizable

A Session is an object with Time-To-Live (See Motable) and Locking semantics. In a distributable situation its content is Serializable. Different subtypes of Session may choose to implement their payload differently - i.e. a Stateful Session Bean (EJB) looks very different from an HttpSession (Web), but both could inherit or be wrapped by this interface.

Version:
$Revision: 2414 $
Author:
Jules Gosnell

Method Summary
 java.lang.Object addState(java.lang.Object key, java.lang.Object value)
          Map like contract to manipulate state information.
 java.util.Map<java.lang.Object,java.lang.Object> getLocalStateMap()
           
 java.util.Map getState()
           
 java.lang.Object getState(java.lang.Object key)
          Map like contract to manipulate state information.
 void onEndProcessing()
           
 java.lang.Object removeState(java.lang.Object key)
          Map like contract to manipulate state information.
 
Methods inherited from interface org.codehaus.wadi.core.motable.Motable
copy, getBodyAsByteArray, getName, getReadWriteLock, init, isNew, mote, rehydrate, restore, setBodyAsByteArray
 
Methods inherited from interface org.codehaus.wadi.core.eviction.Evictable
copy, destroy, getCreationTime, getLastAccessedTime, getMaxInactiveInterval, getTimedOut, getTimeToLive, init, mote, setLastAccessedTime, setMaxInactiveInterval
 
Methods inherited from interface java.io.Externalizable
readExternal, writeExternal
 

Method Detail

addState

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


getState

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


removeState

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


getState

java.util.Map getState()

onEndProcessing

void onEndProcessing()

getLocalStateMap

java.util.Map<java.lang.Object,java.lang.Object> getLocalStateMap()


Copyright © 2011. All Rights Reserved.