org.apache.http.nio.protocol
Class BasicAsyncResponseConsumer

java.lang.Object
  extended by org.apache.http.nio.protocol.AbstractAsyncResponseConsumer<HttpResponse>
      extended by org.apache.http.nio.protocol.BasicAsyncResponseConsumer
All Implemented Interfaces:
Closeable, Cancellable, HttpAsyncResponseConsumer<HttpResponse>

@ThreadSafe
public class BasicAsyncResponseConsumer
extends AbstractAsyncResponseConsumer<HttpResponse>

Since:
4.2

Constructor Summary
BasicAsyncResponseConsumer()
           
BasicAsyncResponseConsumer(ByteBufferAllocator allocator)
           
 
Method Summary
protected  HttpResponse buildResult(HttpContext context)
           
protected  void onContentReceived(ContentDecoder decoder, IOControl ioctrl)
           
protected  void onResponseReceived(HttpResponse response)
           
protected  void releaseResources()
           
 
Methods inherited from class org.apache.http.nio.protocol.AbstractAsyncResponseConsumer
cancel, close, consumeContent, failed, getException, getResult, isDone, responseCompleted, responseReceived
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicAsyncResponseConsumer

public BasicAsyncResponseConsumer(ByteBufferAllocator allocator)

BasicAsyncResponseConsumer

public BasicAsyncResponseConsumer()
Method Detail

onResponseReceived

protected void onResponseReceived(HttpResponse response)
Specified by:
onResponseReceived in class AbstractAsyncResponseConsumer<HttpResponse>

onContentReceived

protected void onContentReceived(ContentDecoder decoder,
                                 IOControl ioctrl)
                          throws IOException
Specified by:
onContentReceived in class AbstractAsyncResponseConsumer<HttpResponse>
Throws:
IOException

releaseResources

protected void releaseResources()
Specified by:
releaseResources in class AbstractAsyncResponseConsumer<HttpResponse>

buildResult

protected HttpResponse buildResult(HttpContext context)
Specified by:
buildResult in class AbstractAsyncResponseConsumer<HttpResponse>


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