Class ProxyResponseAutoConfiguration
- java.lang.Object
-
- org.springframework.cloud.gateway.webflux.config.ProxyResponseAutoConfiguration
-
- All Implemented Interfaces:
org.springframework.web.reactive.config.WebFluxConfigurer
@Configuration @ConditionalOnWebApplication @ConditionalOnClass(org.springframework.web.method.support.HandlerMethodReturnValueHandler.class) @EnableConfigurationProperties(ProxyProperties.class) public class ProxyResponseAutoConfiguration extends java.lang.Object implements org.springframework.web.reactive.config.WebFluxConfigurer
Autoconfiguration for theProxyExchange
argument handler in Spring Webflux@RequestMapping
methods.- Author:
- Dave Syer
-
-
Constructor Summary
Constructors Constructor Description ProxyResponseAutoConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configureArgumentResolvers(org.springframework.web.reactive.result.method.annotation.ArgumentResolverConfigurer configurer)
ProxyExchangeArgumentResolver
proxyExchangeArgumentResolver(java.util.Optional<org.springframework.web.reactive.function.client.WebClient.Builder> optional, ProxyProperties proxy)
-
-
-
Method Detail
-
proxyExchangeArgumentResolver
@Bean @ConditionalOnMissingBean public ProxyExchangeArgumentResolver proxyExchangeArgumentResolver(java.util.Optional<org.springframework.web.reactive.function.client.WebClient.Builder> optional, ProxyProperties proxy)
-
configureArgumentResolvers
public void configureArgumentResolvers(org.springframework.web.reactive.result.method.annotation.ArgumentResolverConfigurer configurer)
- Specified by:
configureArgumentResolvers
in interfaceorg.springframework.web.reactive.config.WebFluxConfigurer
-
-