org.codehaus.wadi.impl
Class SimpleMotable
java.lang.Object
org.codehaus.wadi.impl.SimpleEvictable
org.codehaus.wadi.impl.AbstractMotable
org.codehaus.wadi.impl.SimpleMotable
- All Implemented Interfaces:
- Evictable, Motable, Serializable
- public class SimpleMotable
- extends AbstractMotable
- implements Serializable
A very Simple implementation of Motable, with the Bytes field represented as a byte[]
- Version:
- $Revision: 1200 $
- Author:
- Jules Gosnell
- See Also:
- Serialized Form
Field Summary |
protected byte[] |
_bytes
|
Methods inherited from class org.codehaus.wadi.impl.SimpleEvictable |
checkTimeframe, copy, getCreationTime, getLastAccessedTime, getMaxInactiveInterval, getTimedOut, getTimeToLive, init, isNew, mote, setLastAccessedTime, setMaxInactiveInterval |
Methods inherited from interface org.codehaus.wadi.Evictable |
checkTimeframe, copy, getCreationTime, getLastAccessedTime, getMaxInactiveInterval, getTimedOut, getTimeToLive, init, isNew, mote, setLastAccessedTime, setMaxInactiveInterval |
_bytes
protected byte[] _bytes
SimpleMotable
public SimpleMotable()
getBodyAsByteArray
public byte[] getBodyAsByteArray()
- Specified by:
getBodyAsByteArray
in interface Motable
setBodyAsByteArray
public void setBodyAsByteArray(byte[] bytes)
- Specified by:
setBodyAsByteArray
in interface Motable
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
equals
public boolean equals(Object object)
Copyright © 2004-2006 Core Developers Network Ltd.. All Rights Reserved.