public interface AsyncResponseProducer extends AsyncDataProducer
Modifier and Type | Method and Description |
---|---|
void |
failed(Exception cause)
Triggered to signal a failure in data generation.
|
void |
sendResponse(ResponseChannel channel,
HttpContext context)
Triggered to signal the ability of the underlying response channel
to accept response messages.
|
available, produce
releaseResources
void sendResponse(ResponseChannel channel, HttpContext context) throws HttpException, IOException
channel
- the response channel capable to accepting response messages.context
- the actual execution context.HttpException
- in case of an HTTP protocol violation.IOException
- in case of an I/O error.void failed(Exception cause)
cause
- the cause of the failure.Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.