Package net.sf.saxon.lib
Class DirectResourceResolver
- java.lang.Object
-
- net.sf.saxon.lib.DirectResourceResolver
-
- All Implemented Interfaces:
ResourceResolver
public class DirectResourceResolver extends java.lang.Object implements ResourceResolver
ADirectResourceResolver
is aResourceResolver
that resolves requests using the direct, native capabilities of the platform. For example a "file:" URI is resolved by finding the file in filestore, and an "http:" URI is resolved by making an HTTP request.
-
-
Constructor Summary
Constructors Constructor Description DirectResourceResolver(Configuration config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.xml.transform.Source
resolve(ResourceRequest request)
Process a resource request to deliver a resource
-
-
-
Constructor Detail
-
DirectResourceResolver
public DirectResourceResolver(Configuration config)
-
-
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.
-
-