org.apache.synapse.core.axis2
Class CustomURIResolver
java.lang.Object
org.apache.synapse.core.axis2.CustomURIResolver
- All Implemented Interfaces:
- org.apache.ws.commons.schema.resolver.URIResolver
public class CustomURIResolver
- extends Object
- implements org.apache.ws.commons.schema.resolver.URIResolver
Class that adapts a ResourceMap to URIResolver.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CustomURIResolver
public CustomURIResolver()
CustomURIResolver
public CustomURIResolver(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-2008 Apache Software Foundation. All Rights Reserved.