org.riotfamily.common.web.util
Class EmailValidationUtils
java.lang.Object
org.riotfamily.common.web.util.EmailValidationUtils
public final class EmailValidationUtils
- extends Object
Utility class to perform basic email address syntax checks. The
implementation is based on the jakarta-commons EmailValidator. Oro-Matcher
dependencies have been removed (now using java.util.regex) and comments
are no longer processed, i.e. addresses containing comments will be reported
as invalid.
Method Summary |
static boolean |
isValid(String email)
Checks if a field has a valid e-mail address. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
isValid
public static boolean isValid(String email)
Checks if a field has a valid e-mail address.
- Parameters:
email
- The value validation is being performed on.
A null
value is considered invalid.