public class URLUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
QUERY_STRING_COMPONENT_SEPARATOR
The query string component separator.
|
| Modifier | Constructor and Description |
|---|---|
protected |
URLUtils()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
getQueryString(String url)
Extracts the query string from the given URL.
|
static Map<String,List<String>> |
parseQueryString(String queryString)
Parses the given query string and decodes the parameter names and values.
|
static String |
serializeQueryStringParameters(Map<String,?> parameters)
Serializes the given parameters into a query string.
|
static String |
setQueryString(String url,
Map<String,?> parameters)
Replaces the query string of the given URL and returns the result.
|
public static final String QUERY_STRING_COMPONENT_SEPARATOR
public static String getQueryString(String url)
url - the URL to extract the query string frompublic static String setQueryString(String url, Map<String,?> parameters)
url - the URL whose query string is changedparameters - the map of query string parameterspublic static Map<String,List<String>> parseQueryString(String queryString)
queryString - the query string to be parsedCopyright © 2004–2015 XWiki. All rights reserved.