public class CustomXmlSchemaURIResolver extends Object implements org.apache.ws.commons.schema.resolver.URIResolver
ResourceMap
to XmlSchemas's URIResolver
.Constructor and Description |
---|
CustomXmlSchemaURIResolver() |
CustomXmlSchemaURIResolver(ResourceMap resourceMap,
SynapseConfiguration synCfg)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
InputSource |
resolveEntity(String targetNamespace,
String schemaLocation,
String baseUri)
Resolve a schema import.
|
public CustomXmlSchemaURIResolver()
public CustomXmlSchemaURIResolver(ResourceMap resourceMap, SynapseConfiguration synCfg)
resourceMap
- the resource map; may be null if no resource map is configuredsynCfg
- the Synapse configurationpublic InputSource resolveEntity(String targetNamespace, String schemaLocation, String baseUri)
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)
.resolveEntity
in interface org.apache.ws.commons.schema.resolver.URIResolver
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.