com.alibaba.druid.util
Interface PatternMatcher
- All Known Implementing Classes:
- ServletPathMatcher
public interface PatternMatcher
Interface for components that can match source strings against a specified pattern string.
Different implementations can support different pattern types, for example, Ant style path expressions, or regular
expressions, or other types of text based patterns.
- Since:
- 0.2.6
- See Also:
AntPathMatcher
|
Method Summary |
boolean |
matches(String pattern,
String source)
Returns true if the given source matches the specified pattern,
false otherwise. |
matches
boolean matches(String pattern,
String source)
- Returns
true if the given source matches the specified pattern,
false otherwise.
- Parameters:
pattern - the pattern to match againstsource - the source to match
- Returns:
true if the given source matches the specified pattern,
false otherwise.
Copyright © 2012 Alibaba Group. All Rights Reserved.