Package org.zalando.logbook.httpclient
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>
-
Constructor Summary
ConstructorsConstructorDescriptionLogbookHttpAsyncResponseConsumer(org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T> consumer, boolean decompressResponse) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T> delegate()voidresponseCompleted(org.apache.http.protocol.HttpContext context) voidresponseReceived(org.apache.http.HttpResponse response) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.http.concurrent.Cancellable
cancelMethods 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
-
responseReceived
public void responseReceived(org.apache.http.HttpResponse response) throws IOException, org.apache.http.HttpException - Throws:
IOExceptionorg.apache.http.HttpException
-
responseCompleted
public void responseCompleted(org.apache.http.protocol.HttpContext context)
-