Class PathRoutePredicateFactory
java.lang.Object
org.springframework.cloud.gateway.support.AbstractConfigurable<PathRoutePredicateFactory.Config>
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, FuYiNan Guo
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface ShortcutConfigurable
ShortcutConfigurable.GatewayBeanFactoryResolver, ShortcutConfigurable.GatewayEvaluationContext, ShortcutConfigurable.RestrictivePropertyAccessor, ShortcutConfigurable.ShortcutType -
Field Summary
Fields inherited from interface RoutePredicateFactory
PATTERN_KEY -
Constructor Summary
ConstructorsConstructorDescriptionPathRoutePredicateFactory(org.springframework.boot.webflux.autoconfigure.WebFluxProperties webFluxProperties) -
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 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, beforeApply, getConfigClass, name, newConfigMethods inherited from interface ShortcutConfigurable
shortcutFieldPrefix
-
Constructor Details
-
PathRoutePredicateFactory
public PathRoutePredicateFactory(org.springframework.boot.webflux.autoconfigure.WebFluxProperties webFluxProperties)
-
-
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)
-