com.alibaba.druid.util
类 ServletPathMatcher

java.lang.Object
  继承者 com.alibaba.druid.util.ServletPathMatcher
所有已实现的接口:
PatternMatcher

public class ServletPathMatcher
extends Object
implements PatternMatcher


构造方法摘要
ServletPathMatcher()
           
 
方法摘要
static ServletPathMatcher getInstance()
           
 boolean matches(String pattern, String source)
           three type: endsWithMatch(eg.
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

ServletPathMatcher

public ServletPathMatcher()
方法详细信息

getInstance

public static ServletPathMatcher getInstance()

matches

public boolean matches(String pattern,
                       String source)

three type: endsWithMatch(eg. /xxx*=/xxx/xyz), startsWithMatch(eg. *.xxx=abc.xxx), equals(eg. /xxx=/xxx).

Notice: *xxx* will match *xxxyyyy. endsWithMatch first.

指定者:
接口 PatternMatcher 中的 matches
参数:
pattern - the pattern to match against
source - the source to match
返回:
true if the given source matches the specified pattern, false otherwise.


Copyright © 2013 Alibaba Group. All Rights Reserved.