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
public class CXFHttpAsyncResponseConsumer extends Object implements org.apache.hc.core5.http.nio.AsyncResponseConsumer<Boolean>
-
-
Constructor Summary
Constructors Constructor Description CXFHttpAsyncResponseConsumer(AsyncHTTPConduit.AsyncWrappedOutputStream asyncWrappedOutputStream, SharedInputBuffer buf, org.apache.cxf.transport.http.asyncclient.hc5.CXFResponseCallback responseCallback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconsume(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)voidfailed(Exception ex)ExceptiongetException()voidinformationResponse(org.apache.hc.core5.http.HttpResponse resp, org.apache.hc.core5.http.protocol.HttpContext context)booleanisCompleted()voidreleaseResources()voidstreamEnd(List<? extends org.apache.hc.core5.http.Header> trailers)voidupdateCapacity(org.apache.hc.core5.http.nio.CapacityChannel capacityChannel)
-
-
-
Constructor Detail
-
CXFHttpAsyncResponseConsumer
public CXFHttpAsyncResponseConsumer(AsyncHTTPConduit.AsyncWrappedOutputStream asyncWrappedOutputStream, SharedInputBuffer buf, org.apache.cxf.transport.http.asyncclient.hc5.CXFResponseCallback responseCallback)
-
-
Method Detail
-
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
public void consume(ByteBuffer src) throws IOException
- Specified by:
consumein interfaceorg.apache.hc.core5.http.nio.AsyncDataConsumer- Throws:
IOException
-
failed
public void failed(Exception ex)
- 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
public Exception getException()
-
isCompleted
public boolean isCompleted()
-
-