DomainName

final case class DomainName(value: String)(implicit conf: UriConfig) extends Host with PunycodeSupport
Companion
object
trait Serializable
trait Product
trait Equals
trait Host
class Object
trait Matchable
class Any

Type members

Types

Value members

Concrete methods

def apexDomain: Option[String]

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

Returns

the apex domain for this domain

def longestSubdomain: Option[String]

Returns the longest subdomain for this host. E.g. for http://a.b.c.example.com returns a.b.c.example

Returns the longest subdomain for this host. E.g. for http://a.b.c.example.com returns a.b.c.example

Returns

the longest subdomain for this host

Returns this host normalized according to <a href="http://www.ietf.org/rfc/rfc3986.txt">RFC 3986</a>

Returns this host normalized according to <a href="http://www.ietf.org/rfc/rfc3986.txt">RFC 3986</a>

def publicSuffix: Option[String]

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

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

Returns

the longest public suffix for the host in this URI

def publicSuffixes: Vector[String]

Returns all public suffixes for the host in this URI. Examples include: com for www.example.com co.uk and uk for www.example.co.uk

Returns all public suffixes for the host in this URI. Examples include: com for www.example.com co.uk and uk for www.example.co.uk

Returns

all public suffixes for the host in this URI

def shortestSubdomain: Option[String]

Returns the shortest subdomain for this host. E.g. for http://a.b.c.example.com returns a

Returns the shortest subdomain for this host. E.g. for http://a.b.c.example.com returns a

Returns

the shortest subdomain for this host

def subdomain: Option[String]

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.

Returns

the second largest subdomain for this host

def subdomains: Vector[String]

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

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

Returns

all subdomains for this host

override def toStringPunycode: String
Returns

the domain name in ASCII Compatible Encoding (ACE), as defined by the ToASCII operation of <a href="http://www.ietf.org/rfc/rfc3490.txt">RFC 3490</a>.

Definition Classes

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product
def toPunycode(host: String): String
Inherited from
PunycodeSupport
override def toString: String
Definition Classes
Host -> Any
Inherited from
Host

Implicits

Implicits

implicit val conf: UriConfig