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 void
close()
InputSource
getBaseInputSource()
String
getBaseURI()
InputSource
getImportInputSource(String parentLocation, String relativeLocation)
Resolve a schema or WSDL import.String
getLatestImportURI()
void
init(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:
init
in 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 configuredResourceMap
object. If this fails (because noResourceMap
is configured or becauseResourceMap.resolve(SynapseConfiguration, String)
returns null, it will resolve the location usingSynapseConfigUtils.resolveRelativeURI(String, String)
.- Specified by:
getImportInputSource
in interfacejavax.wsdl.xml.WSDLLocator
-
getLatestImportURI
public String getLatestImportURI()
- Specified by:
getLatestImportURI
in interfacejavax.wsdl.xml.WSDLLocator
-
getBaseInputSource
public InputSource getBaseInputSource()
- Specified by:
getBaseInputSource
in interfacejavax.wsdl.xml.WSDLLocator
-
getBaseURI
public String getBaseURI()
- Specified by:
getBaseURI
in interfacejavax.wsdl.xml.WSDLLocator
-
close
public void close()
- Specified by:
close
in interfacejavax.wsdl.xml.WSDLLocator
-
-