public class MaxRequestTimeValidator extends BaseValidator implements Validator
Modifier and Type | Field and Description |
---|---|
protected int |
_millis |
protected static java.text.MessageFormat |
MESSAGE |
_label, _log
Constructor and Description |
---|
MaxRequestTimeValidator() |
MaxRequestTimeValidator(java.lang.String label) |
MaxRequestTimeValidator(java.lang.String label,
int millis) |
Modifier and Type | Method and Description |
---|---|
void |
setMaxMillis(int millis) |
void |
validate(Response response)
Validate a response
|
fail, getLabel, setLabel
protected int _millis
protected static final java.text.MessageFormat MESSAGE
public MaxRequestTimeValidator()
public MaxRequestTimeValidator(java.lang.String label)
public MaxRequestTimeValidator(java.lang.String label, int millis)
public void setMaxMillis(int millis)
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.