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: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

    Definition Classes
    Any
  6. def addMatrixParam(k: String, v: String): Uri

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

  8. 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

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

  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def clone(): AnyRef

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

    Definition Classes
    AnyRef
  13. def filterQuery(f: ((String, Option[String])) ⇒ 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

  14. 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

  15. 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

  16. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def flatMapQuery(f: ((String, Option[String])) ⇒ GenTraversableOnce[(String, Option[String])]): 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

  18. val fragment: Option[String]

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

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

  21. lazy val hostParts: Seq[String]

  22. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  23. def mapQuery(f: ((String, Option[String])) ⇒ (String, Option[String])): 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

  24. 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

  25. 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

  26. def matrixParams: ParamSeq

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

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

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

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

  31. 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

  32. def pathPart(name: String): PathPart

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

  34. val pathParts: Seq[PathPart]

  35. 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

  36. val port: Option[Int]

  37. def protocol: Option[String]

  38. def publicSuffix: Option[String]

  39. def publicSuffixes: Seq[String]

  40. val query: QueryString

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

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

  43. def removeAllParams(): Uri

    Removes all Query String parameters

    Removes all Query String parameters

    returns

  44. def removeParams(a: Seq[String]): Uri

    Removes all Query String parameters with the specified key contained in the a (Array)

    Removes all Query String parameters with the specified key contained in the a (Array)

    a

    an Array of Keys for the Query String parameter(s) to remove

    returns

  45. 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

  46. def replaceAllParams(params: (String, Option[String])*): Uri

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

  47. 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

  48. val scheme: Option[String]

  49. def subdomain: Option[String]

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

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

  52. def toString(): String

    Definition Classes
    Uri → AnyRef → Any
  53. 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

  54. 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

  55. val user: Option[String]

  56. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  59. 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

  60. 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

  61. 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

  62. 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

  63. 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

  64. 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