com.netaporter.uri

Parameters

trait Parameters extends AnyRef

Trait use to represent a list of key value parameters, such as query string parameters and matrix parameters

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Parameters
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. abstract type Self <: Parameters

Abstract Value Members

  1. abstract def params: ParamSeq

  2. abstract def separator: String

  3. abstract def withParams(params: ParamSeq): Self

Concrete 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 addParam(k: String): Self

    Adds a new parameter key with no value.

    Adds a new parameter key with no value. If the value for the parameter is None, then this parameter will not be rendered

    returns

    A new instance with the new parameter added

  5. def addParam(k: String, v: Option[String]): Self

    Adds a new parameter key-value pair.

    Adds a new parameter key-value pair. If the value for the parameter is None, then this parameter will be rendered without an = sign (use Some("") if this is not what you want).

    returns

    A new instance with the new parameter added

  6. def addParam(k: String, v: String): Self

    Adds a new parameter key-value pair.

    Adds a new parameter key-value pair.

    returns

    A new instance with the new parameter added

  7. def addParams(kvs: ParamSeq): Self

  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 equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def filterParams(f: (Param) ⇒ Boolean): Self

    Filters out just the parameters for which the provided function holds true

    Filters out just the parameters for which the provided function holds true

    f
    returns

  13. def filterParamsNames(f: (String) ⇒ Boolean): Self

    Filters out just the parameters for which the provided function holds true when applied to the parameter name

    Filters out just the parameters for which the provided function holds true when applied to the parameter name

    f
    returns

  14. def filterParamsOptions(f: (Option[String]) ⇒ Boolean): Self

    Filters out just the parameters for which the provided function holds true when applied to the parameter value

    Filters out just the parameters for which the provided function holds true when applied to the parameter value

    f
    returns

  15. def filterParamsValues(f: (String) ⇒ Boolean): Self

    Filters out just the parameters for which the provided function holds true when applied to the parameter value

    Filters out just the parameters for which the provided function holds true when applied to the parameter value

    f
    returns

  16. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def flatMapParams(f: (Param) ⇒ GenTraversableOnce[Param]): Self

    Transforms each parameter by applying the specified Function

    Transforms each parameter by applying the specified Function

    f

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

    returns

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

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

    Definition Classes
    AnyRef → Any
  20. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  21. def mapParamNames(f: (String) ⇒ String): Self

    Transforms each parameter name by applying the specified Function

    Transforms each parameter name by applying the specified Function

    f
    returns

  22. def mapParamValues(f: (String) ⇒ String): Self

    Transforms each parameter value by applying the specified Function

    Transforms each parameter value by applying the specified Function

    f
    returns

  23. def mapParams(f: (Param) ⇒ Param): Self

    Transforms each parameter by applying the specified Function

    Transforms each parameter by applying the specified Function

    f
    returns

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

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

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

    Definition Classes
    AnyRef
  27. def param(key: String): Option[String]

  28. lazy val paramMap: Map[String, Seq[String]]

  29. def params(key: String): Seq[Option[String]]

  30. def paramsToString(e: UriEncoder, charset: String): String

  31. def removeAll(): Self

  32. def removeAll(a: Seq[String]): Self

  33. def removeAll(k: String): Self

    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

  34. def replaceAll(k: String, vOpt: Option[Any]): Self

    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.

    k

    Key for the Query String parameter(s) to replace

    vOpt

    value to replace with

    returns

    A new QueryString with the result of the replace

  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 AnyRef

Inherited from Any

Ungrouped