Class LogbookHttpAsyncResponseConsumer<T>

java.lang.Object
org.zalando.logbook.httpclient.LogbookHttpAsyncResponseConsumer<T>
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.http.concurrent.Cancellable, org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>

@API(status=EXPERIMENTAL) public final class LogbookHttpAsyncResponseConsumer<T> extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    LogbookHttpAsyncResponseConsumer(org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T> consumer, boolean decompressResponse)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>
     
    void
    responseCompleted(org.apache.http.protocol.HttpContext context)
     
    void
    responseReceived(org.apache.http.HttpResponse response)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.http.concurrent.Cancellable

    cancel

    Methods inherited from interface java.io.Closeable

    close

    Methods inherited from interface org.apache.http.nio.protocol.HttpAsyncResponseConsumer

    consumeContent, failed, getException, getResult, isDone
  • Constructor Details

    • LogbookHttpAsyncResponseConsumer

      public LogbookHttpAsyncResponseConsumer(org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T> consumer, boolean decompressResponse)
  • Method Details

    • delegate

      protected org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T> delegate()
    • responseReceived

      public void responseReceived(org.apache.http.HttpResponse response) throws IOException, org.apache.http.HttpException
      Throws:
      IOException
      org.apache.http.HttpException
    • responseCompleted

      public void responseCompleted(org.apache.http.protocol.HttpContext context)