org.codehaus.wadi.impl
Class DistributableSession

java.lang.Object
  extended byorg.codehaus.wadi.impl.SimpleEvictable
      extended byorg.codehaus.wadi.impl.AbstractMotable
          extended byorg.codehaus.wadi.impl.AbstractContext
              extended byorg.codehaus.wadi.impl.StandardSession
                  extended byorg.codehaus.wadi.impl.DistributableSession
All Implemented Interfaces:
AttributesConfig, Config, Context, DistributableAttributesConfig, Evictable, Motable, Serializable, SerializableContent, Session, WADIHttpSession
Direct Known Subclasses:
AbstractReplicableSession

public class DistributableSession
extends StandardSession
implements DistributableAttributesConfig

A Standard Session enhanced with functionality associated with [de]serialisation - necessary to allow the movement of the session from jvm to jvm/storage.

Version:
$Revision: 1200 $
Author:
Jules Gosnell
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.codehaus.wadi.impl.StandardSession
_attributes, _config, _emptyEnumeration, _emptyStringArray, _httpSessionEvent, _log, _wrapper
 
Fields inherited from class org.codehaus.wadi.impl.AbstractContext
_lock
 
Fields inherited from class org.codehaus.wadi.impl.AbstractMotable
_name
 
Fields inherited from class org.codehaus.wadi.impl.SimpleEvictable
_creationTime, _lastAccessedTime, _maxInactiveInterval
 
Constructor Summary
DistributableSession(DistributableSessionConfig config)
           
 
Method Summary
 ValueHelper findHelper(Class type)
           
 byte[] getBodyAsByteArray()
           
 boolean getHttpSessionAttributeListenersRegistered()
           
 Set getListenerNames()
           
 Streamer getStreamer()
           
 void readContent(ObjectInput oi)
           
 void setBodyAsByteArray(byte[] bytes)
           
 void writeContent(ObjectOutput oo)
           
 
Methods inherited from class org.codehaus.wadi.impl.StandardSession
destroy, getAttribute, getAttributeNameEnumeration, getAttributeNameSet, getAttributeNameStringArray, getConfig, getHttpSessionEvent, getId, getValuePool, getWrapper, notifyAttributeListeners, notifyBindingListeners, removeAttribute, setAttribute, setLastAccessedTime, setMaxInactiveInterval
 
Methods inherited from class org.codehaus.wadi.impl.AbstractContext
getBodyAsByteBuffer, getExclusiveLock, getSharedLock, setBodyAsByteBuffer
 
Methods inherited from class org.codehaus.wadi.impl.AbstractMotable
copy, getName, init, mote
 
Methods inherited from class org.codehaus.wadi.impl.SimpleEvictable
checkTimeframe, copy, getCreationTime, getLastAccessedTime, getMaxInactiveInterval, getTimedOut, getTimeToLive, init, isNew, mote
 
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.DistributableAttributesConfig
getHttpSessionEvent
 
Methods inherited from interface org.codehaus.wadi.AttributesConfig
getValuePool
 
Methods inherited from interface org.codehaus.wadi.Context
getExclusiveLock, getSharedLock
 
Methods inherited from interface org.codehaus.wadi.Motable
copy, getBodyAsByteBuffer, getName, init, mote, setBodyAsByteBuffer
 
Methods inherited from interface org.codehaus.wadi.Evictable
checkTimeframe, copy, getCreationTime, getLastAccessedTime, getMaxInactiveInterval, getTimedOut, getTimeToLive, init, isNew, mote
 

Constructor Detail

DistributableSession

public DistributableSession(DistributableSessionConfig config)
Method Detail

getStreamer

public Streamer getStreamer()
Specified by:
getStreamer in interface DistributableAttributesConfig

readContent

public void readContent(ObjectInput oi)
                 throws IOException,
                        ClassNotFoundException
Specified by:
readContent in interface SerializableContent
Overrides:
readContent in class AbstractMotable
Throws:
IOException
ClassNotFoundException

writeContent

public void writeContent(ObjectOutput oo)
                  throws IOException
Specified by:
writeContent in interface SerializableContent
Overrides:
writeContent in class AbstractMotable
Throws:
IOException

getBodyAsByteArray

public byte[] getBodyAsByteArray()
                          throws Exception
Specified by:
getBodyAsByteArray in interface Motable
Overrides:
getBodyAsByteArray in class StandardSession
Throws:
Exception

setBodyAsByteArray

public void setBodyAsByteArray(byte[] bytes)
                        throws IOException,
                               ClassNotFoundException
Specified by:
setBodyAsByteArray in interface Motable
Overrides:
setBodyAsByteArray in class StandardSession
Throws:
IOException
ClassNotFoundException

findHelper

public ValueHelper findHelper(Class type)
Specified by:
findHelper in interface DistributableAttributesConfig

getListenerNames

public Set getListenerNames()

getHttpSessionAttributeListenersRegistered

public boolean getHttpSessionAttributeListenersRegistered()
Specified by:
getHttpSessionAttributeListenersRegistered in interface DistributableAttributesConfig


Copyright © 2004-2008 Core Developers Network Ltd.. All Rights Reserved.