public class URLParserUtil extends Object
| Constructor and Description |
|---|
URLParserUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
addParameterToQueryString(String key,
String value,
boolean prefixAmpersand,
boolean suffixAmpersand)
Adds the parameter to query string.
|
static String |
extractValueOfParameterFromURL(String paramName,
String url)
Extract value of parameter from URL.
|
static Map<String,List<String>> |
splitQuery(URL url)
Split query.
|
public static String addParameterToQueryString(String key, String value, boolean prefixAmpersand, boolean suffixAmpersand)
key - the keyvalue - the valueprefixAmpersand - the prefix ampersandsuffixAmpersand - the suffix ampersandpublic static String extractValueOfParameterFromURL(String paramName, String url)
paramName - the param nameurl - the urlpublic static Map<String,List<String>> splitQuery(URL url) throws UnsupportedEncodingException
url - the urlUnsupportedEncodingException - the unsupported encoding exceptionCopyright © 2021. All Rights Reserved.