Package org.zalando.logbook.httpclient5
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
-
Constructor Summary
ConstructorsConstructorDescriptionLogbookHttpAsyncResponseConsumer(org.apache.hc.core5.http.nio.AsyncResponseConsumer<T> consumer) -
Method Summary
Modifier and TypeMethodDescriptionvoidconsume(ByteBuffer src) voidconsumeResponse(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>delegate()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hc.core5.http.nio.AsyncDataConsumer
streamEnd, updateCapacityMethods inherited from interface org.apache.hc.core5.http.nio.AsyncResponseConsumer
failed, informationResponseMethods 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
-
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.HttpExceptionIOException
-
consume
- Throws:
IOException
-