Class CXFHttpAsyncResponseConsumer
- java.lang.Object
-
- org.apache.cxf.transport.http.asyncclient.CXFHttpAsyncResponseConsumer
-
- All Implemented Interfaces:
Closeable,AutoCloseable,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>
-
-
Constructor Summary
Constructors Constructor Description CXFHttpAsyncResponseConsumer(AsyncHTTPConduit.AsyncWrappedOutputStream asyncWrappedOutputStream, SharedInputBuffer buf, org.apache.cxf.transport.http.asyncclient.CXFResponseCallback responseCallback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancancel()voidclose()voidconsumeContent(org.apache.http.nio.ContentDecoder dec, org.apache.http.nio.IOControl ioc)voidfailed(Exception ex)ExceptiongetException()BooleangetResult()booleanisDone()voidresponseCompleted(org.apache.http.protocol.HttpContext context)voidresponseReceived(org.apache.http.HttpResponse resp)
-
-
-
Constructor Detail
-
CXFHttpAsyncResponseConsumer
public CXFHttpAsyncResponseConsumer(AsyncHTTPConduit.AsyncWrappedOutputStream asyncWrappedOutputStream, SharedInputBuffer buf, org.apache.cxf.transport.http.asyncclient.CXFResponseCallback responseCallback)
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
cancel
public boolean cancel()
- Specified by:
cancelin interfaceorg.apache.http.concurrent.Cancellable
-
responseReceived
public void responseReceived(org.apache.http.HttpResponse resp) throws IOException, org.apache.http.HttpException- Specified by:
responseReceivedin interfaceorg.apache.http.nio.protocol.HttpAsyncResponseConsumer<Boolean>- Throws:
IOExceptionorg.apache.http.HttpException
-
consumeContent
public void consumeContent(org.apache.http.nio.ContentDecoder dec, org.apache.http.nio.IOControl ioc) throws IOException- Specified by:
consumeContentin interfaceorg.apache.http.nio.protocol.HttpAsyncResponseConsumer<Boolean>- Throws:
IOException
-
responseCompleted
public void responseCompleted(org.apache.http.protocol.HttpContext context)
- Specified by:
responseCompletedin interfaceorg.apache.http.nio.protocol.HttpAsyncResponseConsumer<Boolean>
-
failed
public void failed(Exception ex)
- Specified by:
failedin interfaceorg.apache.http.nio.protocol.HttpAsyncResponseConsumer<Boolean>
-
getException
public Exception getException()
- Specified by:
getExceptionin interfaceorg.apache.http.nio.protocol.HttpAsyncResponseConsumer<Boolean>
-
getResult
public Boolean getResult()
- Specified by:
getResultin interfaceorg.apache.http.nio.protocol.HttpAsyncResponseConsumer<Boolean>
-
isDone
public boolean isDone()
- Specified by:
isDonein interfaceorg.apache.http.nio.protocol.HttpAsyncResponseConsumer<Boolean>
-
-