org.apache.commons.latka.validators
Class ByteLengthValidator
java.lang.Object
org.apache.commons.latka.validators.BaseValidator
org.apache.commons.latka.validators.ByteLengthValidator
- All Implemented Interfaces:
- Validator
- public class ByteLengthValidator
- extends BaseValidator
- implements Validator
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByteLengthValidator
public ByteLengthValidator()
ByteLengthValidator
public ByteLengthValidator(int min,
int max)
ByteLengthValidator
public ByteLengthValidator(java.lang.String label)
ByteLengthValidator
public ByteLengthValidator(java.lang.String label,
int min,
int max)
setMaxLength
public void setMaxLength(int length)
setMinLength
public void setMinLength(int length)
validate
public void validate(Response response)
throws ValidationException
- Description copied from interface:
Validator
- Run custom validation. Latka will
provide the HTTP response to this method. The implementer
should throw a ValidationException if the Response fails
to meet the validation criteria.
- Specified by:
validate in interface Validator- Specified by:
validate in class BaseValidator
- Throws:
ValidationException
Copyright © 2001 Apache Software Foundation. Documenation generated September 27 2004.