public class ResponseBodyEmitterReturnValueHandler
extends java.lang.Object
implements org.springframework.web.method.support.AsyncHandlerMethodReturnValueHandler
ResponseBodyEmitter (and the
ResponseEntity<ResponseBodyEmitter> sub-class) as well as any other
async type with a registered adapter.| Constructor and Description |
|---|
ResponseBodyEmitterReturnValueHandler(java.util.List<org.springframework.http.converter.HttpMessageConverter<?>> messageConverters) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.Class<?>,ResponseBodyEmitterAdapter> |
getAdapterMap()
Deprecated.
in 4.3.8, see comments on
ResponseBodyEmitterAdapter |
void |
handleReturnValue(java.lang.Object returnValue,
org.springframework.core.MethodParameter returnType,
org.springframework.web.method.support.ModelAndViewContainer mavContainer,
org.springframework.web.context.request.NativeWebRequest webRequest) |
boolean |
isAsyncReturnValue(java.lang.Object returnValue,
org.springframework.core.MethodParameter returnType) |
boolean |
supportsReturnType(org.springframework.core.MethodParameter returnType) |
public ResponseBodyEmitterReturnValueHandler(java.util.List<org.springframework.http.converter.HttpMessageConverter<?>> messageConverters)
@Deprecated public java.util.Map<java.lang.Class<?>,ResponseBodyEmitterAdapter> getAdapterMap()
ResponseBodyEmitterAdapterResponseBodyEmitter adapters.
By default the map contains a single adapter ResponseBodyEmitter
that simply downcasts the return value.public boolean supportsReturnType(org.springframework.core.MethodParameter returnType)
supportsReturnType in interface org.springframework.web.method.support.HandlerMethodReturnValueHandlerpublic boolean isAsyncReturnValue(java.lang.Object returnValue,
org.springframework.core.MethodParameter returnType)
isAsyncReturnValue in interface org.springframework.web.method.support.AsyncHandlerMethodReturnValueHandlerpublic void handleReturnValue(java.lang.Object returnValue,
org.springframework.core.MethodParameter returnType,
org.springframework.web.method.support.ModelAndViewContainer mavContainer,
org.springframework.web.context.request.NativeWebRequest webRequest)
throws java.lang.Exception
handleReturnValue in interface org.springframework.web.method.support.HandlerMethodReturnValueHandlerjava.lang.Exception