wicket.extensions.markup.html.form.validation
Class RfcCompliantEmailAddressPatternValidator

java.lang.Object
  extended by wicket.markup.html.form.validation.AbstractValidator
      extended by wicket.markup.html.form.validation.StringValidator
          extended by wicket.markup.html.form.validation.PatternValidator
              extended by wicket.extensions.markup.html.form.validation.RfcCompliantEmailAddressPatternValidator
All Implemented Interfaces:
java.io.Serializable, wicket.markup.html.form.validation.IValidator

public class RfcCompliantEmailAddressPatternValidator
extends wicket.markup.html.form.validation.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 EmailAddressPatternValidator

Author:
Frank Bille
See Also:
Perl Regex implementation of RFC 822, RFC 822, Serialized Form

Constructor Summary
protected RfcCompliantEmailAddressPatternValidator()
           
 
Method Summary
static RfcCompliantEmailAddressPatternValidator getInstance()
           
protected  java.lang.String resourceKey(wicket.markup.html.form.FormComponent formComponent)
           
 
Methods inherited from class wicket.markup.html.form.validation.PatternValidator
getPattern, messageModel, onValidate, toString
 
Methods inherited from class wicket.markup.html.form.validation.StringValidator
exactLength, lengthBetween, maximumLength, minimumLength, validate
 
Methods inherited from class wicket.markup.html.form.validation.AbstractValidator
error, error, error, error
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RfcCompliantEmailAddressPatternValidator

protected RfcCompliantEmailAddressPatternValidator()
Method Detail

getInstance

public static RfcCompliantEmailAddressPatternValidator getInstance()
Returns:
Instance of RFC compliant emailaddress validator

resourceKey

protected java.lang.String resourceKey(wicket.markup.html.form.FormComponent formComponent)
Overrides:
resourceKey in class wicket.markup.html.form.validation.PatternValidator
See Also:
AbstractValidator.resourceKey(wicket.markup.html.form.FormComponent)


Copyright © 2004-2008 Wicket developers. All Rights Reserved.