Returns the apex domain for this Host.
Returns the apex domain for this Host.
The apex domain is constructed from the public suffix prepended with the immediately preceding dot segment.
Examples include:
example.com
for www.example.com
example.co.uk
for www.example.co.uk
the apex domain for this domain
Returns the longest subdomain for this host.
Returns the longest subdomain for this host. E.g. for http://a.b.c.example.com returns a.b.c.example
the longest subdomain for this host
Returns the longest public suffix for the host in this URI.
Returns the longest public suffix for the host in this URI. Examples include:
com
for www.example.com
co.uk
for www.example.co.uk
the longest public suffix for the host in this URI
Returns all longest public suffixes for the host in this URI.
Returns all longest public suffixes for the host in this URI. Examples include:
com
for www.example.com
co.uk
and uk
for www.example.co.uk
all public suffixes for the host in this URI
Returns the shortest subdomain for this host.
Returns the shortest subdomain for this host. E.g. for http://a.b.c.example.com returns a
the shortest subdomain for this host
Returns the second largest subdomain in this host.
Returns the second largest subdomain in this host.
E.g. for http://a.b.c.example.com returns a.b.c
Note: In the event there is only one subdomain (i.e. the host is the apex domain), this method returns None
.
E.g. This method will return None
for http://example.com
.
the second largest subdomain for this host
Returns all subdomains for this host.
Returns all subdomains for this host. E.g. for http://a.b.c.example.com returns a, a.b, a.b.c and a.b.c.example
all subdomains for this host
the domain name in ASCII Compatible Encoding (ACE), as defined by the ToASCII operation of RFC 3490.