Class WeightRoutePredicateFactory
java.lang.Object
org.springframework.cloud.gateway.support.AbstractConfigurable<WeightConfig>
org.springframework.cloud.gateway.handler.predicate.AbstractRoutePredicateFactory<WeightConfig>
org.springframework.cloud.gateway.handler.predicate.WeightRoutePredicateFactory
- All Implemented Interfaces:
org.springframework.beans.factory.Aware, RoutePredicateFactory<WeightConfig>, Configurable<WeightConfig>, ShortcutConfigurable, org.springframework.context.ApplicationEventPublisherAware
public class WeightRoutePredicateFactory
extends AbstractRoutePredicateFactory<WeightConfig>
implements org.springframework.context.ApplicationEventPublisherAware
- Author:
- Spencer Gibb
-
Nested Class Summary
Nested classes/interfaces inherited from interface ShortcutConfigurable
ShortcutConfigurable.GatewayBeanFactoryResolver, ShortcutConfigurable.GatewayEvaluationContext, ShortcutConfigurable.RestrictivePropertyAccessor, ShortcutConfigurable.ShortcutType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringWeight config group key.static final StringWeight config weight key.Fields inherited from interface RoutePredicateFactory
PATTERN_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionPredicate<org.springframework.web.server.ServerWebExchange> apply(WeightConfig config) voidbeforeApply(WeightConfig config) voidsetApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher) Returns hints about the number of args and the order for shortcut parsing.Methods inherited from class AbstractConfigurable
getConfigClass, newConfig, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface RoutePredicateFactory
apply, applyAsync, applyAsync, getConfigClass, name, newConfigMethods inherited from interface ShortcutConfigurable
shortcutType
-
Field Details
-
GROUP_KEY
-
WEIGHT_KEY
-
-
Constructor Details
-
WeightRoutePredicateFactory
public WeightRoutePredicateFactory()
-
-
Method Details
-
setApplicationEventPublisher
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher) - Specified by:
setApplicationEventPublisherin interfaceorg.springframework.context.ApplicationEventPublisherAware
-
shortcutFieldOrder
Description copied from interface:ShortcutConfigurableReturns hints about the number of args and the order for shortcut parsing.- Specified by:
shortcutFieldOrderin interfaceShortcutConfigurable- Returns:
- the list of hints
-
shortcutFieldPrefix
- Specified by:
shortcutFieldPrefixin interfaceShortcutConfigurable
-
beforeApply
- Specified by:
beforeApplyin interfaceRoutePredicateFactory<WeightConfig>
-
apply
- Specified by:
applyin interfaceRoutePredicateFactory<WeightConfig>
-