public interface RegisteredDomain
The primary purpose of this class is to determine if domains are safe to use in various use-cases.
| Modifier and Type | Interface and Description |
|---|---|
static class |
RegisteredDomain.Type |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Optional<RegisteredDomain> |
from(java.lang.String domain)
Returns an
Optional<RegisteredDomain> representing the
registered part of the specified domain. |
java.lang.String |
name()
Returns the name of the registered domain.
|
java.lang.String |
publicSuffix()
Returns the public suffix of the registered domain.
|
RegisteredDomain.Type |
type()
Returns the type of the registered domain.
|
java.lang.String name()
RegisteredDomain.Type type()
java.lang.String publicSuffix()
static java.util.Optional<RegisteredDomain> from(java.lang.String domain)
Optional<RegisteredDomain> representing the
registered part of the specified domain.domain - the domain nameOptional<RegisteredDomain>; the Optional is
empty if the domain is unknown or not registerablejava.lang.NullPointerException - if domain is null