Package org.apache.cxf.wsdl11
Class WSDLManagerImpl
java.lang.Object
org.apache.cxf.wsdl11.WSDLManagerImpl
- All Implemented Interfaces:
WSDLManager
WSDLManagerImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDefinition(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.javax.wsdl.extensions.ExtensionRegistryReturns 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.WSDLFactoryReturns the WSDLFactory that is used to read/write WSDL definitionsbooleanprotected 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 cachefinal voidsetBus(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)
-
Constructor Details
-
WSDLManagerImpl
public WSDLManagerImpl() throws org.apache.cxf.BusException- Throws:
org.apache.cxf.BusException
-
-
Method Details
-
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
- 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
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
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
Description copied from interface:WSDLManagerAdds a definition into the cache for lookup later- Specified by:
addDefinitionin interfaceWSDLManager
-
loadDefinition
- 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
Description copied from interface:WSDLManagerIf the definition is cached, remove it from the cache- Specified by:
removeDefinitionin interfaceWSDLManager
-