mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
add WebStatFilter's exclusions, support /foo*, *.html, /bar/index.html
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package com.alibaba.druid.util;
|
||||
|
||||
/**
|
||||
* Interface for components that can match source strings against a specified pattern string.
|
||||
* <p/>
|
||||
* Different implementations can support different pattern types, for example, Ant style path expressions, or regular
|
||||
* expressions, or other types of text based patterns.
|
||||
*
|
||||
* @see com.alibaba.druid.util.AntPathMatcher AntPathMatcher
|
||||
* @since 0.2.6
|
||||
*/
|
||||
public interface PatternMatcher {
|
||||
|
||||
/**
|
||||
* Returns <code>true</code> if the given <code>source</code> matches the specified <code>pattern</code>,
|
||||
* <code>false</code> otherwise.
|
||||
*
|
||||
* @param pattern the pattern to match against
|
||||
* @param source the source to match
|
||||
* @return <code>true</code> if the given <code>source</code> matches the specified <code>pattern</code>,
|
||||
* <code>false</code> otherwise.
|
||||
*/
|
||||
boolean matches(String pattern, String source);
|
||||
}
|
||||
Reference in New Issue
Block a user