IpV6

io.lemonlabs.uri.IpV6
See theIpV6 companion object
final case class IpV6(piece1: Char, piece2: Char, piece3: Char, piece4: Char, piece5: Char, piece6: Char, piece7: Char, piece8: Char)(implicit conf: UriConfig) extends Host

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Host
class Object
trait Matchable
class Any

Members list

Concise view

Type members

Types

type Self = IpV6

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

Attributes

Returns:

the apex domain for this domain

def hexPieces: Vector[String]
def longestSubdomain: Option[String]

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

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

Attributes

Returns:

the longest subdomain for this URL's host

Returns this host with its character case normalized according to RFC 3986

Returns this host with its character case normalized according to RFC 3986

Attributes

def piece1Int: Int
def piece2Int: Int
def piece3Int: Int
def piece4Int: Int
def piece5Int: Int
def piece6Int: Int
def piece7Int: Int
def piece8Int: Int
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

Attributes

Returns:

the longest public suffix for the host in this URI

def publicSuffixes: Vector[String]

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

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

Attributes

Returns:

all public suffixes for the host in this URI

def shortestSubdomain: Option[String]

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

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

Attributes

Returns:

the shortest subdomain for this URL's host

def subdomain: Option[String]

Returns the second largest subdomain for this URL's host.

Returns the second largest subdomain for this URL's 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.

Attributes

Returns:

the second largest subdomain for this URL's host

def subdomains: Vector[String]

Returns all subdomains for this URL's 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 URL's host. E.g. for http://a.b.c.example.com returns a, a.b, a.b.c and a.b.c.example

Attributes

Returns:

all subdomains for this URL's host

def value: String
def withConfig(config: UriConfig): IpV6

Copies this Host but with a new UriConfig

Copies this Host but with a new UriConfig

Attributes

config

the new config to use

Returns:

a new Host with the specified config

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns:

a string representation of the object.

Definition Classes
Host -> Any
Inherited from:
Host
def toStringPunycode: String

Attributes

Returns:

the domain name in ASCII Compatible Encoding (ACE), as defined by the ToASCII operation of RFC 3490.

Inherited from:
Host

Concrete fields

val pieces: Vector[Char]

Implicits

Implicits

implicit val conf: UriConfig