trait QueryString extends AnyRef
Represents query string as mapped parameters.
- Alphabetic
- By Inheritance
- QueryString
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def add(name: String, values: Seq[String]): QueryString
Adds supplied values to parameter with given name.
Adds supplied values to parameter with given name.
If a parameter with given name already exists, the newly supplied values are appended to the existing values.
- name
parameter name
- values
parameter values
- returns
new query string
- abstract def contains(name: String): Boolean
Tests for parameter with given name.
Tests for parameter with given name.
- name
parameter name
- abstract def get(name: String): Option[String]
Gets first parameter value with given name if present.
Gets first parameter value with given name if present.
- name
parameter name
- abstract def getValues(name: String): Seq[String]
Gets parameter values with given name.
Gets parameter values with given name.
- name
parameter name
- Note
If parameter is not present, an empty sequence is returned.
- abstract def isEmpty: Boolean
Tests for empty.
- abstract def names: Seq[String]
Gets parameter names.
- abstract def put(name: String, values: Seq[String]): QueryString
Sets parameter with given name to supplied values.
Sets parameter with given name to supplied values.
If a parameter with given name already exists, its values are replaced with the newly supplied values.
- name
parameter name
- values
parameter values
- returns
new query string
- abstract def remove(names: Seq[String]): QueryString
Removes parameters with given names.
Removes parameters with given names.
- names
parameter names
- returns
new query string
- abstract def retain(names: Seq[String]): QueryString
Retains parameters with given names, and removes all other parameters.
Retains parameters with given names, and removes all other parameters.
- names
parameter names
- returns
new query string
- abstract def toMap: Map[String, Seq[String]]
Gets
Map
of query string mapping each parameter to its sequence of values. - abstract def toSeq: Seq[(String, String)]
Gets
Seq
of name-value pairs from query string. - abstract def toSimpleMap: Map[String, String]
Gets
Map
of query string mapping each parameter to its first value.
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def ++(params: Seq[(String, String)]): QueryString
Creates new query string by concatenating supplied parameters.
Creates new query string by concatenating supplied parameters.
- params
parameters
- returns
new query string
- Note
Alias to
concat
.
- def ++(params: Map[String, Seq[String]]): QueryString
Creates new query string by concatenating supplied parameters.
Creates new query string by concatenating supplied parameters.
- params
parameters
- returns
new query string
- Note
Alias to
concat
.
- def ++(that: QueryString): QueryString
Creates new query string by concatenating supplied query string.
Creates new query string by concatenating supplied query string.
- that
query string
- returns
new query string
- Note
Alias to
concat
.
- def <<(params: Seq[(String, String)]): QueryString
Creates new query string by merging supplied parameters.
Creates new query string by merging supplied parameters.
- params
parameters
- returns
new query string
- Note
Alias to
merge
.
- def <<(params: Map[String, Seq[String]]): QueryString
Creates new query string by merging supplied parameters.
Creates new query string by merging supplied parameters.
- params
parameters
- returns
new query string
- Note
Alias to
merge
.
- def <<(that: QueryString): QueryString
Creates new query string by merging supplied query string.
Creates new query string by merging supplied query string.
- that
query string
- returns
new query string
- Note
Alias to
merge
.
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def add(name: String, one: String, more: String*): QueryString
Adds supplied values to parameter with given name.
Adds supplied values to parameter with given name.
If a parameter with given name already exists, the newly supplied values are appended to the existing values.
- name
parameter name
- one
parameter value
- more
additional parameter values
- returns
new query string
- def apply(name: String): String
Gets first parameter value with given name.
Gets first parameter value with given name.
- name
parameter name
- Exceptions thrown
java.util.NoSuchElementException
if parameter not present
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def concat(params: Seq[(String, String)]): QueryString
Creates new query string by concatenating supplied parameters.
Creates new query string by concatenating supplied parameters.
- params
parameters
- returns
new query string
- def concat(params: Map[String, Seq[String]]): QueryString
Creates new query string by concatenating supplied parameters.
Creates new query string by concatenating supplied parameters.
- params
parameters
- returns
new query string
- def concat(that: QueryString): QueryString
Creates new query string by concatenating supplied query string.
Creates new query string by concatenating supplied query string.
- that
query string
- returns
new query string
- Note
The new query string contains all values from both query strings with parameter values in
that
appended to those inthis
.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def filter(pred: ((String, String)) => Boolean): QueryString
Creates new query string by selecting parameters which satisfy supplied predicate.
Creates new query string by selecting parameters which satisfy supplied predicate.
- pred
predicate
- def filterNot(pred: ((String, String)) => Boolean): QueryString
Creates new query string by selecting parameters which do not satisfy supplied predicate.
Creates new query string by selecting parameters which do not satisfy supplied predicate.
- pred
predicate
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getInt(name: String): Option[Int]
Gets first parameter value with given name and parses it to
Int
if present.Gets first parameter value with given name and parses it to
Int
if present.- name
parameter name
- Exceptions thrown
java.lang.NumberFormatException
if parameter value cannot be parsed toInt
- def getLong(name: String): Option[Long]
Gets first parameter value with given name and parses it to
Long
if present.Gets first parameter value with given name and parses it to
Long
if present.- name
parameter name
- Exceptions thrown
java.lang.NumberFormatException
if parameter value cannot be parsed toLong
- def getOrElse(name: String, default: => String): String
Gets first parameter value with given name if present; otherwise, returns default value.
Gets first parameter value with given name if present; otherwise, returns default value.
- name
parameter name
- default
default value
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def merge(params: Seq[(String, String)]): QueryString
Creates new query string by merging supplied parameters.
Creates new query string by merging supplied parameters.
- params
parameters
- returns
new query string
- def merge(params: Map[String, Seq[String]]): QueryString
Creates new query string by merging supplied parameters.
Creates new query string by merging supplied parameters.
- params
parameters
- returns
new query string
- def merge(that: QueryString): QueryString
Creates new query string by merging supplied query string.
Creates new query string by merging supplied query string.
- that
query string
- returns
new query string
- Note
The new query string contains values from both query strings with parameter values in
that
overriding those inthis
.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def put(name: String, one: String, more: String*): QueryString
Sets parameter with given name to supplied values.
Sets parameter with given name to supplied values.
If the parameter with given name already exists, its values are replaced with the newly supplied values.
- name
parameter name
- one
parameter value
- more
additional parameter values
- returns
new query string
- def remove(one: String, more: String*): QueryString
Removes parameters with given names.
Removes parameters with given names.
- one
parameter name
- more
additional parameter names
- returns
new query string
- def retain(one: String, more: String*): QueryString
Retains parameters with given names, and removes all other parameters.
Retains parameters with given names, and removes all other parameters.
- one
parameter name
- more
additional parameter names
- returns
new query string
- 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(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Provided herein is API documentation for Scamper, the HTTP library for Scala.