public class CustomJAXPURIResolver extends Object implements URIResolver
ResourceMap
to JAXP's URIResolver
.Constructor and Description |
---|
CustomJAXPURIResolver(ResourceMap resourceMap,
SynapseConfiguration synCfg)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Source |
resolve(String href,
String base)
Resolve an xsl:import or xsl:include.
|
public CustomJAXPURIResolver(ResourceMap resourceMap, SynapseConfiguration synCfg)
resourceMap
- the resource map; may be null if no resource map is configuredsynCfg
- the Synapse configurationpublic Source resolve(String href, String base) throws TransformerException
ResourceMap
object. If this fails (because no ResourceMap
is
configured or because ResourceMap.resolve(SynapseConfiguration, String)
returns null, it will resolve the location using
SynapseConfigUtils.resolveRelativeURI(String, String)
.resolve
in interface URIResolver
TransformerException
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.