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

Method Summary
 void consumeContent(ContentDecoder decoder, IOControl ioctrl)
           
 void failed(Exception ex)
           
 Exception getException()
           
 T getResult()
           
 boolean isDone()
           
 void responseCompleted(HttpContext context)
           
 void responseReceived(HttpResponse response)
           
 
Methods inherited from interface java.io.Closeable
close
 
Methods inherited from interface org.apache.http.concurrent.Cancellable
cancel
 

Method Detail

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.