public class QueryRoutePredicateFactory extends Object implements RoutePredicateFactory
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_KEY |
static String |
REGEXP_KEY |
PATTERN_KEY
Constructor and Description |
---|
QueryRoutePredicateFactory() |
Modifier and Type | Method and Description |
---|---|
Predicate<org.springframework.web.server.ServerWebExchange> |
apply(org.springframework.tuple.Tuple args) |
List<String> |
argNames()
Returns hints about the number of args and the order for shortcut parsing.
|
boolean |
validateArgs()
Validate supplied argument size against
ArgumentHints.argNames() size. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
name
validate, validateMin
public static final String PARAM_KEY
public static final String REGEXP_KEY
public List<String> argNames()
ArgumentHints
argNames
in interface ArgumentHints
public boolean validateArgs()
ArgumentHints
ArgumentHints.argNames()
size.
Useful for variable arg predicates.validateArgs
in interface ArgumentHints
public Predicate<org.springframework.web.server.ServerWebExchange> apply(org.springframework.tuple.Tuple args)
apply
in interface RoutePredicateFactory
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.