public class AsyncResponseConsumerWrapper<T> extends Object implements org.apache.hc.core5.http.nio.AsyncResponseConsumer<T>
| Constructor and Description |
|---|
AsyncResponseConsumerWrapper(org.apache.hc.core5.http.nio.AsyncResponseConsumer<T> consumer) |
| Modifier and Type | Method and Description |
|---|---|
void |
consume(ByteBuffer src) |
void |
consumeResponse(org.apache.hc.core5.http.HttpResponse response,
org.apache.hc.core5.http.EntityDetails entityDetails,
org.apache.hc.core5.http.protocol.HttpContext context,
org.apache.hc.core5.concurrent.FutureCallback<T> resultCallback) |
void |
failed(Exception cause) |
void |
informationResponse(org.apache.hc.core5.http.HttpResponse response,
org.apache.hc.core5.http.protocol.HttpContext context) |
void |
releaseResources() |
void |
streamEnd(List<? extends org.apache.hc.core5.http.Header> trailers) |
void |
updateCapacity(org.apache.hc.core5.http.nio.CapacityChannel capacityChannel) |
public AsyncResponseConsumerWrapper(org.apache.hc.core5.http.nio.AsyncResponseConsumer<T> consumer)
public void consumeResponse(org.apache.hc.core5.http.HttpResponse response,
org.apache.hc.core5.http.EntityDetails entityDetails,
org.apache.hc.core5.http.protocol.HttpContext context,
org.apache.hc.core5.concurrent.FutureCallback<T> resultCallback)
throws org.apache.hc.core5.http.HttpException,
IOException
consumeResponse in interface org.apache.hc.core5.http.nio.AsyncResponseConsumer<T>org.apache.hc.core5.http.HttpExceptionIOExceptionpublic void informationResponse(org.apache.hc.core5.http.HttpResponse response,
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<T>org.apache.hc.core5.http.HttpExceptionIOExceptionpublic void failed(Exception cause)
failed in interface org.apache.hc.core5.http.nio.AsyncResponseConsumer<T>public void updateCapacity(org.apache.hc.core5.http.nio.CapacityChannel capacityChannel)
throws IOException
updateCapacity in interface org.apache.hc.core5.http.nio.AsyncDataConsumerIOExceptionpublic void consume(ByteBuffer src) throws IOException
consume in interface org.apache.hc.core5.http.nio.AsyncDataConsumerIOExceptionpublic 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.AsyncDataConsumerorg.apache.hc.core5.http.HttpExceptionIOExceptionpublic void releaseResources()
releaseResources in interface org.apache.hc.core5.http.nio.ResourceHolderCopyright © 2022 The Apache Software Foundation. All rights reserved.