T- response representation.
public interface AsyncResponseConsumer<T> extends AsyncDataConsumer
|Modifier and Type||Method and Description|
Triggered to signal receipt of a response message head.
Triggered to signal a failure in data processing.
Returns the result of response processing when it becomes available or
Triggered to signal receipt of an intermediate (1xx) HTTP response.
consume, streamEnd, updateCapacity
void consumeResponse(HttpResponse response, EntityDetails entityDetails, HttpContext context, FutureCallback<T> resultCallback) throws HttpException, IOException
response- the response message head.
entityDetails- the response entity details or
nullif 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.
void informationResponse(HttpResponse response, HttpContext context) throws HttpException, IOException
void failed(Exception cause)
cause- the cause of the failure.
nullif the response is still being received.
Copyright © 2005–2018 The Apache Software Foundation. All rights reserved.