add WebStatFilter's exclusions, support /foo*, *.html, /bar/index.html

This commit is contained in:
Zhanming Qi
2012-08-12 20:14:52 +08:00
parent f26c98ace9
commit 98f91b177a
6 changed files with 642 additions and 1 deletions
@@ -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);
}