Tuscany Core

org.apache.tuscany.core.loader.impl
Class WSDLDefinitionRegistryImpl

java.lang.Object
  extended by org.apache.tuscany.core.loader.impl.WSDLDefinitionRegistryImpl
All Implemented Interfaces:
WSDLDefinitionRegistry

public class WSDLDefinitionRegistryImpl
extends java.lang.Object
implements WSDLDefinitionRegistry

Version:
$Rev$ $Date$

Nested Class Summary
static interface WSDLDefinitionRegistryImpl.Monitor
           
 
Constructor Summary
WSDLDefinitionRegistryImpl()
           
 
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.
 void setMonitor(WSDLDefinitionRegistryImpl.Monitor monitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSDLDefinitionRegistryImpl

public WSDLDefinitionRegistryImpl()
                           throws javax.wsdl.WSDLException
Throws:
javax.wsdl.WSDLException
Method Detail

setMonitor

public void setMonitor(WSDLDefinitionRegistryImpl.Monitor monitor)

getExtensionRegistry

public javax.wsdl.extensions.ExtensionRegistry getExtensionRegistry()
Description copied from interface: WSDLDefinitionRegistry
Returns the ExtensionRegistry that is used when parsing WSDL documents during the loadDefinition call.

Specified by:
getExtensionRegistry in interface WSDLDefinitionRegistry
Returns:
the ExtensionRegistry that is used when parsing WSDL documents.

loadDefinition

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

Specified by:
loadDefinition in interface WSDLDefinitionRegistry
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

loadDefinition

public 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
Description copied from interface: WSDLDefinitionRegistry
Loads and registers a WSDL Definition.

Specified by:
loadDefinition in interface WSDLDefinitionRegistry
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

getDefinitionsForNamespace

public java.util.List<javax.wsdl.Definition> getDefinitionsForNamespace(java.lang.String namespace,
                                                                        org.apache.tuscany.common.resource.ResourceLoader resourceLoader)
Description copied from interface: WSDLDefinitionRegistry
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

Specified by:
getDefinitionsForNamespace in interface WSDLDefinitionRegistry
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

getPortType

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

Specified by:
getPortType in interface WSDLDefinitionRegistry
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

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

Specified by:
getService in interface WSDLDefinitionRegistry
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

Tuscany Core

-