public abstract class AbstractConditionMatcher extends Object implements ConditionMatcher
| Modifier and Type | Field and Description |
|---|---|
static String |
DOES_NOT_FOUND_VALUE |
static org.apache.dubbo.common.logger.ErrorTypeAwareLogger |
logger |
| Constructor and Description |
|---|
AbstractConditionMatcher(String key,
org.apache.dubbo.rpc.model.ModuleModel model) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getMatches()
match patterns extracted from when condition
|
Set<String> |
getMismatches()
mismatch patterns extracted from then condition
|
static String |
getSampleValueFromUrl(String conditionKey,
Map<String,String> sample,
org.apache.dubbo.common.URL param,
Invocation invocation) |
boolean |
isMatch(Map<String,String> sample,
org.apache.dubbo.common.URL param,
Invocation invocation,
boolean isWhenCondition)
Determines if the patterns of this matcher matches with request context.
|
public static final org.apache.dubbo.common.logger.ErrorTypeAwareLogger logger
public static final String DOES_NOT_FOUND_VALUE
public AbstractConditionMatcher(String key, org.apache.dubbo.rpc.model.ModuleModel model)
public static String getSampleValueFromUrl(String conditionKey, Map<String,String> sample, org.apache.dubbo.common.URL param, Invocation invocation)
public boolean isMatch(Map<String,String> sample, org.apache.dubbo.common.URL param, Invocation invocation, boolean isWhenCondition)
ConditionMatcherisMatch in interface ConditionMatchersample - request context in provider urlparam - request context in consumer urlinvocation - request context in invocation, typically, service, method, arguments and attachmentsisWhenCondition - condition typepublic Set<String> getMatches()
ConditionMatchergetMatches in interface ConditionMatcherpublic Set<String> getMismatches()
ConditionMatchergetMismatches in interface ConditionMatcherCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.