trait Parameters extends AnyRef
Trait use to represent a list of key value parameters, such as query string parameters
- Alphabetic
- By Inheritance
- Parameters
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- abstract type Self <: Parameters
Abstract Value Members
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addParam(kv: Param): Self
-
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
-
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
-
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
- def addParams(kvs: ParamSeq): Self
- def addParams(other: Parameters): Self
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
filterParams(f: (Param) ⇒ Boolean): Self
Filters out just the parameters for which the provided function holds true
-
def
filterParamsNames(f: (String) ⇒ Boolean): Self
Filters out just the parameters for which the provided function holds true when applied to the parameter name
-
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
-
def
filterParamsValues(f: (String) ⇒ Boolean): Self
Filters out just the parameters for which the provided function holds true when applied to the parameter value
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
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
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
mapParamNames(f: (String) ⇒ String): Self
Transforms each parameter name by applying the specified Function
-
def
mapParamValues(f: (String) ⇒ String): Self
Transforms each parameter value by applying the specified Function
-
def
mapParams(f: (Param) ⇒ Param): Self
Transforms each parameter by applying the specified Function
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- def param(key: String): Option[String]
- lazy val paramMap: Map[String, Seq[String]]
- def params(key: String): Seq[Option[String]]
- def paramsToString(e: UriEncoder, charset: String): String
- def removeAll(): Self
- def removeAll(a: Seq[String]): Self
-
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
-
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )