Class AsyncCachingExec.AsyncExecCallbackWrapper
java.lang.Object
org.apache.hc.client5.http.impl.cache.AsyncCachingExec.AsyncExecCallbackWrapper
- All Implemented Interfaces:
AsyncExecCallback
- Enclosing class:
AsyncCachingExec
- Since:
- 5.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAsyncExecCallbackWrapper(AsyncExecCallback asyncExecCallback, Runnable command) -
Method Summary
Modifier and TypeMethodDescriptionvoidTriggered to signal completion of the message exchange.voidTriggered to signal a failure occurred during the message exchange.voidhandleInformationResponse(org.apache.hc.core5.http.HttpResponse response) Triggered to signal receipt of an intermediate response message.org.apache.hc.core5.http.nio.AsyncDataConsumerhandleResponse(org.apache.hc.core5.http.HttpResponse response, org.apache.hc.core5.http.EntityDetails entityDetails) Triggered to signal receipt of a response message head sent by the server in response to the request being executed.
-
Field Details
-
asyncExecCallback
-
command
-
-
Constructor Details
-
AsyncExecCallbackWrapper
AsyncExecCallbackWrapper(AsyncExecCallback asyncExecCallback, Runnable command)
-
-
Method Details
-
handleResponse
public org.apache.hc.core5.http.nio.AsyncDataConsumer handleResponse(org.apache.hc.core5.http.HttpResponse response, org.apache.hc.core5.http.EntityDetails entityDetails) throws org.apache.hc.core5.http.HttpException, IOException Description copied from interface:AsyncExecCallbackTriggered to signal receipt of a response message head sent by the server in response to the request being executed.- Specified by:
handleResponsein interfaceAsyncExecCallback- Parameters:
response- the response message head.entityDetails- the response entity details ornullif the response does not enclose an entity.- Returns:
- the data consumer to be used for processing of incoming response message body.
- Throws:
org.apache.hc.core5.http.HttpExceptionIOException
-
handleInformationResponse
public void handleInformationResponse(org.apache.hc.core5.http.HttpResponse response) throws org.apache.hc.core5.http.HttpException, IOException Description copied from interface:AsyncExecCallbackTriggered to signal receipt of an intermediate response message.- Specified by:
handleInformationResponsein interfaceAsyncExecCallback- Parameters:
response- the intermediate response message.- Throws:
org.apache.hc.core5.http.HttpExceptionIOException
-
completed
public void completed()Description copied from interface:AsyncExecCallbackTriggered to signal completion of the message exchange.Implementations of this message are expected to perform resource deallocation allocated in the course of the request execution and response processing.
- Specified by:
completedin interfaceAsyncExecCallback
-
failed
Description copied from interface:AsyncExecCallbackTriggered to signal a failure occurred during the message exchange.Implementations of this message are expected to perform resource deallocation allocated in the course of the request execution and response processing.
- Specified by:
failedin interfaceAsyncExecCallback
-