- All Superinterfaces:
Parameters
,UriQuery
Mutable HTTP query.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.common.parameters.Parameters
Parameters.Builder
-
Field Summary
Fields inherited from interface io.helidon.common.parameters.Parameters
GENERIC_TYPE
-
Method Summary
Modifier and TypeMethodDescriptionAdd a new query parameter or add a value to existing.void
clear()
Clear all query parameters.static UriQueryWriteable
create()
Create a new HTTP Query to write parameter into.Update this query by copying all names and their value(s) from the provided query.void
fromQueryString
(String queryString) Update from a query string (with encoded values).Remove a query parameter.Remove a query parameter.Set a query parameter with values.setIfAbsent
(String name, String... value) Set a query parameter with values, if not already defined.
-
Method Details
-
create
Create a new HTTP Query to write parameter into.- Returns:
- new mutable HTTP query
-
from
Update this query by copying all names and their value(s) from the provided query.- Parameters:
uriQuery
- uri query to read- Returns:
- updated instance
-
set
Set a query parameter with values.- Parameters:
name
- name of the parametervalue
- value(s) of the parameter- Returns:
- this instance
-
add
Add a new query parameter or add a value to existing.- Parameters:
name
- name of the parametervalue
- additional value of the parameter- Returns:
- this instance
-
setIfAbsent
Set a query parameter with values, if not already defined.- Parameters:
name
- name of the parametervalue
- value(s) of the parameter- Returns:
- this instance
-
remove
Remove a query parameter.- Parameters:
name
- name of the parameter- Returns:
- this instance
-
remove
Remove a query parameter.- Parameters:
name
- name of the parameterremovedConsumer
- consumer of existing values, only called if there was an existing value- Returns:
- this instance
-
fromQueryString
Update from a query string (with encoded values).This documentation (and behavior) has been changed, as we cannot create a proper query from
decoded
values, as these may contain characters used to split the query.- Parameters:
queryString
- encoded query string to update this instance
-
clear
void clear()Clear all query parameters.
-