org.apache.http.nio.entity
Class ContentBufferEntity

java.lang.Object
  extended by org.apache.http.entity.AbstractHttpEntity
      extended by org.apache.http.entity.BasicHttpEntity
          extended by org.apache.http.nio.entity.ContentBufferEntity
All Implemented Interfaces:
HttpEntity

public class ContentBufferEntity
extends BasicHttpEntity

HTTP entity wrapper whose content is provided by a ContentInputBuffer.

Since:
4.0

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()
           
 long getContentLength()
           
 Header getContentType()
           
 boolean isChunked()
           
 
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

ContentBufferEntity

public ContentBufferEntity(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:
isChunked in interface HttpEntity
Overrides:
isChunked in class AbstractHttpEntity

getContentLength

public long getContentLength()
Specified by:
getContentLength in interface HttpEntity
Overrides:
getContentLength in class BasicHttpEntity

getContentType

public Header getContentType()
Specified by:
getContentType in interface HttpEntity
Overrides:
getContentType in class AbstractHttpEntity

getContentEncoding

public Header getContentEncoding()
Specified by:
getContentEncoding in interface HttpEntity
Overrides:
getContentEncoding in class AbstractHttpEntity


Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.