List of usage examples for org.springframework.web.servlet.mvc.method.annotation ReactiveTypeHandler ReactiveTypeHandler
public ReactiveTypeHandler()
From source file:org.springframework.web.servlet.mvc.method.annotation.ResponseBodyEmitterReturnValueHandler.java
/** * Simple constructor with reactive type support based on a default instance of * {@link ReactiveAdapterRegistry},/*from w ww . ja v a2s .co m*/ * {@link org.springframework.core.task.SyncTaskExecutor}, and * {@link ContentNegotiationManager} with an Accept header strategy. */ public ResponseBodyEmitterReturnValueHandler(List<HttpMessageConverter<?>> messageConverters) { Assert.notEmpty(messageConverters, "HttpMessageConverter List must not be empty"); this.messageConverters = messageConverters; this.reactiveHandler = new ReactiveTypeHandler(); }