public class StandardModuleURIResolver extends java.lang.Object implements ModuleURIResolver
jar URI scheme; it also
accepts classpath URIs as defined in the Spring framework.| Constructor and Description |
|---|
StandardModuleURIResolver()
Create a StandardModuleURIResolver.
|
StandardModuleURIResolver(Configuration config)
Create a StandardModuleURIResolver.
|
| Modifier and Type | Method and Description |
|---|---|
protected javax.xml.transform.stream.StreamSource |
getQuerySource(java.net.URI absoluteURI)
Get a StreamSource object representing the source of a query, given its URI.
|
javax.xml.transform.stream.StreamSource[] |
resolve(java.lang.String moduleURI,
java.lang.String baseURI,
java.lang.String[] locations)
Resolve a module URI and associated location hints.
|
public StandardModuleURIResolver()
public StandardModuleURIResolver(Configuration config)
public javax.xml.transform.stream.StreamSource[] resolve(java.lang.String moduleURI,
java.lang.String baseURI,
java.lang.String[] locations)
throws XPathException
resolve in interface ModuleURIResolvermoduleURI - The module namespace URI of the module to be imported; or null when
loading a non-library module.baseURI - The base URI of the module containing the "import module" declaration;
null if no base URI is knownlocations - The set of URIs specified in the "at" clause of "import module",
which serve as location hints for the moduleXPathException - (error XQST0059) if the module cannot be locatedprotected javax.xml.transform.stream.StreamSource getQuerySource(java.net.URI absoluteURI)
throws XPathException
absoluteURI - the absolute URI of the source queryXPathException - if the URIs are invalid or cannot be resolved or dereferenced, or
if any I/O error occursCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.