Package org.apache.http.nio.entity
Class ContentBufferEntity
java.lang.Object
org.apache.http.entity.AbstractHttpEntity
org.apache.http.entity.BasicHttpEntity
org.apache.http.nio.entity.ContentBufferEntity
- All Implemented Interfaces:
HttpEntity
HTTP entity wrapper whose content is provided by a
ContentInputBuffer.- Since:
- 4.0
-
Field Summary
Fields inherited from class org.apache.http.entity.AbstractHttpEntity
chunked, contentEncoding, contentType, OUTPUT_BUFFER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionContentBufferEntity(HttpEntity entity, ContentInputBuffer buffer) Creates new instance of ContentBufferEntity. -
Method Summary
Modifier and TypeMethodDescriptionlongbooleanMethods inherited from class org.apache.http.entity.BasicHttpEntity
getContent, isRepeatable, isStreaming, setContent, setContentLength, writeToMethods inherited from class org.apache.http.entity.AbstractHttpEntity
consumeContent, setChunked, setContentEncoding, setContentEncoding, setContentType, setContentType
-
Constructor Details
-
ContentBufferEntity
Creates new instance of ContentBufferEntity.- Parameters:
entity- the original entity.buffer- the content buffer.
-
-
Method Details
-
isChunked
public boolean isChunked()- Specified by:
isChunkedin interfaceHttpEntity- Overrides:
isChunkedin classAbstractHttpEntity
-
getContentLength
public long getContentLength()- Specified by:
getContentLengthin interfaceHttpEntity- Overrides:
getContentLengthin classBasicHttpEntity
-
getContentType
- Specified by:
getContentTypein interfaceHttpEntity- Overrides:
getContentTypein classAbstractHttpEntity
-
getContentEncoding
- Specified by:
getContentEncodingin interfaceHttpEntity- Overrides:
getContentEncodingin classAbstractHttpEntity
-