A new URI is constructed with this URI's scheme and the given URI's query and fragment components.
If the given URI has an authority component then the new URI's authority and path are taken from the given URI.
Otherwise the new URI's authority component is copied from this URI, and its path is computed as follows:
If the given URI's path is absolute then the new URI's path is taken from the given URI.
Otherwise the given URI's path is relative, and so the new URI's path is computed by resolving the path of the given URI against the path of this URI. This is done by concatenating all but the last segment of this URI's path, if any, with the given URI's path and then normalizing the result as if by invoking the {@link #normalize() normalize} method.
The result of this method is absolute if, and only if, either this URI is absolute or the given URI is absolute.
@param uri The URI to be resolved against this URI @return The resulting URI @throws NullPointerException If uri is null
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|