Package | Description |
---|---|
com.google.common.net |
This package contains utility methods and classes for working with net
addresses (numeric IP and domain names).
|
Modifier and Type | Method and Description |
---|---|
private InternetDomainName |
InternetDomainName.ancestor(int levels)
Returns the ancestor of the current domain at the given number of levels
"higher" (rightward) in the subdomain list.
|
InternetDomainName |
InternetDomainName.child(java.lang.String leftParts)
Creates and returns a new
InternetDomainName by prepending the
argument and a dot to the current name. |
static InternetDomainName |
InternetDomainName.from(java.lang.String domain)
Returns an instance of
InternetDomainName after lenient
validation. |
InternetDomainName |
InternetDomainName.parent()
Returns an
InternetDomainName that is the immediate ancestor of
this one; that is, the current domain with the leftmost part removed. |
InternetDomainName |
InternetDomainName.publicSuffix()
Returns the public suffix portion of the
domain name, or
null if no public suffix is present. |
InternetDomainName |
InternetDomainName.topPrivateDomain()
Returns the portion of this domain name that is one level beneath the
public suffix.
|