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

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

Introduction

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

Prototype

public RequestResponseBodyAdviceChain(@Nullable List<Object> requestResponseBodyAdvice) 

Source Link

Document

Create an instance from a list of objects that are either of type ControllerAdviceBean or RequestBodyAdvice .

Usage

From source file:org.springframework.web.servlet.mvc.method.annotation.AbstractMessageConverterMethodArgumentResolver.java

/**
 * Constructor with converters and {@code Request~} and {@code ResponseBodyAdvice}.
 * @since 4.2/*from  w  w  w  .  jav a  2 s  . co  m*/
 */
public AbstractMessageConverterMethodArgumentResolver(List<HttpMessageConverter<?>> converters,
        @Nullable List<Object> requestResponseBodyAdvice) {

    Assert.notEmpty(converters, "'messageConverters' must not be empty");
    this.messageConverters = converters;
    this.allSupportedMediaTypes = getAllSupportedMediaTypes(converters);
    this.advice = new RequestResponseBodyAdviceChain(requestResponseBodyAdvice);
}