Package akka.javasdk.http
Interface QueryParams
public interface QueryParams
Represents the query parameters of an HTTP request.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of all parameters with the given key.<T> List
<T> Returns the value of all parameters with the given key using mapper function.getBoolean
(String key) Returns the Boolean value of the first parameter with the given key if it exists.Returns the Double value of the first parameter with the given key if it exists.getInteger
(String key) Returns the Integer value of the first parameter with the given key if it exists.Returns the Long value of the first parameter with the given key if it exists.Returns the value of the first parameter with the given key if it exists.toMap()
Returns a key/value map of the parameters.Returns a `Map` of all parameters.
-
Method Details
-
getString
Returns the value of the first parameter with the given key if it exists. -
getInteger
Returns the Integer value of the first parameter with the given key if it exists. -
getLong
Returns the Long value of the first parameter with the given key if it exists. -
getBoolean
Returns the Boolean value of the first parameter with the given key if it exists. -
getDouble
Returns the Double value of the first parameter with the given key if it exists. -
getAll
Returns the value of all parameters with the given key. -
getAll
Returns the value of all parameters with the given key using mapper function. -
toMap
Returns a key/value map of the parameters. Use the `toMultiMap()` method to return all parameters if keys may occur multiple times. -
toMultiMap
Returns a `Map` of all parameters. Use the `toMap()` method to filter out entries with duplicated keys.
-