Apache CXF API

org.apache.cxf.wsdl11
Class WSDLManagerImpl

java.lang.Object
  extended by org.apache.cxf.wsdl11.WSDLManagerImpl
All Implemented Interfaces:
WSDLManager

public class WSDLManagerImpl
extends Object
implements WSDLManager

WSDLManagerImpl


Constructor Summary
WSDLManagerImpl()
           
 
Method Summary
 void addDefinition(Object key, javax.wsdl.Definition wsdl)
          Adds a definition into the cache for lookup later
 javax.wsdl.Definition getDefinition(Element el)
          Get the WSDL definition for the given Element.
 javax.wsdl.Definition getDefinition(String url)
          Get the WSDL definition for the given URL.
 Map<Object,javax.wsdl.Definition> getDefinitions()
           
 javax.wsdl.extensions.ExtensionRegistry getExtensionRegistry()
          Returns the ExtensionRegistry that the WSDLManager uses when reading WSDL files.
 ServiceSchemaInfo getSchemasForDefinition(javax.wsdl.Definition wsdl)
          This object will cache the schemas for a WSDL.
 javax.wsdl.factory.WSDLFactory getWSDLFactory()
          Returns the WSDLFactory that is used to read/write WSDL definitions
 boolean isDisableSchemaCache()
           
 void putSchemasForDefinition(javax.wsdl.Definition wsdl, ServiceSchemaInfo schemas)
          Register a collection of schemas for a WSDL.
 void removeDefinition(javax.wsdl.Definition wsdl)
          If the definition is cached, remove it from the cache
 void setBus(Bus b)
           
 void setDisableSchemaCache(boolean disableSchemaCache)
          There's a test that 'fails' by succeeding if the cache is operational.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSDLManagerImpl

public WSDLManagerImpl()
                throws BusException
Throws:
BusException
Method Detail

setBus

public final void setBus(Bus b)

getWSDLFactory

public javax.wsdl.factory.WSDLFactory getWSDLFactory()
Description copied from interface: WSDLManager
Returns the WSDLFactory that is used to read/write WSDL definitions

Specified by:
getWSDLFactory in interface WSDLManager
Returns:
the WSDLFactory

getDefinitions

public Map<Object,javax.wsdl.Definition> getDefinitions()
Specified by:
getDefinitions in interface WSDLManager
Returns:
all Definitions in the map

getExtensionRegistry

public javax.wsdl.extensions.ExtensionRegistry getExtensionRegistry()
Description copied from interface: WSDLManager
Returns the ExtensionRegistry that the WSDLManager uses when reading WSDL files. Users can use this to register their own extensors.

Specified by:
getExtensionRegistry in interface WSDLManager
Returns:
the ExtensionRegistry

getDefinition

public javax.wsdl.Definition getDefinition(String url)
                                    throws javax.wsdl.WSDLException
Description copied from interface: WSDLManager
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.

Specified by:
getDefinition in interface WSDLManager
Parameters:
url - - the location of the WSDL to load
Returns:
the wsdl definition
Throws:
javax.wsdl.WSDLException

getDefinition

public javax.wsdl.Definition getDefinition(Element el)
                                    throws javax.wsdl.WSDLException
Description copied from interface: WSDLManager
Get the WSDL definition for the given Element. Implementations may return a copy from a local cache or load a new copy from the Element.

Specified by:
getDefinition in interface WSDLManager
Parameters:
el - - the root element of the wsdl
Returns:
the wsdl definition
Throws:
javax.wsdl.WSDLException

addDefinition

public void addDefinition(Object key,
                          javax.wsdl.Definition wsdl)
Description copied from interface: WSDLManager
Adds a definition into the cache for lookup later

Specified by:
addDefinition in interface WSDLManager

getSchemasForDefinition

public ServiceSchemaInfo getSchemasForDefinition(javax.wsdl.Definition wsdl)
Description copied from interface: WSDLManager
This object will cache the schemas for a WSDL.

Specified by:
getSchemasForDefinition in interface WSDLManager
Returns:
the cache of all the schemas in the wsdl

putSchemasForDefinition

public void putSchemasForDefinition(javax.wsdl.Definition wsdl,
                                    ServiceSchemaInfo schemas)
Description copied from interface: WSDLManager
Register a collection of schemas for a WSDL.

Specified by:
putSchemasForDefinition in interface WSDLManager

isDisableSchemaCache

public boolean isDisableSchemaCache()

setDisableSchemaCache

public void setDisableSchemaCache(boolean disableSchemaCache)
There's a test that 'fails' by succeeding if the cache is operational.

Parameters:
disableSchemaCache -

removeDefinition

public void removeDefinition(javax.wsdl.Definition wsdl)
Description copied from interface: WSDLManager
If the definition is cached, remove it from the cache

Specified by:
removeDefinition in interface WSDLManager

Apache CXF API

Apache CXF