org.apache.http.nio.protocol
Interface HttpAsyncResponseConsumer<T>
- All Superinterfaces:
- Cancellable, Closeable
- All Known Subinterfaces:
- HttpAsyncClientExchangeHandler<T>
- All Known Implementing Classes:
- AbstractAsyncResponseConsumer, BasicAsyncResponseConsumer
public interface HttpAsyncResponseConsumer<T>
- extends Closeable, Cancellable
- Since:
- 4.2
responseReceived
void responseReceived(HttpResponse response)
throws IOException,
HttpException
- Throws:
IOException
HttpException
consumeContent
void consumeContent(ContentDecoder decoder,
IOControl ioctrl)
throws IOException
- Throws:
IOException
responseCompleted
void responseCompleted(HttpContext context)
failed
void failed(Exception ex)
getResult
T getResult()
getException
Exception getException()
isDone
boolean isDone()
Copyright © 2005-2011 The Apache Software Foundation. All Rights Reserved.