org.apache.axis.configuration
Class SimpleProvider
java.lang.Object
org.apache.axis.configuration.SimpleProvider
- EngineConfiguration
public class SimpleProvider
extends java.lang.Object
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.
- Glen Daniels (gdaniels@apache.org)
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.
typeMappingRegistry
-
addRole
public void addRole(String role)
Add a role to the configuration's global list
role
-
deployService
public void deployService(String name,
SOAPService service)
deployTransport
public void deployTransport(String name,
Handler transport)
deployTransport
public void deployTransport(QName qname,
Handler transport)
getRoles
public List getRoles()
Get a list of roles that this engine plays globally. Services
within the engine configuration may also add additional roles.
- getRoles in interface EngineConfiguration
- a
List
of the roles for this engine
removeRole
public void removeRole(String role)
Remove a role from the configuration's global list
role
-
setGlobalOptions
public void setGlobalOptions(Hashtable options)
Set the global options Hashtable
options
-
setGlobalRequest
public void setGlobalRequest(Handler globalRequest)
Set the global request Handler
globalRequest
-
setGlobalResponse
public void setGlobalResponse(Handler globalResponse)
Set the global response Handler
globalResponse
-
setRoles
public void setRoles(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.
roles
-
Copyright B) 2005 Apache Web Services Project. All Rights Reserved.