org.apache.http.impl.nio.client
Class BasicHttpAsyncResponseConsumer
java.lang.Object
org.apache.http.impl.nio.client.BasicHttpAsyncResponseConsumer
- All Implemented Interfaces:
- HttpAsyncResponseConsumer<HttpResponse>
public class BasicHttpAsyncResponseConsumer
- extends Object
- implements HttpAsyncResponseConsumer<HttpResponse>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicHttpAsyncResponseConsumer
public BasicHttpAsyncResponseConsumer()
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.