Tuscany Core

org.apache.tuscany.core.loader
Interface WSDLDefinitionRegistry

All Known Implementing Classes:
WSDLDefinitionRegistryImpl

public interface WSDLDefinitionRegistry

Version:
$Rev$ $Date$

Method Summary
 java.util.List<javax.wsdl.Definition> getDefinitionsForNamespace(java.lang.String namespace, org.apache.tuscany.common.resource.ResourceLoader resourceLoader)
          Returns a list of definitions that have been loaded for the given namespace, or null if no WSDL documents have been loaded for the given namespace
 javax.wsdl.extensions.ExtensionRegistry getExtensionRegistry()
          Returns the ExtensionRegistry that is used when parsing WSDL documents during the loadDefinition call.
 javax.wsdl.PortType getPortType(javax.xml.namespace.QName name, org.apache.tuscany.common.resource.ResourceLoader resourceLoader)
          Returns the PortType with the supplied qualified name, or null if no such port has been defined.
 javax.wsdl.Service getService(javax.xml.namespace.QName name, org.apache.tuscany.common.resource.ResourceLoader resourceLoader)
          Returns the Service with the supplied qualified name, or null if no such service has been defined.
 javax.wsdl.Definition loadDefinition(java.lang.String wsdlLocation, org.apache.tuscany.common.resource.ResourceLoader resourceLoader)
          Load and register a WSDL definition as specified in a WSDL2.0 wsdlLocation attribute.
 javax.wsdl.Definition loadDefinition(java.lang.String namespace, java.net.URL location, org.apache.tuscany.common.resource.ResourceLoader resourceLoader)
          Loads and registers a WSDL Definition.
 

Method Detail

loadDefinition

javax.wsdl.Definition loadDefinition(java.lang.String namespace,
                                     java.net.URL location,
                                     org.apache.tuscany.common.resource.ResourceLoader resourceLoader)
                                     throws java.io.IOException,
                                            javax.wsdl.WSDLException
Loads and registers a WSDL Definition.

Parameters:
namespace - the expected namespace, or null if any namespace should be allowed
location - the location to load the definition from
resourceLoader - the application resource loader
Returns:
the loaded Definition
Throws:
java.io.IOException - if there was a problem reading the document
javax.wsdl.WSDLException - if there was a problem parsing the definition

loadDefinition

javax.wsdl.Definition loadDefinition(java.lang.String wsdlLocation,
                                     org.apache.tuscany.common.resource.ResourceLoader resourceLoader)
                                     throws java.io.IOException,
                                            javax.wsdl.WSDLException
Load and register a WSDL definition as specified in a WSDL2.0 wsdlLocation attribute.

Parameters:
wsdlLocation - the value of the wsdlLocation attribute
resourceLoader - application resource loader used to support relative locations
Returns:
the loaded Definition
Throws:
java.io.IOException - if there was a problem reading the document
javax.wsdl.WSDLException - if there was a problem parsing the definition

getPortType

javax.wsdl.PortType getPortType(javax.xml.namespace.QName name,
                                org.apache.tuscany.common.resource.ResourceLoader resourceLoader)
Returns the PortType with the supplied qualified name, or null if no such port has been defined.

Parameters:
name - the qualified name of the WSDL portType
resourceLoader - the application resource loader
Returns:
the PortType for the supplied name, or null if none has been defined

getService

javax.wsdl.Service getService(javax.xml.namespace.QName name,
                              org.apache.tuscany.common.resource.ResourceLoader resourceLoader)
Returns the Service with the supplied qualified name, or null if no such service has been defined.

Parameters:
name - the qualified name of the WSDL service
resourceLoader - the application resource loader
Returns:
the Service for the supplied name, or null if none has been defined

getDefinitionsForNamespace

java.util.List<javax.wsdl.Definition> getDefinitionsForNamespace(java.lang.String namespace,
                                                                 org.apache.tuscany.common.resource.ResourceLoader resourceLoader)
Returns a list of definitions that have been loaded for the given namespace, or null if no WSDL documents have been loaded for the given namespace

Parameters:
namespace - the namespace to lookup
resourceLoader - the application resource loader
Returns:
The list of definitions that have been loaded for the given namespace, or null

getExtensionRegistry

javax.wsdl.extensions.ExtensionRegistry getExtensionRegistry()
Returns the ExtensionRegistry that is used when parsing WSDL documents during the loadDefinition call.

Returns:
the ExtensionRegistry that is used when parsing WSDL documents.

Tuscany Core

-