Package org.jclouds.http.utils
Class Queries
- java.lang.Object
-
- org.jclouds.http.utils.Queries
-
public class Queries extends Object
-
-
Constructor Summary
Constructors Constructor Description Queries()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
buildQueryLine(com.google.common.collect.Multimap<String,?> queryParams)
static String
encodeQueryLine(com.google.common.collect.Multimap<String,?> queryParams)
percent encodes the query parameters, excep/
and,
characters.static String
encodeQueryLine(com.google.common.collect.Multimap<String,?> queryParams, Iterable<Character> skips)
percent encodes the query parameters according except characters specified in theskips
argument.static com.google.common.base.Function<String,com.google.common.collect.Multimap<String,String>>
queryParser()
-
-
-
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 theskips
argument.- Parameters:
queryParams
-- Returns:
- percent encoded line or null if no queryParams present
-
-