Interface RoutePredicateFactory<C>
-
- All Superinterfaces:
Configurable<C>,ShortcutConfigurable
- All Known Implementing Classes:
AbstractRoutePredicateFactory,AfterRoutePredicateFactory,BeforeRoutePredicateFactory,BetweenRoutePredicateFactory,CloudFoundryRouteServiceRoutePredicateFactory,CookieRoutePredicateFactory,HeaderRoutePredicateFactory,HostRoutePredicateFactory,MethodRoutePredicateFactory,PathRoutePredicateFactory,QueryRoutePredicateFactory,ReadBodyRoutePredicateFactory,RemoteAddrRoutePredicateFactory,WeightRoutePredicateFactory,XForwardedRemoteAddrRoutePredicateFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface RoutePredicateFactory<C> extends ShortcutConfigurable, Configurable<C>
- 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
Fields Modifier and Type Field Description static StringPATTERN_KEYPattern key.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Predicate<org.springframework.web.server.ServerWebExchange>apply(C config)default Predicate<org.springframework.web.server.ServerWebExchange>apply(Consumer<C> consumer)default AsyncPredicate<org.springframework.web.server.ServerWebExchange>applyAsync(C config)default AsyncPredicate<org.springframework.web.server.ServerWebExchange>applyAsync(Consumer<C> consumer)default voidbeforeApply(C config)default Class<C>getConfigClass()default Stringname()default CnewConfig()-
Methods inherited from interface org.springframework.cloud.gateway.support.ShortcutConfigurable
shortcutFieldOrder, shortcutFieldPrefix, shortcutType
-
-
-
-
Field Detail
-
PATTERN_KEY
static final String PATTERN_KEY
Pattern key.- See Also:
- Constant Field Values
-
-
Method Detail
-
apply
default Predicate<org.springframework.web.server.ServerWebExchange> apply(Consumer<C> consumer)
-
applyAsync
default AsyncPredicate<org.springframework.web.server.ServerWebExchange> applyAsync(Consumer<C> consumer)
-
getConfigClass
default Class<C> getConfigClass()
- Specified by:
getConfigClassin interfaceConfigurable<C>
-
newConfig
default C newConfig()
- Specified by:
newConfigin interfaceConfigurable<C>
-
beforeApply
default void beforeApply(C config)
-
applyAsync
default AsyncPredicate<org.springframework.web.server.ServerWebExchange> applyAsync(C config)
-
name
default String name()
-
-