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() |
long |
getContentLength() |
Header |
getContentType() |
boolean |
isChunked() |
getContent, isRepeatable, isStreaming, setContent, setContentLength, writeTo
consumeContent, setChunked, setContentEncoding, setContentEncoding, setContentType, setContentType, toString
public ContentBufferEntity(HttpEntity entity, ContentInputBuffer buffer)
entity
- the original entity.buffer
- the content buffer.public boolean isChunked()
isChunked
in interface HttpEntity
isChunked
in class AbstractHttpEntity
public long getContentLength()
getContentLength
in interface HttpEntity
getContentLength
in class BasicHttpEntity
public Header getContentType()
getContentType
in interface HttpEntity
getContentType
in class AbstractHttpEntity
public Header getContentEncoding()
getContentEncoding
in interface HttpEntity
getContentEncoding
in class AbstractHttpEntity
Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.