Class WSDLManagerImpl

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

public class WSDLManagerImpl extends Object implements WSDLManager
WSDLManagerImpl
  • 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: 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
    • getBus

      protected org.apache.cxf.Bus getBus()
    • 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
    • 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: 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, org.apache.cxf.service.model.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
    • removeDefinition

      public void removeDefinition(String url)
      Description copied from interface: WSDLManager
      If the definition is cached, remove it from the cache
      Specified by:
      removeDefinition in interface WSDLManager