Class HostRoutePredicateFactory
java.lang.Object
org.springframework.cloud.gateway.support.AbstractConfigurable<HostRoutePredicateFactory.Config>
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 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionPredicate<org.springframework.web.server.ServerWebExchange> voidsetPathMatcher(org.springframework.util.PathMatcher pathMatcher) 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
-
HostRoutePredicateFactory
public HostRoutePredicateFactory() -
HostRoutePredicateFactory
public HostRoutePredicateFactory(boolean includePort)
-
-
Method Details
-
setPathMatcher
public void setPathMatcher(org.springframework.util.PathMatcher pathMatcher) -
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(HostRoutePredicateFactory.Config config)
-