Class ResponseEntityProxy

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

    class ResponseEntityProxy
    extends org.apache.hc.core5.http.io.entity.HttpEntityWrapper
    implements org.apache.hc.core5.http.io.EofSensorWatcher
    • Constructor Summary

      Constructors 
      Constructor Description
      ResponseEntityProxy​(org.apache.hc.core5.http.HttpEntity entity, ExecRuntime execRuntime)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void cleanup()  
      void close()  
      private void discardConnection()  
      static void enhance​(org.apache.hc.core5.http.ClassicHttpResponse response, ExecRuntime execRuntime)  
      boolean eofDetected​(java.io.InputStream wrapped)  
      java.io.InputStream getContent()  
      org.apache.hc.core5.function.Supplier<java.util.List<? extends org.apache.hc.core5.http.Header>> getTrailers()  
      boolean isRepeatable()  
      void releaseConnection()  
      boolean streamAbort​(java.io.InputStream wrapped)  
      boolean streamClosed​(java.io.InputStream wrapped)  
      void writeTo​(java.io.OutputStream outStream)  
      • Methods inherited from class org.apache.hc.core5.http.io.entity.HttpEntityWrapper

        getContentEncoding, getContentLength, getContentType, getTrailerNames, isChunked, isStreaming, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

    • Constructor Detail

      • ResponseEntityProxy

        ResponseEntityProxy​(org.apache.hc.core5.http.HttpEntity entity,
                            ExecRuntime execRuntime)
    • Method Detail

      • enhance

        public static void enhance​(org.apache.hc.core5.http.ClassicHttpResponse response,
                                   ExecRuntime execRuntime)
      • cleanup

        private void cleanup()
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • discardConnection

        private void discardConnection()
      • releaseConnection

        public void releaseConnection()
      • isRepeatable

        public boolean isRepeatable()
        Specified by:
        isRepeatable in interface org.apache.hc.core5.http.HttpEntity
        Overrides:
        isRepeatable in class org.apache.hc.core5.http.io.entity.HttpEntityWrapper
      • getContent

        public java.io.InputStream getContent()
                                       throws java.io.IOException
        Specified by:
        getContent in interface org.apache.hc.core5.http.HttpEntity
        Overrides:
        getContent in class org.apache.hc.core5.http.io.entity.HttpEntityWrapper
        Throws:
        java.io.IOException
      • writeTo

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

        public boolean eofDetected​(java.io.InputStream wrapped)
                            throws java.io.IOException
        Specified by:
        eofDetected in interface org.apache.hc.core5.http.io.EofSensorWatcher
        Throws:
        java.io.IOException
      • streamClosed

        public boolean streamClosed​(java.io.InputStream wrapped)
                             throws java.io.IOException
        Specified by:
        streamClosed in interface org.apache.hc.core5.http.io.EofSensorWatcher
        Throws:
        java.io.IOException
      • streamAbort

        public boolean streamAbort​(java.io.InputStream wrapped)
                            throws java.io.IOException
        Specified by:
        streamAbort in interface org.apache.hc.core5.http.io.EofSensorWatcher
        Throws:
        java.io.IOException
      • 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
        Overrides:
        getTrailers in class org.apache.hc.core5.http.io.entity.HttpEntityWrapper
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class org.apache.hc.core5.http.io.entity.HttpEntityWrapper
        Throws:
        java.io.IOException