Package net.sf.saxon.lib
Class ResourceResolverWrappingURIResolver
- java.lang.Object
-
- net.sf.saxon.lib.ResourceResolverWrappingURIResolver
-
- All Implemented Interfaces:
ResourceResolver
public class ResourceResolverWrappingURIResolver extends java.lang.Object implements ResourceResolver
AResourceResolver
implemented by wrapping a suppliedURIResolver
-
-
Constructor Summary
Constructors Constructor Description ResourceResolverWrappingURIResolver(javax.xml.transform.URIResolver uriResolver)
Create aResourceResolver
by wrapping a suppliedURIResolver
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static javax.xml.transform.stream.StreamSource
convertToStreamSource(javax.xml.transform.sax.SAXSource resolved)
javax.xml.transform.URIResolver
getWrappedURIResolver()
javax.xml.transform.Source
resolve(ResourceRequest request)
Process a resource request to deliver a resource
-
-
-
Constructor Detail
-
ResourceResolverWrappingURIResolver
public ResourceResolverWrappingURIResolver(javax.xml.transform.URIResolver uriResolver)
Create aResourceResolver
by wrapping a suppliedURIResolver
- Parameters:
uriResolver
- theURIResolver
to which thisResourceResolver
will delegate
-
-
Method Detail
-
resolve
public javax.xml.transform.Source resolve(ResourceRequest request) throws XPathException
Process a resource request to deliver a resource- Specified by:
resolve
in interfaceResourceResolver
- Parameters:
request
- the resource request- Returns:
- the returned Source; or null to delegate resolution to another resolver
- Throws:
XPathException
- if the request is invalid in some way, or if the identified resource is unsuitable, or if resolution is to fail rather than being delegated to another resolver.
-
convertToStreamSource
public static javax.xml.transform.stream.StreamSource convertToStreamSource(javax.xml.transform.sax.SAXSource resolved)
-
getWrappedURIResolver
public javax.xml.transform.URIResolver getWrappedURIResolver()
-
-