public class ByteLengthValidator extends BaseValidator implements Validator
Modifier and Type | Field and Description |
---|---|
protected int |
_maxLength |
protected int |
_minLength |
protected static java.text.MessageFormat |
MAX_MESSAGE |
protected static java.text.MessageFormat |
MIN_MESSAGE |
_label, _log
Constructor and Description |
---|
ByteLengthValidator() |
ByteLengthValidator(int min,
int max) |
ByteLengthValidator(java.lang.String label) |
ByteLengthValidator(java.lang.String label,
int min,
int max) |
Modifier and Type | Method and Description |
---|---|
void |
setMaxLength(int length) |
void |
setMinLength(int length) |
void |
validate(Response response)
Validate a response
|
fail, getLabel, setLabel
protected int _minLength
protected int _maxLength
protected static final java.text.MessageFormat MAX_MESSAGE
protected static final java.text.MessageFormat MIN_MESSAGE
public ByteLengthValidator()
public ByteLengthValidator(java.lang.String label)
public ByteLengthValidator(int min, int max)
public ByteLengthValidator(java.lang.String label, int min, int max)
public void setMinLength(int length)
public void setMaxLength(int length)
public void validate(Response response) throws ValidationException
BaseValidator
validate
in interface Validator
validate
in class BaseValidator
response
- the response to validateValidationException
- if the Response fails to be validCopyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.