|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.gwt.user.client.URLUtils
public class URLUtils
Provides utility methods for manipulating URLs.
| Field Summary | |
|---|---|
static String |
QUERY_STRING_COMPONENT_SEPARATOR
The query string component separator. |
| Constructor Summary | |
|---|---|
protected |
URLUtils()
Constructor. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String QUERY_STRING_COMPONENT_SEPARATOR
| Constructor Detail |
|---|
protected URLUtils()
| Method Detail |
|---|
public static String getQueryString(String url)
url - the URL to extract the query string from
public static String setQueryString(String url,
Map<String,?> parameters)
url - the URL whose query string is changedparameters - the map of query string parameters
public static Map<String,List<String>> parseQueryString(String queryString)
queryString - the query string to be parsed
public static String serializeQueryStringParameters(Map<String,?> parameters)
parameters - the parameters to serialize
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||