Class/Object

com.netaporter.uri

Uri

Related Docs: object Uri | package uri

Permalink

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
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])

    Permalink

Value Members

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

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

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

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

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

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

    Permalink

    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

    Permalink
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clone(): AnyRef

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

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

    Permalink

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

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

    Permalink

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

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

    Permalink

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

  14. def finalize(): Unit

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

    Permalink

    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

  16. val fragment: Option[String]

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

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

    Permalink
  19. lazy val hostParts: Seq[String]

    Permalink
  20. final def isInstanceOf[T0]: Boolean

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

    Permalink

    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

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

    Permalink

    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

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

    Permalink

    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

  24. def matrixParams: ParamSeq

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

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

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

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

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

    Permalink

    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

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

    Permalink
  32. val pathParts: Seq[PathPart]

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

    Permalink

    Returns the path with no encoders taking place (e.g.

    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]

    Permalink
  35. def protocol: Option[String]

    Permalink
  36. val query: QueryString

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

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

    Permalink
  39. def removeAllParams(): Uri

    Permalink

    Removes all Query String parameters

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

    Permalink

    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

  41. def removeParams(k: String): Uri

    Permalink

    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

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

    Permalink

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

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

    Permalink

    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

  44. val scheme: Option[String]

    Permalink
  45. def subdomain: Option[String]

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

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

    Permalink
  48. def toString(): String

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

    Permalink

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

    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

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

    Permalink

    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

  51. val user: Option[String]

    Permalink
  52. final def wait(): Unit

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

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

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

    Permalink

    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

  56. def withHost(host: String): Uri

    Permalink

    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

  57. def withPassword(password: String): Uri

    Permalink

    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

  58. def withPort(port: Int): Uri

    Permalink

    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

  59. def withScheme(scheme: String): Uri

    Permalink

    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

  60. def withUser(user: String): Uri

    Permalink

    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