Package org.apache.cxf.wsdl11
Class WSDLManagerImpl
- java.lang.Object
-
- org.apache.cxf.wsdl11.WSDLManagerImpl
-
- All Implemented Interfaces:
WSDLManager
public class WSDLManagerImpl extends Object implements WSDLManager
WSDLManagerImpl
-
-
Constructor Summary
Constructors Constructor Description WSDLManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDefinition(Object key, javax.wsdl.Definition wsdl)Adds a definition into the cache for lookup laterprotected org.apache.cxf.BusgetBus()javax.wsdl.DefinitiongetDefinition(String url)Get the WSDL definition for the given URL.javax.wsdl.DefinitiongetDefinition(Element el)Get the WSDL definition for the given Element.Map<Object,javax.wsdl.Definition>getDefinitions()javax.wsdl.extensions.ExtensionRegistrygetExtensionRegistry()Returns the ExtensionRegistry that the WSDLManager uses when reading WSDL files.org.apache.cxf.service.model.ServiceSchemaInfogetSchemasForDefinition(javax.wsdl.Definition wsdl)This object will cache the schemas for a WSDL.javax.wsdl.factory.WSDLFactorygetWSDLFactory()Returns the WSDLFactory that is used to read/write WSDL definitionsbooleanisDisableSchemaCache()protected javax.wsdl.DefinitionloadDefinition(String url)voidputSchemasForDefinition(javax.wsdl.Definition wsdl, org.apache.cxf.service.model.ServiceSchemaInfo schemas)Register a collection of schemas for a WSDL.voidremoveDefinition(String url)If the definition is cached, remove it from the cachevoidremoveDefinition(javax.wsdl.Definition wsdl)If the definition is cached, remove it from the cachevoidsetBus(org.apache.cxf.Bus b)voidsetDisableSchemaCache(boolean disableSchemaCache)There's a test that 'fails' by succeeding if the cache is operational.voidsetXMLStreamReaderWrapper(org.apache.cxf.staxutils.XMLStreamReaderWrapper wrapper)
-
-
-
Method Detail
-
setBus
public final void setBus(org.apache.cxf.Bus b)
-
getWSDLFactory
public javax.wsdl.factory.WSDLFactory getWSDLFactory()
Description copied from interface:WSDLManagerReturns the WSDLFactory that is used to read/write WSDL definitions- Specified by:
getWSDLFactoryin interfaceWSDLManager- Returns:
- the WSDLFactory
-
getDefinitions
public Map<Object,javax.wsdl.Definition> getDefinitions()
- Specified by:
getDefinitionsin interfaceWSDLManager- Returns:
- all Definitions in the map
-
getBus
protected org.apache.cxf.Bus getBus()
-
getExtensionRegistry
public javax.wsdl.extensions.ExtensionRegistry getExtensionRegistry()
Description copied from interface:WSDLManagerReturns the ExtensionRegistry that the WSDLManager uses when reading WSDL files. Users can use this to register their own extensors.- Specified by:
getExtensionRegistryin interfaceWSDLManager- Returns:
- the ExtensionRegistry
-
getDefinition
public javax.wsdl.Definition getDefinition(String url) throws javax.wsdl.WSDLException
Description copied from interface:WSDLManagerGet 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:
getDefinitionin interfaceWSDLManager- 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:WSDLManagerGet 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:
getDefinitionin interfaceWSDLManager- 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:WSDLManagerAdds a definition into the cache for lookup later- Specified by:
addDefinitionin interfaceWSDLManager
-
loadDefinition
protected javax.wsdl.Definition loadDefinition(String url) throws javax.wsdl.WSDLException
- Throws:
javax.wsdl.WSDLException
-
setXMLStreamReaderWrapper
public void setXMLStreamReaderWrapper(org.apache.cxf.staxutils.XMLStreamReaderWrapper wrapper)
-
getSchemasForDefinition
public org.apache.cxf.service.model.ServiceSchemaInfo getSchemasForDefinition(javax.wsdl.Definition wsdl)
Description copied from interface:WSDLManagerThis object will cache the schemas for a WSDL.- Specified by:
getSchemasForDefinitionin interfaceWSDLManager- Returns:
- the cache of all the schemas in the wsdl
-
putSchemasForDefinition
public void putSchemasForDefinition(javax.wsdl.Definition wsdl, org.apache.cxf.service.model.ServiceSchemaInfo schemas)Description copied from interface:WSDLManagerRegister a collection of schemas for a WSDL.- Specified by:
putSchemasForDefinitionin interfaceWSDLManager
-
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:WSDLManagerIf the definition is cached, remove it from the cache- Specified by:
removeDefinitionin interfaceWSDLManager
-
removeDefinition
public void removeDefinition(String url)
Description copied from interface:WSDLManagerIf the definition is cached, remove it from the cache- Specified by:
removeDefinitionin interfaceWSDLManager
-
-