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, producereleaseResourcesvoid sendResponse(ResponseChannel channel, HttpContext context) throws HttpException, IOException
channel - the response channel capable to accepting response messages.context - the actual execution context.HttpExceptionIOExceptionvoid failed(Exception cause)
cause - the cause of the failure.Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.