spring-framework / org.springframework.web.servlet.mvc.method.annotation / RequestResponseBodyMethodProcessor / <init>

<init>

RequestResponseBodyMethodProcessor(converters: MutableList<HttpMessageConverter<*>>)

Basic constructor with converters only. Suitable for resolving @RequestBody. For handling @ResponseBody consider also providing a ContentNegotiationManager.

RequestResponseBodyMethodProcessor(converters: MutableList<HttpMessageConverter<*>>, @Nullable manager: ContentNegotiationManager)

Basic constructor with converters and ContentNegotiationManager. Suitable for resolving @RequestBody and handling @ResponseBody without Request~ or ResponseBodyAdvice.

RequestResponseBodyMethodProcessor(converters: MutableList<HttpMessageConverter<*>>, @Nullable requestResponseBodyAdvice: MutableList<Any>)

Complete constructor for resolving @RequestBody method arguments. For handling @ResponseBody consider also providing a ContentNegotiationManager.

Since
4.2

RequestResponseBodyMethodProcessor(converters: MutableList<HttpMessageConverter<*>>, @Nullable manager: ContentNegotiationManager, @Nullable requestResponseBodyAdvice: MutableList<Any>)

Complete constructor for resolving @RequestBody and handling @ResponseBody.