public interface AsyncClientExchangeHandler extends AsyncDataExchangeHandler
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Triggered to cancel the message exchange.
|
void |
consumeInformation(HttpResponse response,
HttpContext context)
Triggered to signal receipt of an intermediate (1xx) HTTP response.
|
void |
consumeResponse(HttpResponse response,
EntityDetails entityDetails,
HttpContext context)
Triggered to signal receipt of a response message head.
|
void |
produceRequest(RequestChannel channel,
HttpContext context)
Triggered to signal the ability of the underlying request channel
to accept a request messages.
|
failedconsume, streamEnd, updateCapacityavailable, producereleaseResourcesvoid produceRequest(RequestChannel channel, HttpContext context) throws HttpException, IOException
channel - the request channel capable to accepting a request message.context - the actual execution context.HttpExceptionIOExceptionvoid consumeResponse(HttpResponse response, EntityDetails entityDetails, HttpContext context) 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.HttpExceptionIOExceptionvoid consumeInformation(HttpResponse response, HttpContext context) throws HttpException, IOException
response - the intermediate (1xx) HTTP response.context - the actual execution context.HttpExceptionIOExceptionvoid cancel()
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.