public class WSDLManagerImpl extends Object implements WSDLManager
Constructor and Description |
---|
WSDLManagerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addDefinition(Object key,
javax.wsdl.Definition wsdl)
Adds a definition into the cache for lookup later
|
protected Bus |
getBus() |
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() |
protected javax.wsdl.Definition |
loadDefinition(String url) |
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.
|
void |
setXMLStreamReaderWrapper(XMLStreamReaderWrapper wrapper) |
public WSDLManagerImpl() throws BusException
BusException
public final void setBus(Bus b)
public javax.wsdl.factory.WSDLFactory getWSDLFactory()
WSDLManager
getWSDLFactory
in interface WSDLManager
public Map<Object,javax.wsdl.Definition> getDefinitions()
getDefinitions
in interface WSDLManager
protected Bus getBus()
public javax.wsdl.extensions.ExtensionRegistry getExtensionRegistry()
WSDLManager
getExtensionRegistry
in interface WSDLManager
public javax.wsdl.Definition getDefinition(String url) throws javax.wsdl.WSDLException
WSDLManager
getDefinition
in interface WSDLManager
url
- - the location of the WSDL to loadjavax.wsdl.WSDLException
public javax.wsdl.Definition getDefinition(Element el) throws javax.wsdl.WSDLException
WSDLManager
getDefinition
in interface WSDLManager
el
- - the root element of the wsdljavax.wsdl.WSDLException
public void addDefinition(Object key, javax.wsdl.Definition wsdl)
WSDLManager
addDefinition
in interface WSDLManager
protected javax.wsdl.Definition loadDefinition(String url) throws javax.wsdl.WSDLException
javax.wsdl.WSDLException
public void setXMLStreamReaderWrapper(XMLStreamReaderWrapper wrapper)
public ServiceSchemaInfo getSchemasForDefinition(javax.wsdl.Definition wsdl)
WSDLManager
getSchemasForDefinition
in interface WSDLManager
public void putSchemasForDefinition(javax.wsdl.Definition wsdl, ServiceSchemaInfo schemas)
WSDLManager
putSchemasForDefinition
in interface WSDLManager
public boolean isDisableSchemaCache()
public void setDisableSchemaCache(boolean disableSchemaCache)
disableSchemaCache
- public void removeDefinition(javax.wsdl.Definition wsdl)
WSDLManager
removeDefinition
in interface WSDLManager
Apache CXF