@Activate(order=2147483647) public class WildcardValuePattern extends Object implements ValuePattern
This pattern evaluator must be the last one being executed.
| Constructor and Description |
|---|
WildcardValuePattern() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
match(String pattern,
String value,
org.apache.dubbo.common.URL url,
Invocation invocation,
boolean isWhenCondition)
Is the pattern matches with the request context
|
boolean |
shouldMatch(String key)
Is the input pattern of a specific form, for example, range pattern '1~100', wildcard pattern 'hello*', etc.
|
public boolean shouldMatch(String key)
ValuePatternshouldMatch in interface ValuePatternkey - the match or mismatch patternpublic boolean match(String pattern, String value, org.apache.dubbo.common.URL url, Invocation invocation, boolean isWhenCondition)
ValuePatternmatch in interface ValuePatternpattern - pattern value extracted from condition rulevalue - the real value extracted from request contexturl - request context in consumer urlinvocation - request context in invocationisWhenCondition - condition typeCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.