org.apache.commons.latka
Interface Validator
- All Known Implementing Classes:
- BaseConditionalValidator, BaseValidator, ByteLengthValidator, CookieValidator, GoldenFileValidator, MaxRequestTimeValidator, RegexpValidator, ResponseHeaderValidator, StatusCodeValidator, StatusTextValidator, XPathValidator
public interface Validator
This is the standard interface for custom validation of an HTTP
Response in Latka. All custom validators need to implement
a Validator class and a ValidationHandler class.
- Version:
- $Revision: 155424 $
- Author:
- Doug Sale, dIon Gillard
- See Also:
Response
,
org.apache.commons.latka.xml.ValidationHandler
validate
void validate(Response response)
throws ValidationException
- 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.
- Parameters:
response
- the HTTP response
- Throws:
ValidationException
- if the Response fails to be valid
Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.