- java.lang.Object
-
- io.helidon.common.http.UriComponent
-
public final class UriComponent extends Object
Extracted from JerseyUtility class for validating, encoding and decoding components of a URI.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
decodeQuery
public static Parameters decodeQuery(String query, boolean decode)
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
public static Parameters decodeQuery(String query, boolean decodeNames, boolean decodeValues)
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.
-
-