Interface ResponseBodyEmitterAdapter
@Deprecated public interface ResponseBodyEmitterAdapter
Deprecated.in 4.3.8 since 5.0 adds first-class support for reactive type return values from Spring MVC controller methods based on the pluggableReactiveAdapterRegistry
mechanism.Contract to adapt streaming async types toResponseBodyEmitter
.- Since:
- 4.3
- Author:
- Rossen Stoyanchev
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description ResponseBodyEmitter
adaptToEmitter(Object returnValue, ServerHttpResponse response)
Deprecated.Obtain aResponseBodyEmitter
for the given return value.
Method Detail
adaptToEmitter
ResponseBodyEmitter adaptToEmitter(Object returnValue, ServerHttpResponse response)
Deprecated.Obtain aResponseBodyEmitter
for the given return value. If the return is the bodyResponseEntity
then the givenServerHttpResponse
contains its status and headers.- Parameters:
returnValue
- the return value (nevernull
)response
- the response- Returns:
- the return value adapted to a
ResponseBodyEmitter