Class Query
java.lang.Object
org.apache.pekko.http.javadsl.model.Query
- Direct Known Subclasses:
- JavaQuery
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic QueryReturns a Query from the given parameters.static QueryReturns a Query created by parsing the given undecoded string representation.static Querycreate(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 Querycreate(String rawQuery, Uri.ParsingMode parsingMode) Returns a Query created by parsing the given undecoded string representation with the provided parsing mode.static QueryReturns a Query from the given parameters.static QueryReturns 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 StringReturns the value of the first parameter with the given key or the provided default value.abstract Stringrender(HttpCharset charset) Renders this Query into its string representation using the given charset.abstract Stringrender(HttpCharset charset, org.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 QueryReturns a copy of this instance with a query parameter added.
- 
Field Details- 
EMPTYReturns an empty Query.
 
- 
- 
Constructor Details- 
Querypublic Query()
 
- 
- 
Method Details- 
getReturns the value of the first parameter with the given key if it exists.
- 
getOrElseReturns the value of the first parameter with the given key or the provided default value.
- 
getAllReturns the value of all parameters with the given key.
- 
toListReturns a `List` of all parameters of this Query. Use the `toMap()` method to filter out entries with duplicated keys.
- 
toMapReturns a key/value map of the parameters of this Query. Use the `toList()` method to return all parameters if keys may occur multiple times.
- 
toMultiMapReturns a `Map` of all parameters of this Query. Use the `toMap()` method to filter out entries with duplicated keys.
- 
withParamReturns a copy of this instance with a query parameter added.
- 
renderRenders this Query into its string representation using the given charset.
- 
renderRenders this Query into its string representation using the given charset and char predicate.
- 
createReturns a Query created by parsing the given undecoded string representation.
- 
createReturns a Query created by parsing the given undecoded string representation with the provided parsing mode.
- 
createReturns a Query created by parsing the given undecoded string representation with the provided charset and parsing mode.
- 
createReturns a Query from the given parameters.
- 
createReturns a Query from the given parameters.
- 
createReturns a Query from the given parameters.
 
-