public interface AsyncStreamingOutput
Response when the application wishes to stream the output.
This is a lightweight alternative to a
AsyncMessageBodyWriter.AsyncMessageBodyWriter,
Response| Modifier and Type | Method and Description |
|---|---|
CompletionStage<Void> |
asyncWrite(AsyncOutputStream output)
Called to write the message body.
|
CompletionStage<Void> asyncWrite(AsyncOutputStream output)
output - the OutputStream to write to.IOException - if an IO error is encounteredjavax.ws.rs.WebApplicationException - if a specific
HTTP error response needs to be produced. Only effective if thrown prior
to any bytes being written to output.Copyright © 2021 JBoss by Red Hat. All rights reserved.