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.
|
failed
consume, streamEnd, updateCapacity
available, produce
releaseResources
void produceRequest(RequestChannel channel, HttpContext context) throws HttpException, IOException
channel
- the request channel capable to accepting a request message.context
- the actual execution context.HttpException
- in case of an HTTP protocol violation.IOException
- in case of an I/O error.void 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.HttpException
- in case of an HTTP protocol violation.IOException
- in case of an I/O error.void consumeInformation(HttpResponse response, HttpContext context) throws HttpException, IOException
response
- the intermediate (1xx) HTTP response.context
- the actual execution context.HttpException
- in case of an HTTP protocol violation.IOException
- in case of an I/O error.void cancel()
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.