Package com.alibaba.druid.util
Class ServletPathMatcher
java.lang.Object
com.alibaba.druid.util.ServletPathMatcher
- All Implemented Interfaces:
PatternMatcher
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ServletPathMatcher
boolean
three type: endsWithMatch(eg.
-
Constructor Details
-
ServletPathMatcher
public ServletPathMatcher()
-
-
Method Details
-
getInstance
-
matches
three type: endsWithMatch(eg. /xxx*=/xxx/xyz), startsWithMatch(eg. *.xxx=abc.xxx), equals(eg. /xxx=/xxx).
Notice: *xxx* will match *xxxyyyy. endsWithMatch first.- Specified by:
matches
in interfacePatternMatcher
- Parameters:
pattern
- the pattern to match againstsource
- the source to match- Returns:
true
if the givensource
matches the specifiedpattern
,false
otherwise.
-