
filters.BaseFilter | +--filters.VariablePatternFilter
| Method Summary | |
public any |
getDescription()
|
public string |
getName()
|
public string |
getThreatCategory()
Returns validation |
public numeric |
inspectRequest()
|
public boolean |
matchesPattern(string input)
Tests the input variable against the pattern |
public void |
setAllowEmpty(boolean allow)
Allows empty string if pattern does not match. |
public void |
setPattern(string pattern)
Allows you to specify the regular expression pattern for this filter to match |
public void |
setVariableName([variableName scope], [variableName variableName])
The name of the variable to inspect. |
| Method Detail |
public any getDescription()
public string getName()
public string getThreatCategory()
public numeric inspectRequest()
public boolean matchesPattern(string input)
string inputpublic void setAllowEmpty(boolean allow)
boolean allow - true for allow empty strings as valuespublic void setPattern(string pattern)
string pattern - regex to be used in ReFindpublic void setVariableName([variableName scope], [variableName variableName])
[variableName scope] - cgi,form,url, or cookie[variableName variableName] - The Name of the Variable