public final class URILocationResolver extends Object
| Constructor and Description |
|---|
URILocationResolver() |
| Modifier and Type | Method and Description |
|---|---|
URL |
resolve(URI baseURI,
URI uri)
Resolve the
uri according to the baseURI. |
public URL resolve(URI baseURI, URI uri) throws MalformedURLException
Resolve the uri according to the baseURI.
If baseURI is null, the return value is the
uri converted into URL using URI.toURL().
Otherwise the return value is the result of URL.URL(URL, String).
baseURI - The base URI.uri - The URI to resolve.URL.MalformedURLException - The resolved URI is not a well-formed URL.Copyright © 2008-2017 Linagora. All Rights Reserved.