public class WeightCalculatorWebFilter extends Object implements org.springframework.web.server.WebFilter, org.springframework.core.Ordered, org.springframework.context.event.SmartApplicationListener
| Modifier and Type | Field and Description |
|---|---|
static int |
WEIGHT_CALC_FILTER_ORDER
Order of Weight Calculator Web filter.
|
| Constructor and Description |
|---|
WeightCalculatorWebFilter(org.springframework.beans.factory.ObjectProvider<RouteLocator> routeLocator,
ConfigurationService configurationService) |
WeightCalculatorWebFilter(org.springframework.validation.Validator validator)
Deprecated.
|
WeightCalculatorWebFilter(org.springframework.validation.Validator validator,
org.springframework.beans.factory.ObjectProvider<RouteLocator> routeLocator)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Void> |
filter(org.springframework.web.server.ServerWebExchange exchange,
org.springframework.web.server.WebFilterChain chain) |
int |
getOrder() |
void |
handle(PredicateArgsEvent event) |
void |
onApplicationEvent(org.springframework.context.ApplicationEvent event) |
void |
setOrder(int order) |
void |
setRandom(Random random) |
boolean |
supportsEventType(Class<? extends org.springframework.context.ApplicationEvent> eventType) |
boolean |
supportsSourceType(Class<?> sourceType) |
public static final int WEIGHT_CALC_FILTER_ORDER
@Deprecated public WeightCalculatorWebFilter(org.springframework.validation.Validator validator)
@Deprecated public WeightCalculatorWebFilter(org.springframework.validation.Validator validator, org.springframework.beans.factory.ObjectProvider<RouteLocator> routeLocator)
public WeightCalculatorWebFilter(org.springframework.beans.factory.ObjectProvider<RouteLocator> routeLocator, ConfigurationService configurationService)
public int getOrder()
getOrder in interface org.springframework.context.event.SmartApplicationListenergetOrder in interface org.springframework.core.Orderedpublic void setOrder(int order)
public void setRandom(Random random)
public boolean supportsEventType(Class<? extends org.springframework.context.ApplicationEvent> eventType)
supportsEventType in interface org.springframework.context.event.SmartApplicationListenerpublic boolean supportsSourceType(Class<?> sourceType)
supportsSourceType in interface org.springframework.context.event.SmartApplicationListenerpublic void onApplicationEvent(org.springframework.context.ApplicationEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>public void handle(PredicateArgsEvent event)
public reactor.core.publisher.Mono<Void> filter(org.springframework.web.server.ServerWebExchange exchange, org.springframework.web.server.WebFilterChain chain)
filter in interface org.springframework.web.server.WebFilterCopyright © 2021 Pivotal Software, Inc.. All rights reserved.