Packages

final case class Authority(host: Host, port: Int = 0, userinfo: String = "") extends javadsl.model.Authority with Product with Serializable

port

A port number that may be 0 to signal the default port of for scheme. In general what you want is not the value of this field but Uri.effectivePort.

userinfo

The percent decoded userinfo. According to https://tools.ietf.org/html/rfc3986#section-3.2.1 the "user:password" syntax is deprecated and implementations are encouraged to ignore any characters after the colon (:). Therefore, it is not guaranteed that future versions of this class will preserve full userinfo between parsing and rendering (even if it might do so right now).

Source
Uri.scala
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Authority
  2. Serializable
  3. Product
  4. Equals
  5. Authority
  6. AnyRef
  7. 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 Authority(host: Host, port: Int = 0, userinfo: String = "")

    port

    A port number that may be 0 to signal the default port of for scheme. In general what you want is not the value of this field but Uri.effectivePort.

    userinfo

    The percent decoded userinfo. According to https://tools.ietf.org/html/rfc3986#section-3.2.1 the "user:password" syntax is deprecated and implementations are encouraged to ignore any characters after the colon (:). Therefore, it is not guaranteed that future versions of this class will preserve full userinfo between parsing and rendering (even if it might do so right now).

Value Members

  1. val host: Host

    Host in a URI

    Host in a URI

    Definition Classes
    AuthorityAuthority
  2. def isEmpty: Boolean
  3. def nonEmpty: Boolean
  4. def normalizedFor(scheme: String): Authority
  5. def normalizedForHttp(encrypted: Boolean = false): Authority
  6. val port: Int

    A port number that may be 0 to signal the default port of for scheme.

    A port number that may be 0 to signal the default port of for scheme. In general what you want is not the value of this field but Uri::port::

    Definition Classes
    AuthorityAuthority
  7. def productElementNames: Iterator[String]
    Definition Classes
    Product
  8. def toString(): String
    Definition Classes
    Authority → AnyRef → Any
  9. val userinfo: String

    The percent decoded userinfo.

    The percent decoded userinfo. According to https://tools.ietf.org/html/rfc3986#section-3.2.1 the "user:password" syntax is deprecated and implementations are encouraged to ignore any characters after the colon (:). Therefore, it is not guaranteed that future versions of this class will preserve full userinfo between parsing and rendering (even if it might do so right now).

    Definition Classes
    AuthorityAuthority