public interface URI extends Comparable<URI>, Serializable
URI
supports more than just strict
URI
. Some examples:
* Windows paths
* C:\
* D:\path\to\file
* E:\path\to\skip\..\file
* URI with multiple scheme components
* scheme://host:123/path
* scheme:part2//host:123/path
* scheme:part2://host:123/path
* scheme:part2:part3//host:123/path
* scheme:part2:part3://host:123/path
Currently, does not support fragment in the URI.Modifier and Type | Interface and Description |
---|---|
static class |
URI.Factory
Factory for
URI . |
Modifier and Type | Method and Description |
---|---|
URI |
createNewPath(String newPath,
boolean checkNormalization) |
Authority |
getAuthority() |
String |
getPath() |
String |
getQuery() |
String |
getScheme() |
String |
getSchemeSpecificPart() |
boolean |
isAbsolute()
Tells whether or not the
URI is absolute. |
compareTo
URI createNewPath(String newPath, boolean checkNormalization)
newPath
- the new path componentcheckNormalization
- if true, will check if the path requires normalizationAuthority getAuthority()
URI
, null if it does not have oneString getSchemeSpecificPart()
URI
, null if there is no schemeCopyright © 2023. All Rights Reserved.