@API(status=EXPERIMENTAL) public final class LogbookHttpAsyncResponseConsumer<T> extends Object
| Constructor and Description |
|---|
LogbookHttpAsyncResponseConsumer(org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T> consumer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel() |
void |
close() |
void |
consumeContent(org.apache.http.nio.ContentDecoder decoder,
org.apache.http.nio.IOControl control) |
protected org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T> |
delegate() |
void |
failed(Exception e) |
Exception |
getException() |
T |
getResult() |
boolean |
isDone() |
void |
responseCompleted(org.apache.http.protocol.HttpContext context) |
void |
responseReceived(org.apache.http.HttpResponse response) |
public LogbookHttpAsyncResponseConsumer(org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T> consumer)
protected org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T> delegate()
public void responseReceived(org.apache.http.HttpResponse response)
throws IOException,
org.apache.http.HttpException
responseReceived in interface org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>IOExceptionorg.apache.http.HttpExceptionpublic void responseCompleted(org.apache.http.protocol.HttpContext context)
responseCompleted in interface org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>public void consumeContent(org.apache.http.nio.ContentDecoder decoder,
org.apache.http.nio.IOControl control)
throws IOException
consumeContent in interface org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>IOExceptionpublic boolean cancel()
cancel in interface org.apache.http.concurrent.Cancellablepublic boolean isDone()
isDone in interface org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>public T getResult()
getResult in interface org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>public void failed(Exception e)
failed in interface org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>public Exception getException()
getException in interface org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2015–2018 Zalando SE. All rights reserved.