org.apache.commons.latka.validators
Class RegexpValidator
java.lang.Object
|
+--org.apache.commons.latka.validators.BaseValidator
|
+--org.apache.commons.latka.validators.RegexpValidator
- All Implemented Interfaces:
- Validator
- public class RegexpValidator
- extends BaseValidator
- implements Validator
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RegexpValidator
public RegexpValidator()
RegexpValidator
public RegexpValidator(java.lang.String label)
RegexpValidator
public RegexpValidator(java.lang.String label,
java.lang.String pattern,
boolean cond,
boolean ignoreCase)
setCondition
public void setCondition(boolean cond)
setIgnoreCase
public void setIgnoreCase(boolean ignoreCase)
setPattern
public void setPattern(java.lang.String pattern)
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
- Overrides:
validate
in class BaseValidator
- Following copied from interface:
org.apache.commons.latka.Validator
- Parameters:
response
- the HTTP response- Throws:
ValidationException
- if the Response fails to be valid
Copyright © 2001 Apache Software Foundation. Documenation generated September 13 2001.