- All Superinterfaces:
Parameters
- All Known Subinterfaces:
UriQueryWriteable
HTTP Query representation.
Query is the section separated by
?
character from the path, where each query parameter is separated
by &
character.-
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 TypeMethodDescriptionstatic UriQuery
Create a new HTTP query from the query string.static UriQuery
Create URI query from a URI instance.static UriQuery
empty()
Create an empty HTTP query.Get all raw values (undecoded) of a query parameter by its name.Get raw value (undecoded) of a query parameter by its name.rawValue()
Query fully encoded, without the leading?
character.value()
Query NOT encoded without the leading?
character.
-
Method Details
-
create
Create a new HTTP query from the query string.- Parameters:
query
- raw query string- Returns:
- HTTP query instance
-
empty
Create an empty HTTP query.- Returns:
- HTTP query instance
-
create
Create URI query from a URI instance.- Parameters:
uri
- URI to use as the source of this query- Returns:
- HTTP query instance either empty (if query section of the provided URI is
null
) orcreate(String)
with the raw query
-
rawValue
String rawValue()Query fully encoded, without the leading?
character.- Returns:
- raw query to be sent (or that was received) over the wire
-
value
String value()Query NOT encoded without the leading?
character.- Returns:
- query to be sent (or that was received) over the wire but decoded
-
getRaw
Get raw value (undecoded) of a query parameter by its name.- Parameters:
name
- query parameter name- Returns:
- value of the parameter, raw
- Throws:
NoSuchElementException
- in case the parameter does not exist
-
getAllRaw
Get all raw values (undecoded) of a query parameter by its name.- Parameters:
name
- query parameter name- Returns:
- values of the parameter, raw
- Throws:
NoSuchElementException
- in case the parameter does not exist
-