Class LogbookHttpAsyncResponseConsumer<T>

java.lang.Object
org.zalando.logbook.httpclient5.LogbookHttpAsyncResponseConsumer<T>
All Implemented Interfaces:
org.apache.hc.core5.http.nio.AsyncDataConsumer, org.apache.hc.core5.http.nio.AsyncResponseConsumer<T>, org.apache.hc.core5.http.nio.ResourceHolder

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

    Constructors
    Constructor
    Description
    LogbookHttpAsyncResponseConsumer(org.apache.hc.core5.http.nio.AsyncResponseConsumer<T> consumer)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    consumeResponse(org.apache.hc.core5.http.HttpResponse response, org.apache.hc.core5.http.EntityDetails entityDetails, org.apache.hc.core5.http.protocol.HttpContext context, org.apache.hc.core5.concurrent.FutureCallback<T> resultCallback)
     
    protected org.apache.hc.core5.http.nio.AsyncResponseConsumer<T>
     

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface org.apache.hc.core5.http.nio.AsyncDataConsumer

    streamEnd, updateCapacity

    Methods inherited from interface org.apache.hc.core5.http.nio.AsyncResponseConsumer

    failed, informationResponse

    Methods inherited from interface org.apache.hc.core5.http.nio.ResourceHolder

    releaseResources
  • Constructor Details

    • LogbookHttpAsyncResponseConsumer

      public LogbookHttpAsyncResponseConsumer(org.apache.hc.core5.http.nio.AsyncResponseConsumer<T> consumer)
  • Method Details

    • delegate

      protected org.apache.hc.core5.http.nio.AsyncResponseConsumer<T> delegate()
    • consumeResponse

      public void consumeResponse(org.apache.hc.core5.http.HttpResponse response, org.apache.hc.core5.http.EntityDetails entityDetails, org.apache.hc.core5.http.protocol.HttpContext context, org.apache.hc.core5.concurrent.FutureCallback<T> resultCallback) throws org.apache.hc.core5.http.HttpException, IOException
      Throws:
      org.apache.hc.core5.http.HttpException
      IOException
    • consume

      public void consume(ByteBuffer src) throws IOException
      Throws:
      IOException