Package com.algolia.search.util
Class QueryStringUtils
- java.lang.Object
-
- com.algolia.search.util.QueryStringUtils
-
public class QueryStringUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description QueryStringUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringbuildQueryAsQueryParams(SearchParameters query)static StringbuildQueryString(Map<String,String> map)Build a query string from its inputstatic StringbuildQueryString(Map<String,String> map, boolean withoutLeadingMark)Build a query string from its inputstatic StringurlEncodeUTF8(String s)Encode the given string
-
-
-
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 stringwithoutLeadingMark- 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
-
buildQueryAsQueryParams
public static String buildQueryAsQueryParams(SearchParameters query)
-
-