Class RegistryWSDLLocator
java.lang.Object
org.wso2.carbon.mediation.initializer.RegistryWSDLLocator
- All Implemented Interfaces:
javax.wsdl.xml.WSDLLocator,org.apache.synapse.util.resolver.UserDefinedWSDLLocator
public class RegistryWSDLLocator
extends Object
implements org.apache.synapse.util.resolver.UserDefinedWSDLLocator
If imports present in wsdl , instead of providing
ResourceMap(relativeloaction, registrylocation of the resources) from the
client side this class will resolve the imported rsources against the wsdl
key
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getImportInputSource(String parentLocation, String relativeLocation) Resolve a schema or WSDL import.voidinit(InputSource baseInputSource, String baseURI, org.apache.synapse.util.resolver.ResourceMap resourceMap, org.apache.synapse.config.SynapseConfiguration synCfg, String wsdlKey)
-
Constructor Details
-
RegistryWSDLLocator
public RegistryWSDLLocator()
-
-
Method Details
-
init
public void init(InputSource baseInputSource, String baseURI, org.apache.synapse.util.resolver.ResourceMap resourceMap, org.apache.synapse.config.SynapseConfiguration synCfg, String wsdlKey) - Specified by:
initin interfaceorg.apache.synapse.util.resolver.UserDefinedWSDLLocator
-
getImportInputSource
Resolve a schema or WSDL import. This method will first attempt to resolve the location using the configuredResourceMapobject. If this fails (because noResourceMapis configured or becauseResourceMap.resolve(SynapseConfiguration, String)returns null, it will resolve the location usingSynapseConfigUtils.resolveRelativeURI(String, String).- Specified by:
getImportInputSourcein interfacejavax.wsdl.xml.WSDLLocator
-
getLatestImportURI
- Specified by:
getLatestImportURIin interfacejavax.wsdl.xml.WSDLLocator
-
getBaseInputSource
- Specified by:
getBaseInputSourcein interfacejavax.wsdl.xml.WSDLLocator
-
getBaseURI
- Specified by:
getBaseURIin interfacejavax.wsdl.xml.WSDLLocator
-
close
public void close()- Specified by:
closein interfacejavax.wsdl.xml.WSDLLocator
-