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

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

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)
See Also:
AbstractValidator.resourceKey(wicket.markup.html.form.FormComponent)


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