org.apache.cxf.transport.http.asyncclient
Class CXFHttpAsyncResponseConsumer
java.lang.Object
org.apache.cxf.transport.http.asyncclient.CXFHttpAsyncResponseConsumer
- All Implemented Interfaces:
- Closeable, org.apache.http.concurrent.Cancellable, org.apache.http.nio.protocol.HttpAsyncResponseConsumer<Boolean>
public class CXFHttpAsyncResponseConsumer
- extends Object
- implements org.apache.http.nio.protocol.HttpAsyncResponseConsumer<Boolean>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CXFHttpAsyncResponseConsumer
public CXFHttpAsyncResponseConsumer(SharedInputBuffer buf,
org.apache.cxf.transport.http.asyncclient.CXFResponseCallback responseCallback)
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Throws:
IOException
cancel
public boolean cancel()
- Specified by:
cancel
in interface org.apache.http.concurrent.Cancellable
responseReceived
public void responseReceived(org.apache.http.HttpResponse response)
throws IOException,
org.apache.http.HttpException
- Specified by:
responseReceived
in interface org.apache.http.nio.protocol.HttpAsyncResponseConsumer<Boolean>
- Throws:
IOException
org.apache.http.HttpException
consumeContent
public void consumeContent(org.apache.http.nio.ContentDecoder dec,
org.apache.http.nio.IOControl ioc)
throws IOException
- Specified by:
consumeContent
in interface org.apache.http.nio.protocol.HttpAsyncResponseConsumer<Boolean>
- Throws:
IOException
responseCompleted
public void responseCompleted(org.apache.http.protocol.HttpContext context)
- Specified by:
responseCompleted
in interface org.apache.http.nio.protocol.HttpAsyncResponseConsumer<Boolean>
failed
public void failed(Exception ex)
- Specified by:
failed
in interface org.apache.http.nio.protocol.HttpAsyncResponseConsumer<Boolean>
getException
public Exception getException()
- Specified by:
getException
in interface org.apache.http.nio.protocol.HttpAsyncResponseConsumer<Boolean>
getResult
public Boolean getResult()
- Specified by:
getResult
in interface org.apache.http.nio.protocol.HttpAsyncResponseConsumer<Boolean>
isDone
public boolean isDone()
- Specified by:
isDone
in interface org.apache.http.nio.protocol.HttpAsyncResponseConsumer<Boolean>
Apache CXF