Package org.exolab.castor.net.util
Class URIResolverImpl
java.lang.Object
org.exolab.castor.net.util.URIResolverImpl
- All Implemented Interfaces:
URIResolver
The default implementation of URIResolver
- Version:
- $Revision$ $Date: 2003-03-03 02:57:21 -0700 (Mon, 03 Mar 2003) $
- Author:
- Keith Visco, Arnaud Blandin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionResolves the given href and documentBase.resolveURN
(String urn) Resolves the given urn.
-
Constructor Details
-
URIResolverImpl
public URIResolverImpl()
-
-
Method Details
-
resolve
Resolves the given href and documentBase. The href can either be an absolute or a relative URI as defined by IETF RFC 2396:- Absolute URI: [scheme]:'//'[authority][absolute path]
- Relative URI: '//'[authority][absolute path] or [relative path] or [absolute path].
Note:
- When [authority] is not used then '//' must not be used.
- An [absolute path] begins by a '/' sign.
file:/c:/Program Files/MyApp/myresource.xml file://usr/etc/myresource.xml http://www.castor.org/index.html ../relative/index.html
file://c:/Program Files/MyApp/myresource.xml
- Specified by:
resolve
in interfaceURIResolver
- Returns:
- the URILocation for the URI
- Throws:
URIException
-
resolveURN
Resolves the given urn. An implementation of this method may return null if the URN could not be resolved.- Specified by:
resolveURN
in interfaceURIResolver
- Returns:
- the URILocation for the URN
- Throws:
URIException
-