org.apache.wicket.extensions.validation.validator
Class RfcCompliantEmailAddressValidator
java.lang.Object
org.apache.wicket.validation.validator.AbstractValidator
org.apache.wicket.validation.validator.StringValidator
org.apache.wicket.validation.validator.PatternValidator
org.apache.wicket.extensions.validation.validator.RfcCompliantEmailAddressValidator
- All Implemented Interfaces:
- java.io.Serializable, IClusterable, INullAcceptingValidator, IValidator
public class RfcCompliantEmailAddressValidator
- extends PatternValidator
Validator for validating email addresses according to the RFC 822. This validator uses the
regular expression taken from the Perl implementation of RFC 822.
PLEATE NOTE! Only use this validator if you really need it. The regex used is very big and
generates a allocates 1-2Kb of memory per session.
Most users will be satisfied with the EmailAddressValidator
- Author:
- Frank Bille
- See Also:
- Perl Regex implementation *
of RFC 822< /a>,
RFC 822< /a>,
Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RfcCompliantEmailAddressValidator
protected RfcCompliantEmailAddressValidator()
getInstance
public static RfcCompliantEmailAddressValidator getInstance()
- Returns:
- Instance of RFC compliant emailaddress validator
onValidate
protected void onValidate(IValidatable validatable)
- Description copied from class:
PatternValidator
- Checks a value against this
PatternValidator
's Pattern
.
- Overrides:
onValidate
in class PatternValidator
- Parameters:
validatable
- the IValidatable
to check
Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.