Public Member Functions | |
URIResolverImpl () | |
URILocation | resolve (String href, String documentBase) throws URIException |
URILocation | resolveURN (String urn) throws URIException |
The default implementation of URIResolver
org.exolab.castor.net.util.URIResolverImpl.URIResolverImpl | ( | ) |
URILocation org.exolab.castor.net.util.URIResolverImpl.resolve | ( | String | href, | |
String | documentBase | |||
) | throws URIException |
Resolves the given href and documentBase. The href can either be an absolute or a relative URI as defined by IETF RFC 2396:
Note:
For instance the following URIs are valid: <blockquote>
file:/c:/Program Files/MyApp/myresource.xml file://usr/etc/myresource.xml http://www.castor.org/index.html ../relative/index.html
</blockquote> However, the following won't be valid: <blockquote>
file://c:/Program Files/MyApp/myresource.xml
</blockquote>
Implements org.exolab.castor.net.URIResolver.
URILocation org.exolab.castor.net.util.URIResolverImpl.resolveURN | ( | String | urn | ) | throws URIException |
Resolves the given urn. An implementation of this method may return null if the URN could not be resolved.
Implements org.exolab.castor.net.URIResolver.