org.apache.http.impl.nio.client
Class BasicHttpAsyncResponseConsumer

java.lang.Object
  extended by org.apache.http.impl.nio.client.BasicHttpAsyncResponseConsumer
All Implemented Interfaces:
HttpAsyncResponseConsumer<HttpResponse>

public class BasicHttpAsyncResponseConsumer
extends Object
implements HttpAsyncResponseConsumer<HttpResponse>


Constructor Summary
BasicHttpAsyncResponseConsumer()
           
 
Method Summary
 void cancel()
           
 void consumeContent(org.apache.http.nio.ContentDecoder decoder, org.apache.http.nio.IOControl ioctrl)
           
protected  org.apache.http.nio.entity.ConsumingNHttpEntity createConsumingHttpEntity(HttpResponse response)
           
 void failed(Exception ex)
           
 Exception getException()
           
 HttpResponse getResult()
           
 void responseCompleted()
           
 void responseReceived(HttpResponse response)
           
 void setEx(Exception ex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicHttpAsyncResponseConsumer

public BasicHttpAsyncResponseConsumer()
Method Detail

createConsumingHttpEntity

protected org.apache.http.nio.entity.ConsumingNHttpEntity createConsumingHttpEntity(HttpResponse response)
                                                                             throws IOException
Throws:
IOException

responseReceived

public void responseReceived(HttpResponse response)
Specified by:
responseReceived in interface HttpAsyncResponseConsumer<HttpResponse>

consumeContent

public void consumeContent(org.apache.http.nio.ContentDecoder decoder,
                           org.apache.http.nio.IOControl ioctrl)
                    throws IOException
Specified by:
consumeContent in interface HttpAsyncResponseConsumer<HttpResponse>
Throws:
IOException

responseCompleted

public void responseCompleted()
Specified by:
responseCompleted in interface HttpAsyncResponseConsumer<HttpResponse>

cancel

public void cancel()
Specified by:
cancel in interface HttpAsyncResponseConsumer<HttpResponse>

failed

public void failed(Exception ex)
Specified by:
failed in interface HttpAsyncResponseConsumer<HttpResponse>

getException

public Exception getException()

setEx

public void setEx(Exception ex)

getResult

public HttpResponse getResult()
Specified by:
getResult in interface HttpAsyncResponseConsumer<HttpResponse>


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