org.codehaus.wadi.web
Class BasicWebSession

java.lang.Object
  extended by org.codehaus.wadi.core.eviction.SimpleEvictable
      extended by org.codehaus.wadi.core.motable.AbstractMotable
          extended by org.codehaus.wadi.core.session.StandardSession
              extended by org.codehaus.wadi.core.session.DistributableSession
                  extended by org.codehaus.wadi.core.session.AbstractReplicableSession
                      extended by org.codehaus.wadi.core.session.AtomicallyReplicableSession
                          extended by org.codehaus.wadi.web.BasicWebSession
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, Evictable, Motable, Session, WADIHttpSession, WebSession

public class BasicWebSession
extends AtomicallyReplicableSession
implements WADIHttpSession

Version:
$Revision: 1538 $
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.codehaus.wadi.core.session.StandardSession
StandardSession.StateMap
 
Field Summary
protected  WebSessionConfig config
           
protected  javax.servlet.http.HttpSessionEvent httpSessionEvent
           
protected  Router router
           
protected  javax.servlet.http.HttpSession wrapper
           
 
Fields inherited from class org.codehaus.wadi.core.session.AtomicallyReplicableSession
dirty, semantics
 
Fields inherited from class org.codehaus.wadi.core.session.AbstractReplicableSession
replicationManager
 
Fields inherited from class org.codehaus.wadi.core.session.DistributableSession
streamer
 
Fields inherited from class org.codehaus.wadi.core.session.StandardSession
attributes, localStateMap, manager
 
Fields inherited from class org.codehaus.wadi.core.motable.AbstractMotable
readWriteLock
 
Fields inherited from class org.codehaus.wadi.core.eviction.SimpleEvictable
memento
 
Constructor Summary
BasicWebSession(WebSessionConfig config, DistributableAttributes attributes, WebSessionWrapperFactory wrapperFactory, Router router, Manager manager, Streamer streamer, ReplicationManager replicationManager)
           
 
Method Summary
 java.lang.Object getAttribute(java.lang.String name)
           
 java.util.Enumeration getAttributeNameEnumeration()
           
 java.util.Set getAttributeNameSet()
           
 java.lang.String[] getAttributeNameStringArray()
           
 WebSessionConfig getConfig()
           
 javax.servlet.http.HttpSessionEvent getHttpSessionEvent()
           
 java.lang.String getId()
           
 javax.servlet.http.HttpSession getWrapper()
           
protected  void onAddSate(java.lang.Object key, java.lang.Object oldValue, java.lang.Object newValue)
           
protected  void onDeserialization()
           
protected  void onRemoveState(java.lang.Object key, java.lang.Object oldValue)
           
protected  void onSerialization()
           
 java.lang.Object removeAttribute(java.lang.String name)
           
 java.lang.Object setAttribute(java.lang.String name, java.lang.Object newValue)
           
 
Methods inherited from class org.codehaus.wadi.core.session.AtomicallyReplicableSession
getState, isDirty, onDestroy, onEndProcessing, setMaxInactiveInterval
 
Methods inherited from class org.codehaus.wadi.core.session.AbstractReplicableSession
destroy
 
Methods inherited from class org.codehaus.wadi.core.session.DistributableSession
getBodyAsByteArray, getDistributableSessionMemento, newMemento, setBodyAsByteArray, setDistributableSessionMemento
 
Methods inherited from class org.codehaus.wadi.core.session.StandardSession
addState, destroyForMotion, getLocalStateMap, getStandardSessionMemento, getState, removeState
 
Methods inherited from class org.codehaus.wadi.core.motable.AbstractMotable
copy, getAbstractMotableMemento, getName, getReadWriteLock, init, initExisting, isNew, mote, newReadWriteLock, rehydrate, restore
 
Methods inherited from class org.codehaus.wadi.core.eviction.SimpleEvictable
copy, getCreationTime, getLastAccessedTime, getMaxInactiveInterval, getTimedOut, getTimeToLive, init, mote, readExternal, setLastAccessedTime, writeExternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.wadi.core.session.Session
addState, getLocalStateMap, getState, getState, onEndProcessing, removeState
 
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
 

Field Detail

config

protected final WebSessionConfig config

router

protected final Router router

wrapper

protected final javax.servlet.http.HttpSession wrapper

httpSessionEvent

protected final javax.servlet.http.HttpSessionEvent httpSessionEvent
Constructor Detail

BasicWebSession

public BasicWebSession(WebSessionConfig config,
                       DistributableAttributes attributes,
                       WebSessionWrapperFactory wrapperFactory,
                       Router router,
                       Manager manager,
                       Streamer streamer,
                       ReplicationManager replicationManager)
Method Detail

getWrapper

public javax.servlet.http.HttpSession getWrapper()
Specified by:
getWrapper in interface WADIHttpSession

getHttpSessionEvent

public javax.servlet.http.HttpSessionEvent getHttpSessionEvent()
Specified by:
getHttpSessionEvent in interface WADIHttpSession

getConfig

public WebSessionConfig getConfig()
Specified by:
getConfig in interface WebSession

getId

public java.lang.String getId()
Specified by:
getId in interface WebSession

getAttribute

public java.lang.Object getAttribute(java.lang.String name)
Specified by:
getAttribute in interface WebSession

getAttributeNameSet

public java.util.Set getAttributeNameSet()
Specified by:
getAttributeNameSet in interface WebSession

getAttributeNameEnumeration

public java.util.Enumeration getAttributeNameEnumeration()
Specified by:
getAttributeNameEnumeration in interface WebSession

getAttributeNameStringArray

public java.lang.String[] getAttributeNameStringArray()
Specified by:
getAttributeNameStringArray in interface WebSession

setAttribute

public java.lang.Object setAttribute(java.lang.String name,
                                     java.lang.Object newValue)
Specified by:
setAttribute in interface WebSession

removeAttribute

public java.lang.Object removeAttribute(java.lang.String name)
Specified by:
removeAttribute in interface WebSession

onDeserialization

protected void onDeserialization()
Overrides:
onDeserialization in class AbstractMotable

onSerialization

protected void onSerialization()
Overrides:
onSerialization in class SimpleEvictable

onAddSate

protected void onAddSate(java.lang.Object key,
                         java.lang.Object oldValue,
                         java.lang.Object newValue)
Overrides:
onAddSate in class AtomicallyReplicableSession

onRemoveState

protected void onRemoveState(java.lang.Object key,
                             java.lang.Object oldValue)
Overrides:
onRemoveState in class AtomicallyReplicableSession


Copyright © 2010. All Rights Reserved.