Class CombinedEntity

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, org.apache.hc.core5.http.EntityDetails, org.apache.hc.core5.http.HttpEntity

    class CombinedEntity
    extends java.lang.Object
    implements org.apache.hc.core5.http.HttpEntity
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.InputStream combinedStream  
      private org.apache.hc.core5.http.HttpEntity entity  
    • Constructor Summary

      Constructors 
      Constructor Description
      CombinedEntity​(org.apache.hc.core5.http.HttpEntity entity, org.apache.hc.core5.util.ByteArrayBuffer buf)  
    • Field Detail

      • entity

        private final org.apache.hc.core5.http.HttpEntity entity
      • combinedStream

        private final java.io.InputStream combinedStream
    • Constructor Detail

      • CombinedEntity

        CombinedEntity​(org.apache.hc.core5.http.HttpEntity entity,
                       org.apache.hc.core5.util.ByteArrayBuffer buf)
                throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getContentLength

        public long getContentLength()
        Specified by:
        getContentLength in interface org.apache.hc.core5.http.EntityDetails
      • getContentType

        public java.lang.String getContentType()
        Specified by:
        getContentType in interface org.apache.hc.core5.http.EntityDetails
      • getContentEncoding

        public java.lang.String getContentEncoding()
        Specified by:
        getContentEncoding in interface org.apache.hc.core5.http.EntityDetails
      • isChunked

        public boolean isChunked()
        Specified by:
        isChunked in interface org.apache.hc.core5.http.EntityDetails
      • isRepeatable

        public boolean isRepeatable()
        Specified by:
        isRepeatable in interface org.apache.hc.core5.http.HttpEntity
      • isStreaming

        public boolean isStreaming()
        Specified by:
        isStreaming in interface org.apache.hc.core5.http.HttpEntity
      • getContent

        public java.io.InputStream getContent()
                                       throws java.io.IOException,
                                              java.lang.IllegalStateException
        Specified by:
        getContent in interface org.apache.hc.core5.http.HttpEntity
        Throws:
        java.io.IOException
        java.lang.IllegalStateException
      • getTrailerNames

        public java.util.Set<java.lang.String> getTrailerNames()
        Specified by:
        getTrailerNames in interface org.apache.hc.core5.http.EntityDetails
      • getTrailers

        public org.apache.hc.core5.function.Supplier<java.util.List<? extends org.apache.hc.core5.http.Header>> getTrailers()
        Specified by:
        getTrailers in interface org.apache.hc.core5.http.HttpEntity
      • writeTo

        public void writeTo​(java.io.OutputStream outStream)
                     throws java.io.IOException
        Specified by:
        writeTo in interface org.apache.hc.core5.http.HttpEntity
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException