|
||||||||||
| 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
@NotThreadSafe 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 |
| 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 |
|---|
consumeContent, getContent, isRepeatable, isStreaming, setContent, setContentLength, writeTo |
| Methods inherited from class org.apache.http.entity.AbstractHttpEntity |
|---|
setChunked, setContentEncoding, setContentEncoding, setContentType, setContentType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContentBufferEntity(HttpEntity entity,
ContentInputBuffer buffer)
entity - the original entity.buffer - the content buffer.| Method Detail |
|---|
public boolean isChunked()
AbstractHttpEntitychunked attribute.
isChunked in interface HttpEntityisChunked in class AbstractHttpEntitypublic long getContentLength()
HttpEntity
getContentLength 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 AbstractHttpEntitynull
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||