public class CXFHttpAsyncResponseConsumer extends Object implements org.apache.hc.core5.http.nio.AsyncResponseConsumer<Boolean>
Constructor and Description |
---|
CXFHttpAsyncResponseConsumer(AsyncHTTPConduit.AsyncWrappedOutputStream asyncWrappedOutputStream,
SharedInputBuffer buf,
org.apache.cxf.transport.http.asyncclient.hc5.CXFResponseCallback responseCallback) |
Modifier and Type | Method and Description |
---|---|
void |
consume(ByteBuffer src) |
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) |
void |
failed(Exception ex) |
Exception |
getException() |
void |
informationResponse(org.apache.hc.core5.http.HttpResponse resp,
org.apache.hc.core5.http.protocol.HttpContext context) |
boolean |
isCompleted() |
void |
releaseResources() |
void |
streamEnd(List<? extends org.apache.hc.core5.http.Header> trailers) |
void |
updateCapacity(org.apache.hc.core5.http.nio.CapacityChannel capacityChannel) |
public CXFHttpAsyncResponseConsumer(AsyncHTTPConduit.AsyncWrappedOutputStream asyncWrappedOutputStream, SharedInputBuffer buf, org.apache.cxf.transport.http.asyncclient.hc5.CXFResponseCallback responseCallback)
public void releaseResources()
releaseResources
in interface org.apache.hc.core5.http.nio.ResourceHolder
public void updateCapacity(org.apache.hc.core5.http.nio.CapacityChannel capacityChannel) throws IOException
updateCapacity
in interface org.apache.hc.core5.http.nio.AsyncDataConsumer
IOException
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
consumeResponse
in interface org.apache.hc.core5.http.nio.AsyncResponseConsumer<Boolean>
org.apache.hc.core5.http.HttpException
IOException
public void consume(ByteBuffer src) throws IOException
consume
in interface org.apache.hc.core5.http.nio.AsyncDataConsumer
IOException
public void failed(Exception ex)
failed
in interface org.apache.hc.core5.http.nio.AsyncResponseConsumer<Boolean>
public void streamEnd(List<? extends org.apache.hc.core5.http.Header> trailers) throws org.apache.hc.core5.http.HttpException, IOException
streamEnd
in interface org.apache.hc.core5.http.nio.AsyncDataConsumer
org.apache.hc.core5.http.HttpException
IOException
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
informationResponse
in interface org.apache.hc.core5.http.nio.AsyncResponseConsumer<Boolean>
org.apache.hc.core5.http.HttpException
IOException
public Exception getException()
public boolean isCompleted()
Apache CXF