org.apache.http.nio.protocol
Class BasicAsyncResponseConsumer
java.lang.Object
org.apache.http.nio.protocol.AbstractAsyncResponseConsumer<HttpResponse>
org.apache.http.nio.protocol.BasicAsyncResponseConsumer
- All Implemented Interfaces:
- Closeable, Cancellable, HttpAsyncResponseConsumer<HttpResponse>
@ThreadSafe
public class BasicAsyncResponseConsumer
- extends AbstractAsyncResponseConsumer<HttpResponse>
- Since:
- 4.2
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicAsyncResponseConsumer
public BasicAsyncResponseConsumer(ByteBufferAllocator allocator)
BasicAsyncResponseConsumer
public BasicAsyncResponseConsumer()
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.