jd.xml.util
Interface UriResolver
- All Known Implementing Classes:
- DefaultUriResolver, ResolverChain, UriResolverAdapter
- public interface UriResolver
An UriResolver is a service object that creates a XmlSource
from an href attribute and a base uri.
resolveUri
public XmlSource resolveUri(String href,
String baseUri)
throws IOException
- Resolve a uri.
- Parameters:
href
- a href attribute, which may be relative or absolute.baseUri
- the base uri in effect when the href attribute was encountered
- Returns:
- a XmlSource object, or null if the href cannot be resolved,
and the caller should try to resolve the URI in some other way.
- Throws:
IOException
- if an error occurs when trying to resolve the URI.