org.springframework.web.servlet.mvc.method.annotation.StreamingResponseBody
and also ResponseEntity<StreamingResponseBody>.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | handleReturnValue(Object
the value returned from the handler method returnValue, MethodParameter the type of the return value. This type must have
previously been passed to returnType, ModelAndViewContainer supportsReturnType which must
have returned true.the ModelAndViewContainer for the current request mavContainer, NativeWebRequest the current request webRequest)Implements org. Handle the given return value by adding attributes to the model and
setting a view or setting the
|
| public boolean | supportsReturnType(MethodParameter
the method return type to check returnType)Implements org. Whether the given method return type is supported by this handler. |
| StreamingResponseBodyReturnValueHandler | back to summary |
|---|---|
| public StreamingResponseBodyReturnValueHandler() | |
| handleReturnValue | back to summary |
|---|---|
| public void handleReturnValue(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) throws Exception Implements org. Doc from org. Handle the given return value by adding attributes to the model and
setting a view or setting the
| |
| supportsReturnType | back to summary |
|---|---|
| public boolean supportsReturnType(MethodParameter returnType) Implements org. Doc from org. Whether the given method return type is supported by this handler.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final OutputStream | |
| private final StreamingResponseBody |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Void | call()
Implements java. Computes a result, or throws an exception if unable to do so. |
| outputStream | back to summary |
|---|---|
| private final OutputStream outputStream | |
| streamingBody | back to summary |
|---|---|
| private final StreamingResponseBody streamingBody | |
| StreamingResponseBodyTask | back to summary |
|---|---|
| public StreamingResponseBodyTask(OutputStream outputStream, StreamingResponseBody streamingBody) | |
| call | back to summary |
|---|---|
| public Void call() throws Exception Implements java. Doc from java. Computes a result, or throws an exception if unable to do so. | |