Package org.gluu.oxauth.util
Class QueryStringDecoder
- java.lang.Object
-
- org.gluu.oxauth.util.QueryStringDecoder
-
public class QueryStringDecoder extends java.lang.Object
Provides functionality to parse query strings.- Version:
- November 24, 2017
- Author:
- Javier Rojas Blum
-
-
Constructor Summary
Constructors Constructor Description QueryStringDecoder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Map<java.lang.String,java.lang.String>
decode(java.lang.String queryString)
Decodes a query string and returns a map with the parsed query string parameters as keys and its values.static java.util.Map<java.lang.String,java.lang.String>
decode(java.lang.String queryString, boolean urlDecode)
Decodes a query string and returns a map with the parsed query string parameters as keys and its values.
-
-
-
Method Detail
-
decode
public static java.util.Map<java.lang.String,java.lang.String> decode(java.lang.String queryString)
Decodes a query string and returns a map with the parsed query string parameters as keys and its values. The parameter values are not urldecoded- Parameters:
queryString
- The query string.- Returns:
- A map with the parsed query string parameters and its values.
-
decode
public static java.util.Map<java.lang.String,java.lang.String> decode(java.lang.String queryString, boolean urlDecode)
Decodes a query string and returns a map with the parsed query string parameters as keys and its values.- Parameters:
queryString
- The query string.urlDecode
- Boolean indicating if the parameter values should be urldecoded- Returns:
- A map with the parsed query string parameters and its values.
-
-