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:
org.apache.http.HttpEntity
public class ContentBufferEntity extends org.apache.http.entity.BasicHttpEntityHTTP entity wrapper whose content is provided by aContentInputBuffer.- Since:
- 4.0
-
-
Constructor Summary
Constructors Constructor Description ContentBufferEntity(org.apache.http.HttpEntity entity, ContentInputBuffer buffer)Creates new instance of ContentBufferEntity.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.http.HeadergetContentEncoding()longgetContentLength()org.apache.http.HeadergetContentType()booleanisChunked()-
Methods inherited from class org.apache.http.entity.BasicHttpEntity
getContent, isRepeatable, isStreaming, setContent, setContentLength, writeTo
-
-
-
-
Constructor Detail
-
ContentBufferEntity
public ContentBufferEntity(org.apache.http.HttpEntity entity, ContentInputBuffer buffer)Creates new instance of ContentBufferEntity.- Parameters:
entity- the original entity.buffer- the content buffer.
-
-
Method Detail
-
isChunked
public boolean isChunked()
- Specified by:
isChunkedin interfaceorg.apache.http.HttpEntity- Overrides:
isChunkedin classorg.apache.http.entity.AbstractHttpEntity
-
getContentLength
public long getContentLength()
- Specified by:
getContentLengthin interfaceorg.apache.http.HttpEntity- Overrides:
getContentLengthin classorg.apache.http.entity.BasicHttpEntity
-
getContentType
public org.apache.http.Header getContentType()
- Specified by:
getContentTypein interfaceorg.apache.http.HttpEntity- Overrides:
getContentTypein classorg.apache.http.entity.AbstractHttpEntity
-
getContentEncoding
public org.apache.http.Header getContentEncoding()
- Specified by:
getContentEncodingin interfaceorg.apache.http.HttpEntity- Overrides:
getContentEncodingin classorg.apache.http.entity.AbstractHttpEntity
-
-