Class ProxyResponseAutoConfiguration
java.lang.Object
org.springframework.cloud.gateway.webflux.config.ProxyResponseAutoConfiguration
- All Implemented Interfaces:
org.springframework.web.reactive.config.WebFluxConfigurer
@Configuration(proxyBeanMethods=false)
@ConditionalOnWebApplication
@ConditionalOnClass(org.springframework.web.method.support.HandlerMethodReturnValueHandler.class)
@EnableConfigurationProperties(ProxyProperties.class)
public class ProxyResponseAutoConfiguration
extends Object
implements org.springframework.web.reactive.config.WebFluxConfigurer
Autoconfiguration for the
ProxyExchange
argument handler in Spring Webflux
@RequestMapping
methods.- Author:
- Dave Syer, Tim Ysewyn
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configureArgumentResolvers
(org.springframework.web.reactive.result.method.annotation.ArgumentResolverConfigurer configurer) proxyExchangeArgumentResolver
(Optional<org.springframework.web.reactive.function.client.WebClient.Builder> 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.reactive.config.WebFluxConfigurer
addCorsMappings, addFormatters, addResourceHandlers, configureContentTypeResolver, configureHttpMessageCodecs, configurePathMatching, configureViewResolvers, getMessageCodesResolver, getValidator, getWebSocketService
-
Constructor Details
-
ProxyResponseAutoConfiguration
public ProxyResponseAutoConfiguration()
-
-
Method Details
-
proxyExchangeArgumentResolver
@Bean @ConditionalOnMissingBean public ProxyExchangeArgumentResolver proxyExchangeArgumentResolver(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
-