org.codehaus.wadi.impl
Class AbstractContext

java.lang.Object
  extended byorg.codehaus.wadi.impl.SimpleEvictable
      extended byorg.codehaus.wadi.impl.AbstractMotable
          extended byorg.codehaus.wadi.impl.AbstractContext
All Implemented Interfaces:
Context, Evictable, Motable, Serializable, SerializableContent
Direct Known Subclasses:
StandardSession

public abstract class AbstractContext
extends AbstractMotable
implements Context

TODO - JavaDoc this type

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

Field Summary
protected  RankedRWLock _lock
           
protected static Log _log
           
 
Fields inherited from class org.codehaus.wadi.impl.AbstractMotable
_name
 
Fields inherited from class org.codehaus.wadi.impl.SimpleEvictable
_creationTime, _lastAccessedTime, _maxInactiveInterval
 
Constructor Summary
AbstractContext()
           
 
Method Summary
 byte[] getBodyAsByteArray()
           
 ByteBuffer getBodyAsByteBuffer()
           
 Sync getExclusiveLock()
           
 Sync getSharedLock()
           
 void setBodyAsByteArray(byte[] bytes)
           
 void setBodyAsByteBuffer(ByteBuffer body)
           
 
Methods inherited from class org.codehaus.wadi.impl.AbstractMotable
copy, destroy, getName, init, mote, readContent, writeContent
 
Methods inherited from class org.codehaus.wadi.impl.SimpleEvictable
checkTimeframe, copy, getCreationTime, getLastAccessedTime, getMaxInactiveInterval, getTimedOut, getTimeToLive, init, isNew, mote, setLastAccessedTime, setMaxInactiveInterval
 
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.Motable
copy, getName, init, mote
 
Methods inherited from interface org.codehaus.wadi.Evictable
checkTimeframe, copy, destroy, getCreationTime, getLastAccessedTime, getMaxInactiveInterval, getTimedOut, getTimeToLive, init, isNew, mote, setLastAccessedTime, setMaxInactiveInterval
 
Methods inherited from interface org.codehaus.wadi.SerializableContent
readContent, writeContent
 

Field Detail

_log

protected static Log _log

_lock

protected final RankedRWLock _lock
Constructor Detail

AbstractContext

public AbstractContext()
Method Detail

getSharedLock

public Sync getSharedLock()
Specified by:
getSharedLock in interface Context

getExclusiveLock

public Sync getExclusiveLock()
Specified by:
getExclusiveLock in interface Context

getBodyAsByteArray

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

setBodyAsByteArray

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

getBodyAsByteBuffer

public ByteBuffer getBodyAsByteBuffer()
                               throws Exception
Specified by:
getBodyAsByteBuffer in interface Motable
Throws:
Exception

setBodyAsByteBuffer

public void setBodyAsByteBuffer(ByteBuffer body)
                         throws Exception
Specified by:
setBodyAsByteBuffer in interface Motable
Throws:
Exception


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