Interface FormUrlEncodedDecoder


public interface FormUrlEncodedDecoder
Decodes a form url encoded string into a map.
Since:
4.7.1
Author:
Sergio del Amo
  • Method Details

    • decode

      @NonNull Map<String,Object> decode(@NonNull String formUrlEncodedString, @NonNull Charset charset)
      Parameters:
      formUrlEncodedString - Form URL encoded String
      charset - Charset
      Returns:
      a Map representation of the Form URL encoded String
    • flatten

      default Map<String,Object> flatten(Map<String,List<String>> parameters)
      Converts a map with value list of string to value Object. If the list of string has a single element, then the value is the element itself.
      Parameters:
      parameters - Map of key string and value list of Strings
      Returns:
      Map of key String and value Object