public interface StreamingResponseBody
OutputStream
without holding up the Servlet container thread.
Note: when using this option it is highly recommended to
configure explicitly the TaskExecutor used in Spring MVC for executing
asynchronous requests. Both the MVC Java config and the MVC namespaces provide
options to configure asynchronous handling. If not using those, an application
can set the taskExecutor
property of
RequestMappingHandlerAdapter
.
Modifier and Type | Method and Description |
---|---|
void |
writeTo(java.io.OutputStream outputStream)
A callback for writing to the response body.
|