@SPI
public interface ValuePattern
| 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 pattern)
Is the input pattern of a specific form, for example, range pattern '1~100', wildcard pattern 'hello*', etc.
|
boolean shouldMatch(String pattern)
pattern - the match or mismatch patternboolean match(String pattern, String value, org.apache.dubbo.common.URL url, Invocation invocation, boolean isWhenCondition)
pattern - 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.