@ThreadSafe public final class URIUtils extends Object
Modifier and Type | Field and Description |
---|---|
static char |
QUERY_KEY_VALUE_SEPARATOR |
static char |
QUERY_SEPARATOR |
Modifier and Type | Method and Description |
---|---|
static URI |
appendPath(URI base,
String path)
Appends the given path to the given base URI.
|
static URI |
appendPathOrDie(URI base,
String path)
Appends the given path to the given base URI.
|
static String |
generateQueryString(Map<String,String> queryMap)
|
static boolean |
isLocalFilesystem(String uri) |
static Map<String,String> |
parseQueryString(String query)
Parses the given query string, and returns a map of the query parameters.
|
public static final char QUERY_SEPARATOR
public static final char QUERY_KEY_VALUE_SEPARATOR
public static URI appendPath(URI base, String path) throws URISyntaxException
base
- the base URIpath
- the path to appendURISyntaxException
- if URI syntax error is encounteredpublic static URI appendPathOrDie(URI base, String path)
RuntimeException
if
the inputs are malformed.base
- the base URIpath
- the path to append@Nullable public static String generateQueryString(Map<String,String> queryMap)
queryMap
- the map of query key/value pairspublic static Map<String,String> parseQueryString(String query)
query
- the query string to parsepublic static boolean isLocalFilesystem(String uri)
uri
- a uri to checkCopyright © 2023. All Rights Reserved.