package org.theonefx.wcframework.mvc.wcweb;
import javax.servlet.http.HttpServletRequest;
/**
* @File : AbsolutePathMatcher.java
* @ClassName : AbsolutePathMatcher
* @Author : 陈曦
* @Date : 2012-4-1 下午02:36:44
* @Version : v1.0
* @Description : 绝对路径对比器,不使用任何占位符,直接使用String.equal进行对比
*/
public class AbsolutePathMatcher extends PathMatcher {
public AbsolutePathMatcher(String path) {
super(path);
}
@Override
public boolean match(String name, HttpServletRequest req) {
return getExpression().equals(name);
}
@Override
public int getLevel() {
return 0;
}
}