spray.http

Uri

Related Docs: class Uri | package http

object Uri extends Serializable

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Uri
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

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

  2. sealed abstract class Host extends Renderable

  3. case class IPv4Host(address: String) extends NonEmptyHost with Product with Serializable

  4. case class IPv6Host(address: String) extends NonEmptyHost with Product with Serializable

  5. case class NamedHost(address: String) extends NonEmptyHost with Product with Serializable

  6. sealed abstract class NonEmptyHost extends Host with ToStringRenderable

  7. sealed trait ParsingMode extends AnyRef

  8. sealed abstract class Path extends ToStringRenderable

  9. sealed abstract class Query extends LinearSeq[(String, String)] with LinearSeqOptimized[(String, String), Query] with ToStringRenderable

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. val /: Uri

  4. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  5. object Authority extends Serializable

  6. object Empty extends Uri

  7. object Host

  8. object ParsingMode

  9. object Path

  10. object Query

  11. def apply(scheme: String = "", authority: Authority = Authority.Empty, path: Path = Path.Empty, query: Query = Query.Empty, fragment: Option[String] = None): Uri

    Creates a new Uri instance from the given components.

    Creates a new Uri instance from the given components. All components are verified and normalized. If the given combination of components does not constitute a valid URI as defined by http://tools.ietf.org/html/rfc3986 the method throws an IllegalUriException.

  12. def apply(input: ParserInput, charset: Charset, mode: ParsingMode): Uri

    Parses a valid URI string into a normalized URI reference as defined by http://tools.ietf.org/html/rfc3986#section-4.1.

    Parses a valid URI string into a normalized URI reference as defined by http://tools.ietf.org/html/rfc3986#section-4.1. Percent-encoded octets are decoded using the given charset (where specified by the RFC). If strict is false, accepts unencoded visible 7-bit ASCII characters in addition to the RFC. If the given string is not a valid URI the method throws an IllegalUriException.

  13. def apply(input: ParserInput, mode: ParsingMode): Uri

    Parses a valid URI string into a normalized URI reference as defined by http://tools.ietf.org/html/rfc3986#section-4.1.

    Parses a valid URI string into a normalized URI reference as defined by http://tools.ietf.org/html/rfc3986#section-4.1. Percent-encoded octets are decoded using the given charset (where specified by the RFC). If strict is false, accepts unencoded visible 7-bit ASCII characters in addition to the RFC. If the given string is not a valid URI the method throws an IllegalUriException.

  14. def apply(input: ParserInput): Uri

    Parses a valid URI string into a normalized URI reference as defined by http://tools.ietf.org/html/rfc3986#section-4.1.

    Parses a valid URI string into a normalized URI reference as defined by http://tools.ietf.org/html/rfc3986#section-4.1. Percent-encoded octets are decoded using the given charset (where specified by the RFC). Accepts unencoded visible 7-bit ASCII characters in addition to the rfc. If the given string is not a valid URI the method throws an IllegalUriException.

  15. implicit def apply(input: String): Uri

    Parses a valid URI string into a normalized URI reference as defined by http://tools.ietf.org/html/rfc3986#section-4.1.

    Parses a valid URI string into a normalized URI reference as defined by http://tools.ietf.org/html/rfc3986#section-4.1. Percent-encoded octets are UTF-8 decoded. Accepts unencoded visible 7-bit ASCII characters in addition to the RFC. If the given string is not a valid URI the method throws an IllegalUriException.

  16. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  17. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. val defaultPorts: Map[String, Int]

  19. def effectiveHttpRequestUri(scheme: String, host: Host, port: Int, path: Path, query: Query, fragment: Option[String], securedConnection: Boolean, hostHeaderHost: Host, hostHeaderPort: Int, defaultAuthority: Authority = Authority.Empty): Uri

    Converts a set of URI components to an "effective HTTP request URI" as defined by http://tools.ietf.org/html/draft-ietf-httpbis-p1-messaging-22#section-5.5.

  20. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  22. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. def from(scheme: String = "", userinfo: String = "", host: String = "", port: Int = 0, path: String = "", query: Query = Query.Empty, fragment: Option[String] = None, mode: ParsingMode = Uri.ParsingMode.Relaxed): Uri

    Creates a new Uri instance from the given components.

    Creates a new Uri instance from the given components. All components are verified and normalized. If the given combination of components does not constitute a valid URI as defined by http://tools.ietf.org/html/rfc3986 the method throws an IllegalUriException.

  24. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  25. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  26. def httpScheme(securedConnection: Boolean = false): String

  27. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  28. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  29. def normalize(uri: ParserInput, charset: Charset = UTF8, mode: ParsingMode = Uri.ParsingMode.Relaxed): String

    Normalizes the given URI string by performing the following normalizations: - the scheme and host components are converted to lowercase - a potentially existing port component is removed if it matches one of the defined default ports for the scheme - percent-encoded octets are decoded if allowed, otherwise they are converted to uppercase hex notation - . and .. path segments are resolved as far as possible

    Normalizes the given URI string by performing the following normalizations: - the scheme and host components are converted to lowercase - a potentially existing port component is removed if it matches one of the defined default ports for the scheme - percent-encoded octets are decoded if allowed, otherwise they are converted to uppercase hex notation - . and .. path segments are resolved as far as possible

    If strict is false, accepts unencoded visible 7-bit ASCII characters in addition to the RFC. If the given string is not a valid URI the method throws an IllegalUriException.

  30. final def notify(): Unit

    Definition Classes
    AnyRef
  31. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  32. def parseAbsolute(input: ParserInput, charset: Charset = UTF8, mode: ParsingMode = Uri.ParsingMode.Relaxed): Uri

    Parses a string into a normalized absolute URI as defined by http://tools.ietf.org/html/rfc3986#section-4.3.

    Parses a string into a normalized absolute URI as defined by http://tools.ietf.org/html/rfc3986#section-4.3. Percent-encoded octets are decoded using the given charset (where specified by the RFC). If strict is false, accepts unencoded visible 7-bit ASCII characters in addition to the RFC. If the given string is not a valid URI the method throws an IllegalUriException.

  33. def parseAndResolve(string: ParserInput, base: Uri, charset: Charset = UTF8, mode: ParsingMode = Uri.ParsingMode.Relaxed): Uri

    Parses a string into a normalized URI reference that is immediately resolved against the given base URI as defined by http://tools.ietf.org/html/rfc3986#section-5.2.

    Parses a string into a normalized URI reference that is immediately resolved against the given base URI as defined by http://tools.ietf.org/html/rfc3986#section-5.2. Note that the given base Uri must be absolute (i.e. define a scheme). Percent-encoded octets are decoded using the given charset (where specified by the RFC). If strict is false, accepts unencoded visible 7-bit ASCII characters in addition to the RFC. If the given string is not a valid URI the method throws an IllegalUriException.

  34. def parseHttpRequestTarget(requestTarget: ParserInput, charset: Charset = UTF8, mode: ParsingMode = Uri.ParsingMode.Relaxed): Uri

    Parses the given string into an HTTP request target URI as defined by http://tools.ietf.org/html/draft-ietf-httpbis-p1-messaging-22#section-5.3.

    Parses the given string into an HTTP request target URI as defined by http://tools.ietf.org/html/draft-ietf-httpbis-p1-messaging-22#section-5.3. If strict is false, accepts unencoded visible 7-bit ASCII characters in addition to the RFC. If the given string is not a valid URI the method throws an IllegalUriException.

  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  36. def toString(): String

    Definition Classes
    AnyRef → Any
  37. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped