final class IDN extends Host
Internationalized domain name, as specified by RFC3490 and RFC5891.
This type models internationalized hostnames. An IDN provides unicode labels, a unicode string form, and an ASCII hostname form.
A well formed IDN consists of one or more labels separated by dots. Each label may contain unicode characters as long as the converted ASCII form meets the requirements of RFC1123 (e.g., 63 or fewer characters and no leading or trailing dash). A dot is represented as an ASCII period or one of the unicode dots: full stop, ideographic full stop, fullwidth full stop, halfwidth ideographic full stop.
The toString
method returns the IDN in the form in which it was constructed. Sometimes it is useful to
normalize the IDN -- converting all dots to an ASCII period and converting all labels to lowercase.
Note: equality and comparison of IDNs is case-sensitive. Consider comparing normalized toString values for a more lenient notion of equality.
- Source
- Host.scala
- Alphabetic
- By Inheritance
- IDN
- Host
- Ordered
- Comparable
- HostPlatform
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def <(that: Host): Boolean
- Definition Classes
- Ordered
- def <=(that: Host): Boolean
- Definition Classes
- Ordered
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def >(that: Host): Boolean
- Definition Classes
- Ordered
- def >=(that: Host): Boolean
- Definition Classes
- Ordered
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def compare(that: Host): Int
- Definition Classes
- Host → Ordered
- def compareTo(that: Host): Int
- Definition Classes
- Ordered → Comparable
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(other: Any): Boolean
- Definition Classes
- IDN → AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- IDN → AnyRef → Any
- val hostname: Hostname
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val labels: List[Label]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def normalized: IDN
Converts this IDN to lower case and replaces dots with ASCII periods.
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val toString: String
- Definition Classes
- IDN → AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()