org.apache.commons.latka.validators
Class MaxRequestTimeValidator
java.lang.Object
org.apache.commons.latka.validators.BaseValidator
org.apache.commons.latka.validators.MaxRequestTimeValidator
- All Implemented Interfaces:
- Validator
- public class MaxRequestTimeValidator
- extends BaseValidator
- implements Validator
Field Summary |
protected int |
_millis
|
protected static java.text.MessageFormat |
MESSAGE
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_millis
protected int _millis
MESSAGE
protected static final java.text.MessageFormat MESSAGE
MaxRequestTimeValidator
public MaxRequestTimeValidator()
MaxRequestTimeValidator
public MaxRequestTimeValidator(java.lang.String label)
MaxRequestTimeValidator
public MaxRequestTimeValidator(java.lang.String label,
int millis)
setMaxMillis
public void setMaxMillis(int millis)
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
- Parameters:
response
- the response to validate
- Throws:
ValidationException
Copyright © 2002-2007 The Apache Software Foundation. All Rights Reserved.