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>
-
Constructor Summary
ConstructorsConstructorDescriptionCXFHttpAsyncResponseConsumer(AsyncHTTPConduit.AsyncWrappedOutputStream asyncWrappedOutputStream, SharedInputBuffer buf, org.apache.cxf.transport.http.asyncclient.CXFResponseCallback responseCallback) -
Method Summary
Modifier and TypeMethodDescriptionbooleancancel()voidclose()voidconsumeContent(org.apache.http.nio.ContentDecoder dec, org.apache.http.nio.IOControl ioc) voidbooleanisDone()voidresponseCompleted(org.apache.http.protocol.HttpContext context) voidresponseReceived(org.apache.http.HttpResponse resp)
-
Constructor Details
-
Method Details
-
close
- 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
- Specified by:
failedin interfaceorg.apache.http.nio.protocol.HttpAsyncResponseConsumer<Boolean>
-
getException
- Specified by:
getExceptionin interfaceorg.apache.http.nio.protocol.HttpAsyncResponseConsumer<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>
-