abstract class Host extends AnyRef

Represents a host in a URI or a Host header. The host can either be empty or be represented by an IPv4 or IPv6 address or by a host name.

Source
Host.java
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Host
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Host()

Abstract Value Members

  1. abstract def address(): String

    Returns a String representation of the address.

  2. abstract def getInetAddresses(): Iterable[InetAddress]

    Returns an Iterable of InetAddresses represented by this Host.

    Returns an Iterable of InetAddresses represented by this Host. If this Host is empty the returned Iterable will be empty. If this is an IP address the Iterable will contain this address. If this Host is represented by a host name, the name will be looked up and return all found addresses for this name.

  3. abstract def isEmpty(): Boolean
  4. abstract def isIPv4(): Boolean
  5. abstract def isIPv6(): Boolean
  6. abstract def isNamedHost(): Boolean