public abstract class AbstractParamValueFilter extends Object implements ParamValueFilter
开发人员: renhui
开发时间: 2013-10-14
Constructor and Description |
---|
AbstractParamValueFilter() |
Modifier and Type | Method and Description |
---|---|
boolean |
isFilter(String keyName)
参数名称是否匹配
|
boolean |
isFiltering(javax.servlet.http.HttpServletRequest request)
是否需要过滤,如果返回否,则对于该请求的所有参数均不执行该过滤器。
|
void |
setPattern(String patternStr)
配置需要参数值过滤的正则
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
valueFilter
public void setPattern(String patternStr)
ParamValueFilter
setPattern
in interface ParamValueFilter
public boolean isFiltering(javax.servlet.http.HttpServletRequest request)
ParameterParserFilter
有些filter可以根据URL来确定是否要过滤参数。
isFiltering
in interface ParameterParserFilter
public boolean isFilter(String keyName)
ParamValueFilter
isFilter
in interface ParamValueFilter
Copyright © 2006–2018 TinyGroup. All rights reserved.