public class CXFHttpAsyncResponseConsumer extends Object implements org.apache.http.nio.protocol.HttpAsyncResponseConsumer<Boolean>
| Constructor and Description |
|---|
CXFHttpAsyncResponseConsumer(AsyncHTTPConduit.AsyncWrappedOutputStream asyncWrappedOutputStream,
SharedInputBuffer buf,
org.apache.cxf.transport.http.asyncclient.CXFResponseCallback responseCallback) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel() |
void |
close() |
void |
consumeContent(org.apache.http.nio.ContentDecoder dec,
org.apache.http.nio.IOControl ioc) |
void |
failed(Exception ex) |
Exception |
getException() |
Boolean |
getResult() |
boolean |
isDone() |
void |
responseCompleted(org.apache.http.protocol.HttpContext context) |
void |
responseReceived(org.apache.http.HttpResponse resp) |
public CXFHttpAsyncResponseConsumer(AsyncHTTPConduit.AsyncWrappedOutputStream asyncWrappedOutputStream, SharedInputBuffer buf, org.apache.cxf.transport.http.asyncclient.CXFResponseCallback responseCallback)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic boolean cancel()
cancel in interface org.apache.http.concurrent.Cancellablepublic void responseReceived(org.apache.http.HttpResponse resp)
throws IOException,
org.apache.http.HttpException
responseReceived in interface org.apache.http.nio.protocol.HttpAsyncResponseConsumer<Boolean>IOExceptionorg.apache.http.HttpExceptionpublic void consumeContent(org.apache.http.nio.ContentDecoder dec,
org.apache.http.nio.IOControl ioc)
throws IOException
consumeContent in interface org.apache.http.nio.protocol.HttpAsyncResponseConsumer<Boolean>IOExceptionpublic void responseCompleted(org.apache.http.protocol.HttpContext context)
responseCompleted in interface org.apache.http.nio.protocol.HttpAsyncResponseConsumer<Boolean>public void failed(Exception ex)
failed in interface org.apache.http.nio.protocol.HttpAsyncResponseConsumer<Boolean>public Exception getException()
getException in interface org.apache.http.nio.protocol.HttpAsyncResponseConsumer<Boolean>public Boolean getResult()
getResult in interface org.apache.http.nio.protocol.HttpAsyncResponseConsumer<Boolean>public boolean isDone()
isDone in interface org.apache.http.nio.protocol.HttpAsyncResponseConsumer<Boolean>Apache CXF