final class Hostname extends HostnamePlatform with Ordered[Hostname]
RFC1123 compliant hostname.
A hostname contains one or more labels, where each label consists of letters A-Z, a-z, digits 0-9, or a dash. A label may not start or end in a dash and may not exceed 63 characters in length. Labels are separated by periods and the overall hostname must not exceed 253 characters in length.
- Source
- Hostname.scala
- Alphabetic
- By Inheritance
- Hostname
- Ordered
- Comparable
- HostnamePlatform
- AnyRef
- Any
- by orderingToOrdered
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ->[B](y: B): (Hostname, B)
-
def
<(that: Hostname): Boolean
- Definition Classes
- Ordered
-
def
<=(that: Hostname): Boolean
- Definition Classes
- Ordered
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
>(that: Hostname): Boolean
- Definition Classes
- Ordered
-
def
>=(that: Hostname): Boolean
- Definition Classes
- Ordered
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
compare(that: Hostname): Int
- Definition Classes
- Hostname → Ordered
-
def
compareTo(that: Hostname): Int
- Definition Classes
- Ordered → Comparable
- def ensuring(cond: (Hostname) ⇒ Boolean, msg: ⇒ Any): Hostname
- def ensuring(cond: (Hostname) ⇒ Boolean): Hostname
- def ensuring(cond: Boolean, msg: ⇒ Any): Hostname
- def ensuring(cond: Boolean): Hostname
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(other: Any): Boolean
- Definition Classes
- Hostname → AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- Hostname → AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val labels: NonEmptyList[Label]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
normalized: Hostname
Converts this hostname to lower case.
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
resolve[F[_]](implicit arg0: Sync[F]): F[Option[IpAddress]]
Resolves this hostname to an ip address using the platform DNS resolver.
Resolves this hostname to an ip address using the platform DNS resolver.
If the hostname cannot be resolved, a
Noneis returned.Resolution happens synchronously when the returned task is evaluated so consider shifting the returned task to a blocking execution context.
- Definition Classes
- HostnamePlatform
-
def
resolveAll[F[_]](implicit arg0: Sync[F]): F[Option[NonEmptyList[IpAddress]]]
Resolves this hostname to all ip addresses known to the platform DNS resolver.
Resolves this hostname to all ip addresses known to the platform DNS resolver.
If the hostname cannot be resolved, a
Noneis returned.Resolution happens synchronously when the returned task is evaluated so consider shifting the returned task to a blocking execution context.
- Definition Classes
- HostnamePlatform
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
val
toString: String
- Definition Classes
- Hostname → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def →[B](y: B): (Hostname, B)
Shadowed Implicit Value Members
-
def
<(that: Hostname): Boolean
- Implicit
- This member is added by an implicit conversion from Hostname to Ordered[Hostname] performed by method orderingToOrdered in scala.math.Ordered.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(hostname: Ordered[Hostname]).<(that)
- Definition Classes
- Ordered
-
def
<=(that: Hostname): Boolean
- Implicit
- This member is added by an implicit conversion from Hostname to Ordered[Hostname] performed by method orderingToOrdered in scala.math.Ordered.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(hostname: Ordered[Hostname]).<=(that)
- Definition Classes
- Ordered
-
def
>(that: Hostname): Boolean
- Implicit
- This member is added by an implicit conversion from Hostname to Ordered[Hostname] performed by method orderingToOrdered in scala.math.Ordered.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(hostname: Ordered[Hostname]).>(that)
- Definition Classes
- Ordered
-
def
>=(that: Hostname): Boolean
- Implicit
- This member is added by an implicit conversion from Hostname to Ordered[Hostname] performed by method orderingToOrdered in scala.math.Ordered.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(hostname: Ordered[Hostname]).>=(that)
- Definition Classes
- Ordered
-
def
compare(that: Hostname): Int
- Implicit
- This member is added by an implicit conversion from Hostname to Ordered[Hostname] performed by method orderingToOrdered in scala.math.Ordered.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(hostname: Ordered[Hostname]).compare(that)
- Definition Classes
- Ordered
-
def
compareTo(that: Hostname): Int
- Implicit
- This member is added by an implicit conversion from Hostname to Ordered[Hostname] performed by method orderingToOrdered in scala.math.Ordered.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(hostname: Ordered[Hostname]).compareTo(that)
- Definition Classes
- Ordered → Comparable