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 Constructor Description RegistryWSDLLocator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()InputSourcegetBaseInputSource()StringgetBaseURI()InputSourcegetImportInputSource(String parentLocation, String relativeLocation)Resolve a schema or WSDL import.StringgetLatestImportURI()voidinit(InputSource baseInputSource, String baseURI, org.apache.synapse.util.resolver.ResourceMap resourceMap, org.apache.synapse.config.SynapseConfiguration synCfg, String wsdlKey)
-
-
-
Method Detail
-
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
public InputSource getImportInputSource(String parentLocation, String relativeLocation)
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
public String getLatestImportURI()
- Specified by:
getLatestImportURIin interfacejavax.wsdl.xml.WSDLLocator
-
getBaseInputSource
public InputSource getBaseInputSource()
- Specified by:
getBaseInputSourcein interfacejavax.wsdl.xml.WSDLLocator
-
getBaseURI
public String getBaseURI()
- Specified by:
getBaseURIin interfacejavax.wsdl.xml.WSDLLocator
-
close
public void close()
- Specified by:
closein interfacejavax.wsdl.xml.WSDLLocator
-
-