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: 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 addParam(k: String, v: 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 not be rendered

    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: ((String, String)) ⇒ 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 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

  15. def finalize(): Unit

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

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

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

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

    Definition Classes
    Any
  20. 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

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

  22. def mapParams(f: ((String, String)) ⇒ (String, String)): Self

    Transforms each parameter by applying the specified Function

    Transforms each parameter by applying the specified Function

    f
    returns

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

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

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

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

  27. lazy val paramMap: Map[String, Seq[(String, String)]]

  28. def params(key: String): Seq[String]

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

  30. def removeAll(): Self

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

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

    vOpt

    value to replace with

    returns

    A new QueryString with the result of the replace

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

    Definition Classes
    AnyRef
  34. def toString(): String

    Definition Classes
    AnyRef → Any
  35. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped