Class WeightRoutePredicateFactory
java.lang.Object
org.springframework.cloud.gateway.support.AbstractConfigurable<C>
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 org.springframework.cloud.gateway.support.ShortcutConfigurable
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 org.springframework.cloud.gateway.handler.predicate.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 org.springframework.cloud.gateway.support.AbstractConfigurable
getConfigClass, newConfig, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.cloud.gateway.handler.predicate.RoutePredicateFactory
apply, applyAsync, applyAsync, getConfigClass, name, newConfigMethods inherited from interface org.springframework.cloud.gateway.support.ShortcutConfigurable
shortcutType
-
Field Details
-
GROUP_KEY
Weight config group key.- See Also:
-
WEIGHT_KEY
Weight config weight key.- See Also:
-
-
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>
-