|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.http.entity.AbstractHttpEntity
org.apache.http.entity.BasicHttpEntity
org.apache.http.nio.entity.ContentBufferEntity
public class ContentBufferEntity
HTTP entity wrapper whose content is provided by a
ContentInputBuffer
.
Field Summary |
---|
Fields inherited from class org.apache.http.entity.AbstractHttpEntity |
---|
chunked, contentEncoding, contentType, OUTPUT_BUFFER_SIZE |
Constructor Summary | |
---|---|
ContentBufferEntity(HttpEntity entity,
ContentInputBuffer buffer)
Creates new instance of ContentBufferEntity. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.http.entity.BasicHttpEntity |
---|
getContent, isRepeatable, isStreaming, setContent, setContentLength, writeTo |
Methods inherited from class org.apache.http.entity.AbstractHttpEntity |
---|
consumeContent, setChunked, setContentEncoding, setContentEncoding, setContentType, setContentType, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ContentBufferEntity(HttpEntity entity, ContentInputBuffer buffer)
entity
- the original entity.buffer
- the content buffer.Method Detail |
---|
public boolean isChunked()
AbstractHttpEntity
chunked
attribute.
isChunked
in interface HttpEntity
isChunked
in class AbstractHttpEntity
public long getContentLength()
HttpEntity
getContentLength
in interface HttpEntity
getContentLength
in class BasicHttpEntity
Long.MAX_VALUE
,
a negative number is returned.public Header getContentType()
AbstractHttpEntity
contentType
attribute.
getContentType
in interface HttpEntity
getContentType
in class AbstractHttpEntity
null
public Header getContentEncoding()
AbstractHttpEntity
contentEncoding
attribute.
getContentEncoding
in interface HttpEntity
getContentEncoding
in class AbstractHttpEntity
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |