public class EncodingUtil
extends java.lang.Object
| Constructor and Description |
|---|
EncodingUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.net.URI |
encodeURL(java.lang.String url)
Deprecated.
to be removed with 4.0.0
|
static java.lang.String |
encodeURLToString(java.lang.String url)
Deprecated.
To be remvoed with 4.0.0
|
static java.lang.String |
encodeURLToString(java.lang.String baseUrl,
java.lang.String... pathSegments)
Parses and returns an encoded version of the given URL string alongside the given path segments.
|
static java.lang.String |
encodeURLToString(java.lang.String baseUrl,
java.lang.String path)
Parses and returns an encoded version of the given URL string alongside the given path.
|
@Deprecated
public static java.net.URI encodeURL(java.lang.String url)
throws java.net.MalformedURLException,
java.net.URISyntaxException
url - Raw/decoded string form of a URL to parse/encode.URI that represents the string form URL passed in.java.net.MalformedURLExceptionjava.net.URISyntaxException@Deprecated public static java.lang.String encodeURLToString(java.lang.String url)
MalformedURLException and URISyntaxException in case the passed URL is invalid.url - Raw/decoded string form of a URL to parse/encode.java.lang.IllegalArgumentException - in case the URL string is invalid.public static java.lang.String encodeURLToString(java.lang.String baseUrl,
java.lang.String path)
baseUrl - Base URL to use when constructing the final URL. This has to be a valid URL already.path - Additional unencoded path to append at the end of the base path.public static java.lang.String encodeURLToString(java.lang.String baseUrl,
java.lang.String... pathSegments)
baseUrl - Base URL to use when constructing the final URL. This has to be a valid URL already.pathSegments - Additional unencoded path segments to append at the end of the base path.