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) @EnableConfigurationProperties(ProxyProperties.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.web.client.RestTemplateBuilder> optional, ProxyProperties proxy)
     

    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, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
  • Constructor Details

    • ProxyResponseAutoConfiguration

      public ProxyResponseAutoConfiguration()
  • Method Details

    • proxyExchangeArgumentResolver

      @Bean @ConditionalOnMissingBean public ProxyExchangeArgumentResolver proxyExchangeArgumentResolver(Optional<org.springframework.boot.web.client.RestTemplateBuilder> optional, ProxyProperties proxy)
    • addArgumentResolvers

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