public class DirectResourceResolver extends java.lang.Object implements ResourceResolver
DirectResourceResolver
is a ResourceResolver
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 and Description |
---|
DirectResourceResolver(Configuration config) |
Modifier and Type | Method and Description |
---|---|
javax.xml.transform.Source |
resolve(ResourceRequest request)
Process a resource request to deliver a resource
|
public DirectResourceResolver(Configuration config)
public javax.xml.transform.Source resolve(ResourceRequest request) throws XPathException
resolve
in interface ResourceResolver
request
- the resource requestXPathException
- 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.Copyright (c) 2004-2022 Saxonica Limited. All rights reserved.