final case class DomainName(value: String)(implicit conf: UriConfig = UriConfig.default) extends Host with PunycodeSupport with Product with Serializable
- Alphabetic
- By Inheritance
- DomainName
- Serializable
- Serializable
- Product
- Equals
- PunycodeSupport
- Host
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new DomainName(value: String)(implicit conf: UriConfig = UriConfig.default)
Type Members
-
type
Self = DomainName
- Definition Classes
- DomainName → Host
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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
forwww.example.com
example.co.uk
forwww.example.co.uk
- returns
the apex domain for this domain
- Definition Classes
- DomainName → Host
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
implicit
val
conf: UriConfig
- Definition Classes
- DomainName → Host
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
longestSubdomain: Option[String]
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
- returns
the longest subdomain for this host
- Definition Classes
- DomainName → Host
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
normalize: Self
Returns this host normalized according to RFC 3986
Returns this host normalized according to RFC 3986
- Definition Classes
- DomainName → Host
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
publicSuffix: Option[String]
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
forwww.example.com
co.uk
forwww.example.co.uk
- returns
the longest public suffix for the host in this URI
- Definition Classes
- DomainName → Host
-
def
publicSuffixes: Vector[String]
Returns all public suffixes for the host in this URI.
Returns all public suffixes for the host in this URI. Examples include:
com
forwww.example.com
co.uk
anduk
forwww.example.co.uk
- returns
all public suffixes for the host in this URI
- Definition Classes
- DomainName → Host
-
def
shortestSubdomain: Option[String]
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
- returns
the shortest subdomain for this host
- Definition Classes
- DomainName → 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 returnNone
forhttp://example.com
.- returns
the second largest subdomain for this host
- Definition Classes
- DomainName → Host
-
def
subdomains: Vector[String]
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
- returns
all subdomains for this host
- Definition Classes
- DomainName → Host
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toPunycode(host: String): String
- Definition Classes
- PunycodeSupport
-
def
toString(): String
- Definition Classes
- Host → AnyRef → Any
-
def
toStringPunycode: String
- returns
the domain name in ASCII Compatible Encoding (ACE), as defined by the ToASCII operation of RFC 3490.
- Definition Classes
- DomainName → Host
-
val
value: String
- Definition Classes
- DomainName → Host
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
withConfig(config: UriConfig): DomainName
Copies this Host but with a new UriConfig
Copies this Host but with a new UriConfig
- config
the new config to use
- returns
a new Host with the specified config
- Definition Classes
- DomainName → Host
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated