Package org.apache.cxf.wsdl
Interface WSDLManager
- All Known Implementing Classes:
WSDLManagerImpl
public interface WSDLManager
WSDLManager
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddDefinition(Object key, javax.wsdl.Definition wsdl) Adds a definition into the cache for lookup laterjavax.wsdl.DefinitiongetDefinition(String url) Get the WSDL definition for the given URL.javax.wsdl.DefinitiongetDefinition(Element element) 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 definitionsvoidputSchemasForDefinition(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 cache
-
Method Details
-
getExtensionRegistry
javax.wsdl.extensions.ExtensionRegistry getExtensionRegistry()Returns the ExtensionRegistry that the WSDLManager uses when reading WSDL files. Users can use this to register their own extensors.- Returns:
- the ExtensionRegistry
-
getWSDLFactory
javax.wsdl.factory.WSDLFactory getWSDLFactory()Returns the WSDLFactory that is used to read/write WSDL definitions- Returns:
- the WSDLFactory
-
getDefinition
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
-
getDefinition
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.- Parameters:
element- - the root element of the wsdl- Returns:
- the wsdl definition
- Throws:
javax.wsdl.WSDLException
-
addDefinition
Adds a definition into the cache for lookup later- Parameters:
key-wsdl-
-
getDefinitions
- Returns:
- all Definitions in the map
-
getSchemasForDefinition
org.apache.cxf.service.model.ServiceSchemaInfo getSchemasForDefinition(javax.wsdl.Definition wsdl) This object will cache the schemas for a WSDL.- Parameters:
wsdl-- Returns:
- the cache of all the schemas in the wsdl
-
putSchemasForDefinition
void putSchemasForDefinition(javax.wsdl.Definition wsdl, org.apache.cxf.service.model.ServiceSchemaInfo schemas) Register a collection of schemas for a WSDL.- Parameters:
wsdl-schemas-
-
removeDefinition
void removeDefinition(javax.wsdl.Definition wsdl) If the definition is cached, remove it from the cache- Parameters:
wsdl-
-
removeDefinition
If the definition is cached, remove it from the cache- Parameters:
url-
-