com.github.theon.uri

Uri

case class Uri(protocol: Option[String], user: Option[String], password: Option[String], host: Option[String], port: Option[Int], pathParts: List[String], query: Querystring, fragment: Option[String] = scala.None) extends Product with Serializable

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], host: Option[String], path: String, query: Querystring = Querystring())

  2. new Uri(protocol: Option[String], user: Option[String], password: Option[String], host: Option[String], port: Option[Int], pathParts: List[String], query: Querystring, fragment: Option[String] = scala.None)

Value Members

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

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

    Definition Classes
    Any
  3. def #(fragment: String): Uri

    Adds a fragment to the end of the uri

    Adds a fragment to the end of the uri

    fragment

    String representing the fragment

    returns

    A new Uri with this fragment

  4. final def ##(): Int

    Definition Classes
    AnyRef → Any
  5. def &(kv: (String, 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 parameter is None, then this Query String parameter will not be rendered in calls to toString or toStringRaw

    kv

    Tuple2 representing the query string parameter

    returns

    A new Uri with the new Query String parameter

  6. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  8. def ?(kv: (String, 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 parameter is None, then this Query String parameter will not be rendered in calls to toString or toStringRaw

    kv

    Tuple2 representing the query string parameter

    returns

    A new Uri with the new Query String parameter

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def clone(): AnyRef

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

    Definition Classes
    AnyRef
  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  13. val fragment: Option[String]

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

    Definition Classes
    AnyRef → Any
  15. def host(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

  16. val host: Option[String]

  17. lazy val hostParts: Seq[String]

  18. final def isInstanceOf[T0]: Boolean

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

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

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

    Definition Classes
    AnyRef
  22. def param(kv: (String, 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

    kv

    Tuple2 representing the querystring parameter

    returns

    A new Uri with the new Query String parameter

  23. def password(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

  24. val password: Option[String]

  25. def path(implicit e: Enc = PercentEncoder): 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

  26. val pathParts: List[String]

  27. def pathRaw: String

    Returns the path with no encoding taking place (e.

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

    returns

    String containing the raw path for this Uri

  28. def port(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 host to set

    returns

    a new Uri with the specified port

  29. val port: Option[Int]

  30. val protocol: Option[String]

  31. val query: Querystring

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

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

  34. def scheme(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

  35. def scheme: Option[String]

  36. def subdomain: Option[String]

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

    Definition Classes
    AnyRef
  38. def toString(implicit e: Enc = PercentEncoder): String

  39. def toString(): String

    Definition Classes
    Uri → AnyRef → Any
  40. def toStringRaw(): String

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

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

    returns

    String containing this Uri in it's raw form

  41. def user(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

  42. val user: Option[String]

  43. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Deprecated Value Members

  1. def replace(k: String, v: String): 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.

    Annotations
    @Deprecated
    Deprecated

    Use replaceParams() instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped