ReReadableRepresentation
- public class ReReadableRepresentation extends Representation
Wrapper for Representation. Copies (part of) the content of a transient representation while it is read for later reuse (Needed by RequestLog). If the representation is longer than MAX_LENGTH characters, the copy is truncated.
- Author:
tf
Fields
MAX_LENGTH
- public static final int MAX_LENGTH
Constructors
ReReadableRepresentation
- public ReReadableRepresentation(Representation requestEntity)
Methods
add
- public void add(ByteBuffer dst)
add
- public void add(CharBuffer target)
add
- public void add(byte[] b)
add
- public void add(char r)
add
- public void add(char[] cbuf)
append
- public void append(Appendable appendable)
close
- public void close()
closeEarly
- public void closeEarly()
createClientInfo
- public ClientInfo createClientInfo()
equals
exhaust
- public long exhaust()
getAvailableSize
- public long getAvailableSize()
getChannel
- public ReadableByteChannel getChannel()
getCharacterSet
- public CharacterSet getCharacterSet()
getDigest
getDisposition
- public Disposition getDisposition()
getEncodings
getExpirationDate
getLanguages
getLocationRef
getMediaType
getModificationDate
getRange
getReader
getRegistration
- public SelectionRegistration getRegistration()
getSize
- public long getSize()
getStream
- public InputStream getStream()
getString
getTag
getText
hasKnownSize
- public boolean hasKnownSize()
includes
isAvailable
- public boolean isAvailable()
isCompatible
isEmpty
- public boolean isEmpty()
isSelectable
- public boolean isSelectable()
isTransient
- public boolean isTransient()
release
- public void release()
setAvailable
- public void setAvailable(boolean available)
setCharacterSet
- public void setCharacterSet(CharacterSet characterSet)
setDigest
setDisposition
- public void setDisposition(Disposition disposition)
setEncodings
setExpirationDate
setLanguages
setListener
- public void setListener(ReadingListener readingListener)
setLocationRef
setLocationRef
setMediaType
setModificationDate
setRange
setSize
- public void setSize(long expectedSize)
setTag
setTransient
- public void setTransient(boolean isTransient)
toString
write
write
- public void write(WritableByteChannel writableChannel)
write
- public void write(OutputStream outputStream)