Class HostRoutePredicateFactory
- java.lang.Object
-
- org.springframework.cloud.gateway.support.AbstractConfigurable<C>
-
- org.springframework.cloud.gateway.handler.predicate.AbstractRoutePredicateFactory<HostRoutePredicateFactory.Config>
-
- org.springframework.cloud.gateway.handler.predicate.HostRoutePredicateFactory
-
- All Implemented Interfaces:
RoutePredicateFactory<HostRoutePredicateFactory.Config>,Configurable<HostRoutePredicateFactory.Config>,ShortcutConfigurable
public class HostRoutePredicateFactory extends AbstractRoutePredicateFactory<HostRoutePredicateFactory.Config>
- Author:
- Spencer Gibb
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHostRoutePredicateFactory.Config-
Nested 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 Constructor Description HostRoutePredicateFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Predicate<org.springframework.web.server.ServerWebExchange>apply(HostRoutePredicateFactory.Config config)voidsetPathMatcher(org.springframework.util.PathMatcher pathMatcher)List<String>shortcutFieldOrder()Returns hints about the number of args and the order for shortcut parsing.ShortcutConfigurable.ShortcutTypeshortcutType()-
Methods inherited from class org.springframework.cloud.gateway.support.AbstractConfigurable
getConfigClass, newConfig, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.springframework.cloud.gateway.handler.predicate.RoutePredicateFactory
apply, applyAsync, applyAsync, beforeApply, getConfigClass, name, newConfig
-
Methods inherited from interface org.springframework.cloud.gateway.support.ShortcutConfigurable
shortcutFieldPrefix
-
-
-
-
Method Detail
-
setPathMatcher
public void setPathMatcher(org.springframework.util.PathMatcher pathMatcher)
-
shortcutFieldOrder
public List<String> shortcutFieldOrder()
Description copied from interface:ShortcutConfigurableReturns hints about the number of args and the order for shortcut parsing.- Returns:
- the list of hints
-
shortcutType
public ShortcutConfigurable.ShortcutType shortcutType()
-
apply
public Predicate<org.springframework.web.server.ServerWebExchange> apply(HostRoutePredicateFactory.Config config)
-
-