public final class URIResolverImpl extends Object implements URIResolver
| Constructor and Description |
|---|
URIResolverImpl() |
| Modifier and Type | Method and Description |
|---|---|
URILocation |
resolve(String href,
String documentBase)
Resolves the given href and documentBase.
|
URILocation |
resolveURN(String urn)
Resolves the given urn.
|
public URILocation resolve(String href, String documentBase) throws URIException
Note:
file:/c:/Program Files/MyApp/myresource.xml
file://usr/etc/myresource.xml
http://www.castor.org/index.html
../relative/index.html
However, the following won't be valid:
file://c:/Program Files/MyApp/myresource.xml
resolve in interface URIResolverURIExceptionpublic URILocation resolveURN(String urn) throws URIException
resolveURN in interface URIResolverURIExceptionCopyright © 2016. All rights reserved.