Package akka.http.javadsl.model
Class Query
java.lang.Object
akka.http.javadsl.model.Query
- Direct Known Subclasses:
JavaQuery
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Query
Returns a Query from the given parameters.static Query
Returns a Query from the given parameters.static Query
Returns a Query created by parsing the given undecoded string representation.static Query
create
(String rawQuery, Uri.ParsingMode parsingMode) Returns a Query created by parsing the given undecoded string representation with the provided parsing mode.static Query
create
(String rawQuery, Charset charset, Uri.ParsingMode parsingMode) Returns a Query created by parsing the given undecoded string representation with the provided charset and parsing mode.static Query
Returns a Query from the given parameters.Returns the value of the first parameter with the given key if it exists.Returns the value of all parameters with the given key.abstract String
Returns the value of the first parameter with the given key or the provided default value.abstract String
render
(HttpCharset charset) Renders this Query into its string representation using the given charset.abstract String
render
(HttpCharset charset, akka.parboiled2.CharPredicate keep) Renders this Query into its string representation using the given charset and char predicate.toList()
Returns a `List` of all parameters of this Query.toMap()
Returns a key/value map of the parameters of this Query.Returns a `Map` of all parameters of this Query.abstract Query
Returns a copy of this instance with a query parameter added.
-
Field Details
-
EMPTY
Returns an empty Query.
-
-
Constructor Details
-
Query
public Query()
-
-
Method Details
-
get
Returns the value of the first parameter with the given key if it exists. -
getOrElse
Returns the value of the first parameter with the given key or the provided default value. -
getAll
Returns the value of all parameters with the given key. -
toList
Returns a `List` of all parameters of this Query. Use the `toMap()` method to filter out entries with duplicated keys. -
toMap
Returns a key/value map of the parameters of this Query. Use the `toList()` method to return all parameters if keys may occur multiple times. -
toMultiMap
Returns a `Map` of all parameters of this Query. Use the `toMap()` method to filter out entries with duplicated keys. -
withParam
Returns a copy of this instance with a query parameter added. -
render
Renders this Query into its string representation using the given charset. -
render
Renders this Query into its string representation using the given charset and char predicate. -
create
Returns a Query created by parsing the given undecoded string representation. -
create
Returns a Query created by parsing the given undecoded string representation with the provided parsing mode. -
create
Returns a Query created by parsing the given undecoded string representation with the provided charset and parsing mode. -
create
Returns a Query from the given parameters. -
create
Returns a Query from the given parameters. -
create
Returns a Query from the given parameters.
-