Class ProxyResponseAutoConfiguration

java.lang.Object
org.springframework.cloud.gateway.mvc.config.ProxyResponseAutoConfiguration
All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer

@Configuration(proxyBeanMethods=false) @ConditionalOnWebApplication @ConditionalOnClass({org.springframework.web.method.support.HandlerMethodReturnValueHandler.class,org.springframework.boot.restclient.RestTemplateBuilder.class}) @EnableConfigurationProperties(ProxyExchangeWebMvcProperties.class) public class ProxyResponseAutoConfiguration extends Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
Autoconfiguration for the ProxyExchange argument handler in Spring MVC @RequestMapping methods.
Author:
Dave Syer, Tim Ysewyn
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addArgumentResolvers(List<org.springframework.web.method.support.HandlerMethodArgumentResolver> argumentResolvers)
     
    proxyExchangeArgumentResolver(Optional<org.springframework.boot.restclient.RestTemplateBuilder> optional, ProxyExchangeWebMvcProperties properties)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer

    addCorsMappings, addErrorResponseInterceptors, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureApiVersioning, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
  • Constructor Details

    • ProxyResponseAutoConfiguration

      public ProxyResponseAutoConfiguration()
  • Method Details

    • proxyExchangeArgumentResolver

      @Bean @ConditionalOnMissingBean public ProxyExchangeArgumentResolver proxyExchangeArgumentResolver(Optional<org.springframework.boot.restclient.RestTemplateBuilder> optional, ProxyExchangeWebMvcProperties properties)
    • addArgumentResolvers

      public void addArgumentResolvers(List<org.springframework.web.method.support.HandlerMethodArgumentResolver> argumentResolvers)
      Specified by:
      addArgumentResolvers in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer