org.eclipse.swordfish.internal.resolver.backend.local
Interface WSDLManager

All Known Implementing Classes:
WSDLManagerImpl

public interface WSDLManager

Author:
dwolz

Method Summary
 void addDefinition(java.lang.String urlName, javax.wsdl.Definition wsdl)
          Adds a definition into the cache for lookup later
 void addDefinition(java.net.URL url, javax.wsdl.Definition wsdl)
          Adds a definition into the cache for lookup later
 javax.wsdl.Definition getDefinition(java.lang.String url)
          Get the WSDL definition for the given URL.
 java.util.Collection<javax.wsdl.Definition> getDefinitions(javax.xml.namespace.QName portType)
          Get the WSDL definition for the given port type.
 void removeDefinition(javax.wsdl.Definition wsdl)
          Removes a definition from the cache
 void setupWSDLs(java.net.URL wsdlPath)
          Read all WSDL definitions for a given path to a zip file as resource using the class loader.
 

Method Detail

setupWSDLs

void setupWSDLs(java.net.URL wsdlPath)
                throws javax.wsdl.WSDLException,
                       java.io.IOException
Read all WSDL definitions for a given path to a zip file as resource using the class loader.

Parameters:
url - - the location of the WSDL zip file to load
Throws:
javax.wsdl.WSDLException
java.io.IOException

getDefinitions

java.util.Collection<javax.wsdl.Definition> getDefinitions(javax.xml.namespace.QName portType)
                                                           throws javax.wsdl.WSDLException
Get the WSDL definition for the given port type. Implementations return a copy from a local cache

Parameters:
portType - - the portType defined in the wsdl
Returns:
the wsdl definition
Throws:
javax.wsdl.WSDLException

getDefinition

javax.wsdl.Definition getDefinition(java.lang.String url)
                                    throws javax.wsdl.WSDLException
Get the WSDL definition for the given URL. Implementations may return a copy from a local cache or load a new copy from the URL.

Parameters:
url - - the location of the WSDL to load
Returns:
the wsdl definition
Throws:
javax.wsdl.WSDLException

addDefinition

void addDefinition(java.lang.String urlName,
                   javax.wsdl.Definition wsdl)
Adds a definition into the cache for lookup later

Parameters:
key -
wsdl -

addDefinition

void addDefinition(java.net.URL url,
                   javax.wsdl.Definition wsdl)
Adds a definition into the cache for lookup later

Parameters:
key -
wsdl -

removeDefinition

void removeDefinition(javax.wsdl.Definition wsdl)
Removes a definition from the cache

Parameters:
wsdl -