Class ByteBufferEntity
java.lang.Object
org.apache.http.entity.AbstractHttpEntity
pl.allegro.tech.hermes.consumers.consumer.sender.http.ByteBufferEntity
- All Implemented Interfaces:
Cloneable,org.apache.http.HttpEntity
@Contract(threading=UNSAFE)
public class ByteBufferEntity
extends org.apache.http.entity.AbstractHttpEntity
implements Cloneable
An entity that delivers the contents of a
ByteBuffer.-
Field Summary
Fields inherited from class org.apache.http.entity.AbstractHttpEntity
chunked, contentEncoding, contentType, OUTPUT_BUFFER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionByteBufferEntity(ByteBuffer buffer) ByteBufferEntity(ByteBuffer buffer, org.apache.http.entity.ContentType contentType) -
Method Summary
Modifier and TypeMethodDescriptionclone()longbooleanbooleanvoidwriteTo(OutputStream outstream) Methods inherited from class org.apache.http.entity.AbstractHttpEntity
consumeContent, getContentEncoding, getContentType, isChunked, setChunked, setContentEncoding, setContentEncoding, setContentType, setContentType, toString
-
Constructor Details
-
ByteBufferEntity
-
ByteBufferEntity
-
-
Method Details
-
isRepeatable
public boolean isRepeatable()- Specified by:
isRepeatablein interfaceorg.apache.http.HttpEntity
-
getContentLength
public long getContentLength()- Specified by:
getContentLengthin interfaceorg.apache.http.HttpEntity
-
getContent
- Specified by:
getContentin interfaceorg.apache.http.HttpEntity- Throws:
IOExceptionUnsupportedOperationException
-
writeTo
- Specified by:
writeToin interfaceorg.apache.http.HttpEntity- Throws:
IOException
-
isStreaming
public boolean isStreaming()- Specified by:
isStreamingin interfaceorg.apache.http.HttpEntity
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-