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 String
PATTERN_KEY
Pattern 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 void
beforeApply(C config)
default Class<C>
getConfigClass()
default String
name()
default C
newConfig()
-
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:
getConfigClass
in interfaceConfigurable<C>
-
newConfig
default C newConfig()
- Specified by:
newConfig
in interfaceConfigurable<C>
-
beforeApply
default void beforeApply(C config)
-
applyAsync
default AsyncPredicate<org.springframework.web.server.ServerWebExchange> applyAsync(C config)
-
name
default String name()
-
-