org.apache.synapse.util.resolver
Class CustomXmlSchemaURIResolver
java.lang.Object
org.apache.synapse.util.resolver.CustomXmlSchemaURIResolver
- All Implemented Interfaces:
- org.apache.ws.commons.schema.resolver.URIResolver
public class CustomXmlSchemaURIResolver
- extends Object
- implements org.apache.ws.commons.schema.resolver.URIResolver
Class that adapts a ResourceMap
to XmlSchemas's URIResolver
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CustomXmlSchemaURIResolver
public CustomXmlSchemaURIResolver()
CustomXmlSchemaURIResolver
public CustomXmlSchemaURIResolver(ResourceMap resourceMap,
SynapseConfiguration synCfg)
- Constructor.
- Parameters:
resourceMap
- the resource map; may be null if no resource map is configuredsynCfg
- the Synapse configuration
resolveEntity
public InputSource resolveEntity(String targetNamespace,
String schemaLocation,
String baseUri)
- Resolve a schema import.
This method will first attempt to resolve the location using the configured
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)
.
- Specified by:
resolveEntity
in interface org.apache.ws.commons.schema.resolver.URIResolver
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.