org.apache.synapse.util.resolver
Class CustomWSDLLocator
java.lang.Object
org.apache.synapse.util.resolver.CustomWSDLLocator
- All Implemented Interfaces:
- javax.wsdl.xml.WSDLLocator
public class CustomWSDLLocator
- extends Object
- implements javax.wsdl.xml.WSDLLocator
Class that adapts a ResourceMap object to WSDLLocator.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CustomWSDLLocator
public CustomWSDLLocator(InputSource baseInputSource,
String baseURI)
CustomWSDLLocator
public CustomWSDLLocator(InputSource baseInputSource,
String baseURI,
ResourceMap resourceMap,
SynapseConfiguration synCfg)
getBaseInputSource
public InputSource getBaseInputSource()
- Specified by:
getBaseInputSource in interface javax.wsdl.xml.WSDLLocator
getBaseURI
public String getBaseURI()
- Specified by:
getBaseURI in interface javax.wsdl.xml.WSDLLocator
getImportInputSource
public InputSource getImportInputSource(String parentLocation,
String relativeLocation)
- Resolve a schema or WSDL 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:
getImportInputSource in interface javax.wsdl.xml.WSDLLocator
getLatestImportURI
public String getLatestImportURI()
- Specified by:
getLatestImportURI in interface javax.wsdl.xml.WSDLLocator
close
public void close()
- Specified by:
close in interface javax.wsdl.xml.WSDLLocator
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.