public class ContentBufferEntity extends BasicHttpEntity
ContentInputBuffer.chunked, contentEncoding, contentType, OUTPUT_BUFFER_SIZE| Constructor and Description |
|---|
ContentBufferEntity(HttpEntity entity,
ContentInputBuffer buffer)
Creates new instance of ContentBufferEntity.
|
| Modifier and Type | Method and Description |
|---|---|
Header |
getContentEncoding()
Obtains the Content-Encoding header.
|
long |
getContentLength()
Tells the length of the content, if known.
|
Header |
getContentType()
Obtains the Content-Type header.
|
boolean |
isChunked()
Obtains the 'chunked' flag.
|
getContent, isRepeatable, isStreaming, setContent, setContentLength, writeToconsumeContent, setChunked, setContentEncoding, setContentEncoding, setContentType, setContentType, toStringpublic ContentBufferEntity(HttpEntity entity, ContentInputBuffer buffer)
entity - the original entity.buffer - the content buffer.public boolean isChunked()
AbstractHttpEntitychunked attribute.isChunked in interface HttpEntityisChunked in class AbstractHttpEntitypublic long getContentLength()
HttpEntitygetContentLength in interface HttpEntitygetContentLength in class BasicHttpEntityLong.MAX_VALUE,
a negative number is returned.public Header getContentType()
AbstractHttpEntitycontentType attribute.getContentType in interface HttpEntitygetContentType in class AbstractHttpEntitynullpublic Header getContentEncoding()
AbstractHttpEntitycontentEncoding attribute.getContentEncoding in interface HttpEntitygetContentEncoding in class AbstractHttpEntitynullCopyright © 2005–2022 The Apache Software Foundation. All rights reserved.