org.apache.synapse.util.resolver
Class CustomXmlSchemaURIResolver

java.lang.Object
  extended by 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.


Constructor Summary
CustomXmlSchemaURIResolver()
           
CustomXmlSchemaURIResolver(ResourceMap resourceMap, SynapseConfiguration synCfg)
          Constructor.
 
Method Summary
 InputSource resolveEntity(String targetNamespace, String schemaLocation, String baseUri)
          Resolve a schema import.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomXmlSchemaURIResolver

public CustomXmlSchemaURIResolver()

CustomXmlSchemaURIResolver

public CustomXmlSchemaURIResolver(ResourceMap resourceMap,
                                  SynapseConfiguration synCfg)
Constructor.

Parameters:
resourceMap - the resource map; may be null if no resource map is configured
synCfg - the Synapse configuration
Method Detail

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.