接口 ResponseBodyEmitterAdapter


  • @Deprecated
    public interface ResponseBodyEmitterAdapter
    已过时。
    in 4.3.8 since 5.0 adds first-class support for reactive type return values from Spring MVC controller methods based on the pluggable ReactiveAdapterRegistry mechanism.
    Contract to adapt streaming async types to ResponseBodyEmitter.
    从以下版本开始:
    4.3
    作者:
    Rossen Stoyanchev
    • 方法详细资料

      • adaptToEmitter

        ResponseBodyEmitter adaptToEmitter​(Object returnValue,
                                           ServerHttpResponse response)
        已过时。
        Obtain a ResponseBodyEmitter for the given return value. If the return is the body ResponseEntity then the given ServerHttpResponse contains its status and headers.
        参数:
        returnValue - the return value (never null)
        response - the response
        返回:
        the return value adapted to a ResponseBodyEmitter