T - response representation.public interface AsyncResponseConsumer<T> extends AsyncDataConsumer
| Modifier and Type | Method and Description | 
|---|---|
| void | consumeResponse(HttpResponse response,
               EntityDetails entityDetails,
               HttpContext context,
               FutureCallback<T> resultCallback)Triggered to signal receipt of a response message head. | 
| void | failed(Exception cause)Triggered to signal a failure in data processing. | 
| void | informationResponse(HttpResponse response,
                   HttpContext context)Triggered to signal receipt of an intermediate (1xx) HTTP response. | 
consume, streamEnd, updateCapacityreleaseResourcesvoid consumeResponse(HttpResponse response, EntityDetails entityDetails, HttpContext context, FutureCallback<T> resultCallback) throws HttpException, IOException
response - the response message head.entityDetails - the response entity details or null if the response
                      does not enclose an entity.context - the actual execution context.resultCallback - the result callback called when response processing
                       has been completed successfully or unsuccessfully.HttpExceptionIOExceptionvoid informationResponse(HttpResponse response, HttpContext context) throws HttpException, IOException
response - the intermediate (1xx) HTTP response.context - the actual execution context.HttpExceptionIOExceptionvoid failed(Exception cause)
cause - the cause of the failure.Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.