public interface AsyncExecCallback
Modifier and Type | Method and Description |
---|---|
void |
completed()
Triggered to signal completion of the message exchange.
|
void |
failed(Exception cause)
Triggered to signal a failure occurred during the message exchange.
|
void |
handleInformationResponse(HttpResponse response)
Triggered to signal receipt of an intermediate response message.
|
AsyncDataConsumer |
handleResponse(HttpResponse response,
EntityDetails entityDetails)
Triggered to signal receipt of a response message head sent by the server
in response to the request being executed.
|
void completed()
Implementations of this message are expected to perform resource deallocation allocated in the course of the request execution and response processing.
void failed(Exception cause)
Implementations of this message are expected to perform resource deallocation allocated in the course of the request execution and response processing.
void handleInformationResponse(HttpResponse response) throws HttpException, IOException
response
- the intermediate response message.HttpException
IOException
AsyncDataConsumer handleResponse(HttpResponse response, EntityDetails entityDetails) throws HttpException, IOException
response
- the response message head.entityDetails
- the response entity details or null
if the response
does not enclose an entity.HttpException
IOException