Package org.jboss.resteasy.spi
Interface AsyncStreamingOutput
-
public interface AsyncStreamingOutputA type that may be used as a resource method return value or as the entity in aResponsewhen the application wishes to stream the output. This is a lightweight alternative to aAsyncMessageBodyWriter.- Author:
- Paul Sandoz, Marc Hadley
- See Also:
AsyncMessageBodyWriter,Response
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletionStage<Void>asyncWrite(AsyncOutputStream output)Called to write the message body.
-
-
-
Method Detail
-
asyncWrite
CompletionStage<Void> asyncWrite(AsyncOutputStream output)
Called to write the message body.- Parameters:
output- the OutputStream to write to.- Throws:
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.
-
-