Module org.apache.wicket.extensions
Class RfcCompliantEmailAddressValidator
java.lang.Object
org.apache.wicket.extensions.validation.validator.RfcCompliantEmailAddressValidator
- All Implemented Interfaces:
Serializable,org.apache.wicket.util.io.IClusterable,IValidator<String>
Validator for validating email addresses according to the RFC 822. This validator uses the
regular expression taken from the Perl implementation of RFC 822.
Most users will be satisfied with the EmailAddressValidator
- Author:
- Frank Bille
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IValidationErrordecorate(IValidationError error, IValidatable<String> validatable) Allows subclasses to decorate reported errorsvoidvalidate(IValidatable<String> validatable)
-
Constructor Details
-
RfcCompliantEmailAddressValidator
protected RfcCompliantEmailAddressValidator()
-
-
Method Details
-
getInstance
- Returns:
- Instance of RFC compliant emailaddress validator
-
validate
- Specified by:
validatein interfaceIValidator<String>
-
decorate
Allows subclasses to decorate reported errors- Parameters:
error-validatable-- Returns:
- decorated error
-