public class URIs extends Object
Constructor and Description |
---|
URIs() |
Modifier and Type | Method and Description |
---|---|
static String |
appendContextPath(String url,
String contextPath)
Appends a context path to a base url.
|
static String |
appendQueryString(String url,
String queryString)
Appends a query string to a url.
|
static String |
buildURL(String baseURL,
Map<String,String> kvp) |
static String |
buildURL(String baseURL,
String path,
Map<String,String> kvp) |
static URL |
buildURL(URL baseURL,
Map<String,String> kvp) |
static Map<String,String> |
parseQueryString(String queryString) |
static String |
urlDecode(String value) |
static String |
urlEncode(String value)
URL encodes the value towards the ISO-8859-1 charset
|
public static String appendContextPath(String url, String contextPath)
url
- The base url.contextPath
- The context path to be appended.public static String urlEncode(String value)
value
- public static String appendQueryString(String url, String queryString)
This method checks url
to see if the appended query string requires a '?' or
'&' to be prepended.
This code can be used to make sure the url ends with ? or & by calling appendQueryString(url, "")
url
- The base url.queryString
- The query string to be appended, should not contain the '?' character.TODO: remove this and replace with Requetss.appendQueryString
Copyright © 1996–2019 Geotools. All rights reserved.