Class ResponseEntityProxy

java.lang.Object
org.apache.hc.core5.http.io.entity.HttpEntityWrapper
org.apache.hc.client5.http.impl.classic.ResponseEntityProxy
All Implemented Interfaces:
Closeable, 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
  • Field Details

  • Constructor Details

    • ResponseEntityProxy

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

    • enhance

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

      private void cleanup() throws IOException
      Throws:
      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 InputStream getContent() throws 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:
      IOException
    • writeTo

      public void writeTo(OutputStream outStream) throws 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:
      IOException
    • eofDetected

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

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

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

      public org.apache.hc.core5.function.Supplier<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 IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class org.apache.hc.core5.http.io.entity.HttpEntityWrapper
      Throws:
      IOException