Package com.atlassian.confluence.util
Class QueryStringUtil
- java.lang.Object
-
- com.atlassian.confluence.util.QueryStringUtil
-
public class QueryStringUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description QueryStringUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,String>
extractParams(URL link)
Extracts parameters from the query string portion of the supplied URL and inserts these into a map.static Map<String,String>
toMap(String queryString)
Parses the supplied query string and inserts the specified parameters into a map.static String
toString(Map<String,String> params)
Returns a query string representation of the supplied parameters.
-
-
-
Method Detail
-
toMap
public static Map<String,String> toMap(String queryString)
Parses the supplied query string and inserts the specified parameters into a map. Does not support multi-valued keys in the query string.- Parameters:
queryString
- query string to parse- Returns:
- map of parameters specified in the query string
-
extractParams
public static Map<String,String> extractParams(URL link)
Extracts parameters from the query string portion of the supplied URL and inserts these into a map. Does not support multi-valued keys in the query string.- Parameters:
link
- URL to extra parameters from- Returns:
- map of parameters specified in the query string portion of the URL
-
-