Class PathRoutePredicateFactory
java.lang.Object
org.springframework.cloud.gateway.support.AbstractConfigurable<C>
org.springframework.cloud.gateway.handler.predicate.AbstractRoutePredicateFactory<PathRoutePredicateFactory.Config>
org.springframework.cloud.gateway.handler.predicate.PathRoutePredicateFactory
- All Implemented Interfaces:
RoutePredicateFactory<PathRoutePredicateFactory.Config>,Configurable<PathRoutePredicateFactory.Config>,ShortcutConfigurable
public class PathRoutePredicateFactory
extends AbstractRoutePredicateFactory<PathRoutePredicateFactory.Config>
- Author:
- Spencer Gibb, Dhawal Kapil
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.springframework.cloud.gateway.support.ShortcutConfigurable
ShortcutConfigurable.GatewayEvaluationContext, ShortcutConfigurable.RestrictivePropertyAccessor, ShortcutConfigurable.ShortcutType -
Field Summary
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>voidsetPathPatternParser(org.springframework.web.util.pattern.PathPatternParser pathPatternParser) 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, beforeApply, getConfigClass, name, newConfigMethods inherited from interface org.springframework.cloud.gateway.support.ShortcutConfigurable
shortcutFieldPrefix
-
Constructor Details
-
PathRoutePredicateFactory
public PathRoutePredicateFactory()
-
-
Method Details
-
setPathPatternParser
public void setPathPatternParser(org.springframework.web.util.pattern.PathPatternParser pathPatternParser) -
shortcutFieldOrder
Description copied from interface:ShortcutConfigurableReturns hints about the number of args and the order for shortcut parsing.- Returns:
- the list of hints
-
shortcutType
-
apply
public Predicate<org.springframework.web.server.ServerWebExchange> apply(PathRoutePredicateFactory.Config config)
-