Class ContentBufferEntity

  • All Implemented Interfaces:
    org.apache.http.HttpEntity

    public class ContentBufferEntity
    extends org.apache.http.entity.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

      Constructors 
      Constructor Description
      ContentBufferEntity​(org.apache.http.HttpEntity entity, ContentInputBuffer buffer)
      Creates new instance of ContentBufferEntity.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.http.Header getContentEncoding()  
      long getContentLength()  
      org.apache.http.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​(org.apache.http.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 org.apache.http.HttpEntity
        Overrides:
        isChunked in class org.apache.http.entity.AbstractHttpEntity
      • getContentLength

        public long getContentLength()
        Specified by:
        getContentLength in interface org.apache.http.HttpEntity
        Overrides:
        getContentLength in class org.apache.http.entity.BasicHttpEntity
      • getContentType

        public org.apache.http.Header getContentType()
        Specified by:
        getContentType in interface org.apache.http.HttpEntity
        Overrides:
        getContentType in class org.apache.http.entity.AbstractHttpEntity
      • getContentEncoding

        public org.apache.http.Header getContentEncoding()
        Specified by:
        getContentEncoding in interface org.apache.http.HttpEntity
        Overrides:
        getContentEncoding in class org.apache.http.entity.AbstractHttpEntity