Class CXFHttpAsyncResponseConsumer
java.lang.Object
org.apache.cxf.transport.http.asyncclient.hc5.CXFHttpAsyncResponseConsumer
- All Implemented Interfaces:
org.apache.hc.core5.http.nio.AsyncDataConsumer,org.apache.hc.core5.http.nio.AsyncResponseConsumer<Boolean>,org.apache.hc.core5.http.nio.ResourceHolder
-
Constructor Summary
ConstructorsConstructorDescriptionCXFHttpAsyncResponseConsumer(AsyncHTTPConduit.AsyncWrappedOutputStream asyncWrappedOutputStream, SharedInputBuffer buf, org.apache.cxf.transport.http.asyncclient.hc5.CXFResponseCallback responseCallback) -
Method Summary
Modifier and TypeMethodDescriptionvoidconsume(ByteBuffer src) voidconsumeResponse(org.apache.hc.core5.http.HttpResponse resp, org.apache.hc.core5.http.EntityDetails entityDetails, org.apache.hc.core5.http.protocol.HttpContext context, org.apache.hc.core5.concurrent.FutureCallback<Boolean> resultCallback) voidvoidinformationResponse(org.apache.hc.core5.http.HttpResponse resp, org.apache.hc.core5.http.protocol.HttpContext context) booleanvoidvoidvoidupdateCapacity(org.apache.hc.core5.http.nio.CapacityChannel capacityChannel)
-
Constructor Details
-
Method Details
-
releaseResources
public void releaseResources()- Specified by:
releaseResourcesin interfaceorg.apache.hc.core5.http.nio.ResourceHolder
-
updateCapacity
public void updateCapacity(org.apache.hc.core5.http.nio.CapacityChannel capacityChannel) throws IOException - Specified by:
updateCapacityin interfaceorg.apache.hc.core5.http.nio.AsyncDataConsumer- Throws:
IOException
-
consumeResponse
public void consumeResponse(org.apache.hc.core5.http.HttpResponse resp, org.apache.hc.core5.http.EntityDetails entityDetails, org.apache.hc.core5.http.protocol.HttpContext context, org.apache.hc.core5.concurrent.FutureCallback<Boolean> resultCallback) throws org.apache.hc.core5.http.HttpException, IOException - Specified by:
consumeResponsein interfaceorg.apache.hc.core5.http.nio.AsyncResponseConsumer<Boolean>- Throws:
org.apache.hc.core5.http.HttpExceptionIOException
-
consume
- Specified by:
consumein interfaceorg.apache.hc.core5.http.nio.AsyncDataConsumer- Throws:
IOException
-
failed
- Specified by:
failedin interfaceorg.apache.hc.core5.http.nio.AsyncResponseConsumer<Boolean>
-
streamEnd
public void streamEnd(List<? extends org.apache.hc.core5.http.Header> trailers) throws org.apache.hc.core5.http.HttpException, IOException - Specified by:
streamEndin interfaceorg.apache.hc.core5.http.nio.AsyncDataConsumer- Throws:
org.apache.hc.core5.http.HttpExceptionIOException
-
informationResponse
public void informationResponse(org.apache.hc.core5.http.HttpResponse resp, org.apache.hc.core5.http.protocol.HttpContext context) throws org.apache.hc.core5.http.HttpException, IOException - Specified by:
informationResponsein interfaceorg.apache.hc.core5.http.nio.AsyncResponseConsumer<Boolean>- Throws:
org.apache.hc.core5.http.HttpExceptionIOException
-
getException
-
isCompleted
public boolean isCompleted()
-