public class IntegerValidationRule extends BaseValidationRule
ValidatorallowNull, encoder| Constructor and Description |
|---|
IntegerValidationRule(String typeName,
Encoder encoder) |
IntegerValidationRule(String typeName,
Encoder encoder,
int minValue,
int maxValue) |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getValid(String context,
String input)
Parse the input, throw exceptions if validation fails
|
Integer |
sanitize(String context,
String input)
The method is similar to ValidationRuile.getSafe except that it returns a
harmless object that may or may not have any similarity to the original
input (in some cases you may not care).
|
assertValid, charArrayToSet, getEncoder, getSafe, getTypeName, getValid, isAllowNull, isValid, setAllowNull, setEncoder, setTypeName, whitelist, whitelistpublic Integer getValid(String context, String input) throws ValidationException
ValidationRulecontext - for logginginput - the value to be parsedValidationException - if any validation rules failpublic Integer sanitize(String context, String input)
BaseValidationRulesanitize in class BaseValidationRuleCopyright © 2016 The Open Web Application Security Project (OWASP). All rights reserved.