Class QueryStringUtils


  • public class QueryStringUtils
    extends Object
    • Constructor Detail

      • QueryStringUtils

        public QueryStringUtils()
    • Method Detail

      • urlEncodeUTF8

        public static String urlEncodeUTF8​(String s)
        Encode the given string
        Parameters:
        s - The string to encode
        Returns:
        URL encoded string
      • buildQueryString

        public static String buildQueryString​(Map<String,​String> map,
                                              boolean withoutLeadingMark)
        Build a query string from its input
        Parameters:
        map - The map to convert to a query string
        withoutLeadingMark - Tells whether or not the leading interrogation mark should be used as a prefix of the query string.
      • buildQueryString

        public static String buildQueryString​(Map<String,​String> map)
        Build a query string from its input
        Parameters:
        map - The map to convert to a query string