public class LoadBalancerServiceInstanceCookieFilter extends Object implements GlobalFilter, org.springframework.core.Ordered
GlobalFilter that allows passing the instanceId) of the
ServiceInstance selected by the ReactiveLoadBalancerClientFilter in a
cookie.| Constructor and Description |
|---|
LoadBalancerServiceInstanceCookieFilter(org.springframework.cloud.client.loadbalancer.LoadBalancerProperties loadBalancerProperties)
Deprecated.
|
LoadBalancerServiceInstanceCookieFilter(org.springframework.cloud.client.loadbalancer.reactive.ReactiveLoadBalancer.Factory<org.springframework.cloud.client.ServiceInstance> loadBalancerClientFactory) |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Void> |
filter(org.springframework.web.server.ServerWebExchange exchange,
GatewayFilterChain chain)
Process the Web request and (optionally) delegate to the next
WebFilter
through the given GatewayFilterChain. |
int |
getOrder() |
@Deprecated public LoadBalancerServiceInstanceCookieFilter(org.springframework.cloud.client.loadbalancer.LoadBalancerProperties loadBalancerProperties)
LoadBalancerServiceInstanceCookieFilter(ReactiveLoadBalancer.Factory)public LoadBalancerServiceInstanceCookieFilter(org.springframework.cloud.client.loadbalancer.reactive.ReactiveLoadBalancer.Factory<org.springframework.cloud.client.ServiceInstance> loadBalancerClientFactory)
public reactor.core.publisher.Mono<Void> filter(org.springframework.web.server.ServerWebExchange exchange, GatewayFilterChain chain)
GlobalFilterWebFilter
through the given GatewayFilterChain.filter in interface GlobalFilterexchange - the current server exchangechain - provides a way to delegate to the next filterMono<Void> to indicate when request processing is completepublic int getOrder()
getOrder in interface org.springframework.core.OrderedCopyright © 2022 Pivotal Software, Inc.. All rights reserved.