Example usage for org.springframework.web.servlet.mvc.method.annotation ResponseBodyEmitterReturnValueHandler ResponseBodyEmitterReturnValueHandler

List of usage examples for org.springframework.web.servlet.mvc.method.annotation ResponseBodyEmitterReturnValueHandler ResponseBodyEmitterReturnValueHandler

Introduction

In this page you can find the example usage for org.springframework.web.servlet.mvc.method.annotation ResponseBodyEmitterReturnValueHandler ResponseBodyEmitterReturnValueHandler.

Prototype

public ResponseBodyEmitterReturnValueHandler(List<HttpMessageConverter<?>> messageConverters) 

Source Link

Document

Simple constructor with reactive type support based on a default instance of ReactiveAdapterRegistry , org.springframework.core.task.SyncTaskExecutor , and ContentNegotiationManager with an Accept header strategy.

Usage

From source file:org.springframework.cloud.function.web.flux.response.FluxReturnValueHandler.java

public FluxReturnValueHandler(FunctionInspector inspector, List<HttpMessageConverter<?>> messageConverters) {
    this.inspector = inspector;
    this.delegate = new ResponseBodyEmitterReturnValueHandler(messageConverters);
    this.single = new RequestResponseBodyMethodProcessor(messageConverters);
    Method method = ReflectionUtils.findMethod(getClass(), "singleValue");
    singleReturnType = new MethodParameter(method, -1);
}