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 pluggable ReactiveAdapterRegistry mechanism.
    Contract to adapt streaming async types to ResponseBodyEmitter.
    Since:
    4.3
    Author:
    Rossen Stoyanchev
    • Method Detail

      • adaptToEmitter

        ResponseBodyEmitter adaptToEmitter​(Object returnValue,
                                           ServerHttpResponse response)
        Deprecated.
        Obtain a ResponseBodyEmitter for the given return value. If the return is the body ResponseEntity then the given ServerHttpResponse contains its status and headers.
        Parameters:
        returnValue - the return value (never null)
        response - the response
        Returns:
        the return value adapted to a ResponseBodyEmitter