Package org.geotools.data.wfs.internal
Class URIs
Object
URIs
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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
static String
static URL
static URL
parseQueryString
(String queryString) static String
static String
URL encodes the value towards the ISO-8859-1 charset
-
Constructor Details
-
URIs
public URIs()
-
-
Method Details
-
buildURL
-
buildURL
-
buildURL
-
buildURL
-
appendContextPath
Appends a context path to a base url.- Parameters:
url
- The base url.contextPath
- The context path to be appended.- Returns:
- A full url with the context path appended.
-
urlEncode
URL encodes the value towards the ISO-8859-1 charset -
urlDecode
-
appendQueryString
Appends a query string to a url.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, "")
- Parameters:
url
- The base url.queryString
- The query string to be appended, should not contain the '?' character.- Returns:
- A full url with the query string appended.
TODO: remove this and replace with Requetss.appendQueryString
-
parseQueryString
-