public class ReactiveLoadBalancerClientFilter extends Object implements GlobalFilter, org.springframework.core.Ordered
GlobalFilter implementation that routes requests using reactive Spring Cloud
LoadBalancer.| Modifier and Type | Field and Description |
|---|---|
static int |
LOAD_BALANCER_CLIENT_FILTER_ORDER
Order of filter.
|
| Constructor and Description |
|---|
ReactiveLoadBalancerClientFilter(org.springframework.cloud.loadbalancer.support.LoadBalancerClientFactory clientFactory,
GatewayLoadBalancerProperties properties,
org.springframework.cloud.client.loadbalancer.LoadBalancerProperties loadBalancerProperties) |
| 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() |
protected URI |
reconstructURI(org.springframework.cloud.client.ServiceInstance serviceInstance,
URI original) |
public static final int LOAD_BALANCER_CLIENT_FILTER_ORDER
public ReactiveLoadBalancerClientFilter(org.springframework.cloud.loadbalancer.support.LoadBalancerClientFactory clientFactory,
GatewayLoadBalancerProperties properties,
org.springframework.cloud.client.loadbalancer.LoadBalancerProperties loadBalancerProperties)
public int getOrder()
getOrder in interface org.springframework.core.Orderedpublic 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 completeCopyright © 2021 Pivotal Software, Inc.. All rights reserved.