Trait/Object

com.netaporter.uri

Parameters

Related Docs: object Parameters | package uri

Permalink

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
Visibility
  1. Public
  2. All

Type Members

  1. abstract type Self <: Parameters

    Permalink

Abstract Value Members

  1. abstract def params: ParamSeq

    Permalink
  2. abstract def separator: String

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

    Permalink

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

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink
  8. def addParams(other: Parameters): Self

    Permalink
  9. final def asInstanceOf[T0]: T0

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

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

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

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

    Permalink

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

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

    Permalink

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

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

    Permalink

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

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

    Permalink

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

  17. def finalize(): Unit

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

    Permalink

    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

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

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

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

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

    Permalink

    Transforms each parameter name by applying the specified Function

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

    Permalink

    Transforms each parameter value by applying the specified Function

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

    Permalink

    Transforms each parameter by applying the specified Function

  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. def param(key: String): Option[String]

    Permalink
  29. lazy val paramMap: Map[String, Seq[String]]

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

    Permalink
  31. def paramsToString(e: UriEncoder, charset: String): String

    Permalink
  32. def removeAll(): Self

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

    Permalink
  34. def removeAll(k: String): Self

    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

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

    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.

    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

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

    Permalink
    Definition Classes
    AnyRef
  37. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped