org.apache.http.nio.client
Interface HttpAsyncResponseConsumer<T>

All Known Subinterfaces:
HttpAsyncExchangeHandler<T>
All Known Implementing Classes:
AbstractHttpAsyncResponseConsumer, AsyncByteConsumer, AsyncCharConsumer, ZeroCopyConsumer

public interface HttpAsyncResponseConsumer<T>


Method Summary
 void cancel()
           
 void consumeContent(org.apache.http.nio.ContentDecoder decoder, org.apache.http.nio.IOControl ioctrl)
           
 void failed(Exception ex)
           
 Exception getException()
           
 T getResult()
           
 void responseCompleted()
           
 void responseReceived(HttpResponse response)
           
 

Method Detail

responseReceived

void responseReceived(HttpResponse response)
                      throws IOException,
                             HttpException
Throws:
IOException
HttpException

consumeContent

void consumeContent(org.apache.http.nio.ContentDecoder decoder,
                    org.apache.http.nio.IOControl ioctrl)
                    throws IOException
Throws:
IOException

responseCompleted

void responseCompleted()

failed

void failed(Exception ex)

cancel

void cancel()

getResult

T getResult()

getException

Exception getException()


Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.