Class Queries


  • public class Queries
    extends Object
    • Constructor Detail

      • Queries

        public Queries()
    • Method Detail

      • queryParser

        public static com.google.common.base.Function<String,​com.google.common.collect.Multimap<String,​String>> queryParser()
      • encodeQueryLine

        public static String encodeQueryLine​(com.google.common.collect.Multimap<String,​?> queryParams)
        percent encodes the query parameters, excep / and , characters.
        Parameters:
        queryParams -
        Returns:
        percent encoded line or null if no queryParams present
      • encodeQueryLine

        public static String encodeQueryLine​(com.google.common.collect.Multimap<String,​?> queryParams,
                                             Iterable<Character> skips)
        percent encodes the query parameters according except characters specified in the skips argument.
        Parameters:
        queryParams -
        Returns:
        percent encoded line or null if no queryParams present
      • buildQueryLine

        public static String buildQueryLine​(com.google.common.collect.Multimap<String,​?> queryParams)