Example usage for Java com.google.common.net InternetDomainName fields, constructors, methods, implement or subclass
The text is from its open source code.
String | name The full domain name, converted to lower case. |
ImmutableList | parts The parts of the domain name, converted to lower case. |
boolean | equals(@Nullable Object object) Equality testing is based on the text supplied by the caller, after normalization as described in the class documentation. |
InternetDomainName | from(String domain) Returns an instance of InternetDomainName after lenient validation. |
boolean | hasParent() Indicates whether this domain is composed of two or more parts. |
boolean | hasPublicSuffix() Indicates whether this domain name ends in a #isPublicSuffix() public suffix , including if it is a public suffix itself. |
boolean | isPublicSuffix() Indicates whether this domain name represents a public suffix, as defined by the Mozilla Foundation's Public Suffix List (PSL). |
boolean | isTopPrivateDomain() Indicates whether this domain name is composed of exactly one subdomain component followed by a #isPublicSuffix() public suffix . |
boolean | isUnderPublicSuffix() Indicates whether this domain name ends in a #isPublicSuffix() public suffix , while not being a public suffix itself. |
boolean | isValid(String name) Indicates whether the argument is a syntactically valid domain name using lenient validation. |
InternetDomainName | parent() Returns an InternetDomainName that is the immediate ancestor of this one; that is, the current domain with the leftmost part removed. |
InternetDomainName | publicSuffix() Returns the #isPublicSuffix() public suffix portion of the domain name, or null if no public suffix is present. |
InternetDomainName | topPrivateDomain() Returns the portion of this domain name that is one level beneath the public suffix. |
String | toString() Returns the domain name, normalized to all lower case. |