improve wall filter

This commit is contained in:
wenshao
2013-04-09 14:27:24 +08:00
parent 0e7d1322e4
commit c814766889
13 changed files with 170 additions and 17 deletions
@@ -65,6 +65,7 @@ public class WallConfig implements WallConfigMBean {
private boolean commentAllow = false;
private boolean strictSyntaxCheck = true;
private boolean constArithmeticAllow = true;
private boolean limitZeroAllow = false;
private boolean describeAllow = true;
private boolean showAllow = true;
@@ -109,10 +110,20 @@ public class WallConfig implements WallConfigMBean {
}
public boolean isLimitZeroAllow() {
return limitZeroAllow;
}
public void setLimitZeroAllow(boolean limitZero) {
this.limitZeroAllow = limitZero;
}
public boolean isConditionAndAlwayTrueAllow() {
return conditionAndAlwayTrueAllow;
}
public void setConditionAndAlwayTrueAllow(boolean conditionAndAlwayTrueAllow) {
this.conditionAndAlwayTrueAllow = conditionAndAlwayTrueAllow;
}