Class SimpleProvider

  • All Implemented Interfaces:
    EngineConfiguration
    Direct Known Subclasses:
    BasicClientConfig, BasicServerConfig

    public class SimpleProvider
    extends java.lang.Object
    implements EngineConfiguration
    A SimpleProvider is an EngineConfiguration which contains a simple HashMap-based registry of Handlers, Transports, and Services. This is for when you want to programatically deploy components which you create. SimpleProvider may also optionally contain a reference to a "default" EngineConfiguration, which will be scanned for components not found in the internal registry. This is handy when you want to start with a base configuration (like the default WSDD) and then quickly add stuff without changing the WSDD document.
    Author:
    Glen Daniels (gdaniels@apache.org)
    • Constructor Detail

      • SimpleProvider

        public SimpleProvider()
        Default constructor.
      • SimpleProvider

        public SimpleProvider​(EngineConfiguration defaultConfiguration)
        Constructor which takes an EngineConfiguration which will be used as the default.
      • SimpleProvider

        public SimpleProvider​(TypeMappingRegistry typeMappingRegistry)
        Construct a SimpleProvider using the supplied TypeMappingRegistry.
        Parameters:
        typeMappingRegistry -
    • Method Detail

      • setGlobalOptions

        public void setGlobalOptions​(java.util.Hashtable options)
        Set the global options Hashtable
        Parameters:
        options -
      • setGlobalRequest

        public void setGlobalRequest​(Handler globalRequest)
        Set the global request Handler
        Parameters:
        globalRequest -
      • setGlobalResponse

        public void setGlobalResponse​(Handler globalResponse)
        Set the global response Handler
        Parameters:
        globalResponse -
      • deployService

        public void deployService​(QName qname,
                                  SOAPService service)
      • deployService

        public void deployService​(java.lang.String name,
                                  SOAPService service)
      • deployTransport

        public void deployTransport​(QName qname,
                                    Handler transport)
      • deployTransport

        public void deployTransport​(java.lang.String name,
                                    Handler transport)
      • setRoles

        public void setRoles​(java.util.List roles)
        Set the global role list for this configuration. Note that we use the actual passed value, so if anyone else changes that collection, our role list will change. Be careful to pass this a cloned list if you want to change the list later without affecting the config.
        Parameters:
        roles -
      • addRole

        public void addRole​(java.lang.String role)
        Add a role to the configuration's global list
        Parameters:
        role -
      • removeRole

        public void removeRole​(java.lang.String role)
        Remove a role from the configuration's global list
        Parameters:
        role -
      • getRoles

        public java.util.List getRoles()
        Get a list of roles that this engine plays globally. Services within the engine configuration may also add additional roles.
        Specified by:
        getRoles in interface EngineConfiguration
        Returns:
        a List of the roles for this engine