com.netaporter.uri

Uri

case class Uri(scheme: Option[String], user: Option[String], password: Option[String], host: Option[String], port: Option[Int], pathParts: Seq[PathPart], query: QueryString, fragment: Option[String]) extends Product with Serializable

http://tools.ietf.org/html/rfc3986

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

Instance Constructors

  1. new Uri(scheme: Option[String], user: Option[String], password: Option[String], host: Option[String], port: Option[Int], pathParts: Seq[PathPart], query: QueryString, fragment: Option[String])

Value Members

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

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

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. def addMatrixParam(k: String, v: String): Uri

  5. def addMatrixParam(pp: String, k: String, v: String): Uri

  6. def addParam(name: String, value: Any): Uri

    Adds a new Query String parameter key-value pair.

    Adds a new Query String parameter key-value pair. If the value for the Query String parmeter is None, then this Query String parameter will not be rendered in calls to toString or toStringRaw

    name

    name of the parameter

    value

    value for the parameter

    returns

    A new Uri with the new Query String parameter

  7. def addParams(kvs: Seq[(String, Any)]): Uri

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def filterQuery(f: (Param) ⇒ Boolean): Uri

    Removes any Query String Parameters that return false when applied to the given Function

    Removes any Query String Parameters that return false when applied to the given Function

    f
    returns

  12. def filterQueryNames(f: (String) ⇒ Boolean): Uri

    Removes any Query String Parameters that return false when their name is applied to the given Function

    Removes any Query String Parameters that return false when their name is applied to the given Function

    f
    returns

  13. def filterQueryValues(f: (String) ⇒ Boolean): Uri

    Removes any Query String Parameters that return false when their value is applied to the given Function

    Removes any Query String Parameters that return false when their value is applied to the given Function

    f
    returns

  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def flatMapQuery(f: (Param) ⇒ GenTraversableOnce[Param]): Uri

    Transforms the Query String by applying the specified Function to each Query String Parameter

    Transforms the Query String by applying the specified Function to each Query String Parameter

    f

    A function that returns a collection of Parameters when applied to each parameter

    returns

  16. val fragment: Option[String]

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

    Definition Classes
    AnyRef → Any
  18. val host: Option[String]

  19. lazy val hostParts: Seq[String]

  20. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  21. def mapQuery(f: (Param) ⇒ Param): Uri

    Transforms the Query String by applying the specified Function to each Query String Parameter

    Transforms the Query String by applying the specified Function to each Query String Parameter

    f

    A function that returns a new Parameter when applied to each Parameter

    returns

  22. def mapQueryNames(f: (String) ⇒ String): Uri

    Transforms the Query String by applying the specified Function to each Query String Parameter name

    Transforms the Query String by applying the specified Function to each Query String Parameter name

    f

    A function that returns a new Parameter name when applied to each Parameter name

    returns

  23. def mapQueryValues(f: (String) ⇒ String): Uri

    Transforms the Query String by applying the specified Function to each Query String Parameter value

    Transforms the Query String by applying the specified Function to each Query String Parameter value

    f

    A function that returns a new Parameter value when applied to each Parameter value

    returns

  24. def matrixParams: ParamSeq

  25. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  26. final def notify(): Unit

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

    Definition Classes
    AnyRef
  28. val password: Option[String]

  29. def path(implicit c: UriConfig = UriConfig.default): String

    Returns the encoded path.

    Returns the encoded path. By default non ASCII characters in the path are percent encoded.

    returns

    String containing the path for this Uri

  30. def pathPart(name: String): PathPart

  31. def pathPartOption(name: String): Option[PathPart]

  32. val pathParts: Seq[PathPart]

  33. def pathRaw(implicit c: UriConfig = UriConfig.default): String

    Returns the path with no encoders taking place (e.

    Returns the path with no encoders taking place (e.g. non ASCII characters will not be percent encoded)

    returns

    String containing the raw path for this Uri

  34. val port: Option[Int]

  35. def protocol: Option[String]

  36. val query: QueryString

  37. def queryString(implicit c: UriConfig = UriConfig.default): String

  38. def queryStringRaw(implicit c: UriConfig = UriConfig.default): String

  39. def removeAllParams(): Uri

    Removes all Query String parameters

    Removes all Query String parameters

    returns

  40. def removeParams(k: String): Uri

    Removes all Query String parameters with the specified key

    Removes all Query String parameters with the specified key

    k

    Key for the Query String parameter(s) to remove

    returns

  41. def replaceAllParams(params: Param*): Uri

    Replaces the all existing Query String parameters with a new set of query params

  42. def replaceParams(k: String, v: Any): Uri

    Replaces the all existing Query String parameters with the specified key with a single Query String parameter with the specified value.

    Replaces the all existing Query String parameters with the specified key with a single Query String parameter with the specified value. If the value passed in is None, then all Query String parameters with the specified key are removed

    k

    Key for the Query String parameter(s) to replace

    v

    value to replace with

    returns

    A new Uri with the result of the replace

  43. val scheme: Option[String]

  44. def subdomain: Option[String]

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

    Definition Classes
    AnyRef
  46. def toString(implicit c: UriConfig = UriConfig.default): String

  47. def toString(): String

    Definition Classes
    Uri → AnyRef → Any
  48. def toStringRaw(implicit config: UriConfig = UriConfig.default): String

    Returns the string representation of this Uri with no encoders taking place (e.

    Returns the string representation of this Uri with no encoders taking place (e.g. non ASCII characters will not be percent encoded)

    returns

    String containing this Uri in it's raw form

  49. def toURI(implicit c: UriConfig = UriConfig.conservative): URI

    Converts to a Java URI.

    Converts to a Java URI. This involves a toString + URI.parse because the specific URI constructors do not deal properly with encoded elements

    returns

    a URI matching this Uri

  50. val user: Option[String]

  51. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  54. def withFragment(fragment: String): Uri

    Copies this Uri but with the fragment set as the given value.

    Copies this Uri but with the fragment set as the given value.

    fragment

    the new fragment to set

    returns

    a new Uri with the specified fragment

  55. def withHost(host: String): Uri

    Copies this Uri but with the host set as the given value.

    Copies this Uri but with the host set as the given value.

    host

    the new host to set

    returns

    a new Uri with the specified host

  56. def withPassword(password: String): Uri

    Copies this Uri but with the password set as the given value.

    Copies this Uri but with the password set as the given value.

    password

    the new password to set

    returns

    a new Uri with the specified password

  57. def withPort(port: Int): Uri

    Copies this Uri but with the port set as the given value.

    Copies this Uri but with the port set as the given value.

    port

    the new port to set

    returns

    a new Uri with the specified port

  58. def withScheme(scheme: String): Uri

    Copies this Uri but with the scheme set as the given value.

    Copies this Uri but with the scheme set as the given value.

    scheme

    the new scheme to set

    returns

    a new Uri with the specified scheme

  59. def withUser(user: String): Uri

    Copies this Uri but with the user set as the given value.

    Copies this Uri but with the user set as the given value.

    user

    the new user to set

    returns

    a new Uri with the specified user

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped