org.olat.core.util.mail
Class EmailAddressValidator

java.lang.Object
  extended by org.olat.core.util.mail.EmailAddressValidator

public class EmailAddressValidator
extends java.lang.Object

Description:
This validator checks if a given email address is valid against the RFC specs. This code has been written and published by Les Hazlewood.

Please note the copyright information below

Author:
gnaegi
See Also:
for more information.

Initial Date: 12.11.2009


Field Summary
static java.util.regex.Pattern VALID_PATTERN
           
 
Constructor Summary
EmailAddressValidator()
           
 
Method Summary
static boolean isValidEmailAddress(java.lang.String mailAddress)
          Check if the given mail address is valid according to RFC specifications.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VALID_PATTERN

public static final java.util.regex.Pattern VALID_PATTERN
Constructor Detail

EmailAddressValidator

public EmailAddressValidator()
Method Detail

isValidEmailAddress

public static boolean isValidEmailAddress(java.lang.String mailAddress)
Check if the given mail address is valid according to RFC specifications.

Parameters:
mailAddress -
Returns:
true: valid email address; false: not a valid email address