public final class DomainNameUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isValidDomainAddress(java.lang.String domain)
Checks validity of a domain name.
|
static boolean |
isValidEmailDomainAddress(java.lang.String domain)
Checks the validity of the domain name used in an email.
|
public static boolean isValidEmailDomainAddress(java.lang.String domain)
domain
- domain to check for validitytrue
if the provided string is a valid domain, false
otherwisepublic static boolean isValidDomainAddress(java.lang.String domain)
domain
- the domain to check for validitytrue
if the provided string is a valid domain, false
otherwise