org.apache.commons.latka
Interface Validator

All Known Implementing Classes:
BaseValidator, StatusCodeValidator, ByteLengthValidator, GoldenFileValidator, ResponseHeaderValidator, RegexpValidator, CookieValidator, MaxRequestTimeValidator

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.

Author:
Doug Sale
See Also:
Response, ValidationHandler

Method Summary
 void validate(Response response)
          Run custom validation.
 

Method Detail

validate

public 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 Apache Software Foundation. Documenation generated September 13 2001.