Class UriComponent

java.lang.Object
io.helidon.common.http.UriComponent

public final class UriComponent extends Object
Extracted from Jersey

Utility class for validating, encoding and decoding components of a URI.

  • Method Details

    • 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 and decodeValues 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.