org.olat.core.util.mail
Class EmailAddressValidator
java.lang.Object
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
|
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 |
VALID_PATTERN
public static final java.util.regex.Pattern VALID_PATTERN
EmailAddressValidator
public EmailAddressValidator()
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