java.lang.Object
io.helidon.common.http.UriComponent
Extracted from Jersey
Utility class for validating, encoding and decoding components of a URI.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Parameters
decodeQuery
(String query, boolean decode) Decode the query component of a URI.static Parameters
decodeQuery
(String query, boolean decodeNames, boolean decodeValues) Decode the query component of a URI.
-
Method Details
-
decodeQuery
Decode the query component of a URI.Query parameter names in the returned map are always decoded. Decoding of query parameter values can be controlled using the
decode
parameter flag.- Parameters:
query
- the query component in encoded form.decode
-true
if the returned query parameter values of the query component should be in decoded form.- Returns:
- the multivalued map of query parameters.
-
decodeQuery
Decode the query component of a URI.Decoding of query parameter names and values can be controlled using the
decodeNames
anddecodeValues
parameter flags.- Parameters:
query
- the query component in encoded form.decodeNames
-true
if the returned query parameter names of the query component should be in decoded form.decodeValues
-true
if the returned query parameter values of the query component should be in decoded form.- Returns:
- the multivalued map of query parameters.
-