| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.apache.axis.configuration.SimpleProviderFields inherited from interface org.apache.axis.EngineConfiguration | |
PROPERTY_NAME | |
Constructor Summary | |
| |
| |
| |
Method Summary | |
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
Iterator |
|
Hashtable |
|
Handler |
|
Handler |
|
Handler |
|
List |
|
SOAPService |
|
SOAPService |
|
Handler |
|
TypeMapping |
|
TypeMappingRegistry |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
public SimpleProvider()
Default constructor.
public SimpleProvider(EngineConfiguration defaultConfiguration)
Constructor which takes an EngineConfiguration which will be used as the default.
public SimpleProvider(TypeMappingRegistry typeMappingRegistry)
Construct a SimpleProvider using the supplied TypeMappingRegistry.
- Parameters:
typeMappingRegistry-
public void addRole(String role)
Add a role to the configuration's global list
- Parameters:
role-
public void configureEngine(AxisEngine engine) throws ConfigurationException
Configure an AxisEngine. Right now just calls the default configuration if there is one, since we don't do anything special.
- Specified by:
- configureEngine in interface EngineConfiguration
public Iterator getDeployedServices()
throws ConfigurationExceptionGet an enumeration of the services deployed to this engine
- Specified by:
- getDeployedServices in interface EngineConfiguration
public Hashtable getGlobalOptions()
throws ConfigurationExceptionReturns the global configuration options.
- Specified by:
- getGlobalOptions in interface EngineConfiguration
public Handler getGlobalRequest() throws ConfigurationException
Returns a global request handler.
- Specified by:
- getGlobalRequest in interface EngineConfiguration
public Handler getGlobalResponse() throws ConfigurationException
Returns a global response handler.
- Specified by:
- getGlobalResponse in interface EngineConfiguration
public Handler getHandler(QName qname) throws ConfigurationException
Retrieve an instance of the named handler.
- Specified by:
- getHandler in interface EngineConfiguration
- Parameters:
qname- theQNameidentifying theHandler
- Returns:
- the
Handlerassociated withqname
- Throws:
ConfigurationException- if there was a failure in resolvingqname
public 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
Listof the roles for this engine
public SOAPService getService(QName qname) throws ConfigurationException
Retrieve an instance of the named service.
- Specified by:
- getService in interface EngineConfiguration
- Parameters:
qname- theQNameidentifying theService
- Returns:
- the
Serviceassociated withqname
- Throws:
ConfigurationException- if there was an error resolving the qname
public SOAPService getServiceByNamespaceURI(String namespace) throws ConfigurationException
Get a service which has been mapped to a particular namespace
- Specified by:
- getServiceByNamespaceURI in interface EngineConfiguration
- Parameters:
namespace- a namespace URI
- Returns:
- an instance of the appropriate Service, or null
public Handler getTransport(QName qname) throws ConfigurationException
Retrieve an instance of the named transport.
- Specified by:
- getTransport in interface EngineConfiguration
- Parameters:
qname- theQNameof the transport
- Returns:
- a
Handlerimplementing the transport
- Throws:
ConfigurationException- if there was an error resolving the transport
public TypeMappingRegistry getTypeMappingRegistry() throws ConfigurationException
Get our TypeMappingRegistry. Returns our specific one if we have one, otherwise the one from our defaultConfiguration. If we don't have one and also don't have a defaultConfiguration, we create one.
- Specified by:
- getTypeMappingRegistry in interface EngineConfiguration
public void removeRole(String role)
Remove a role from the configuration's global list
- Parameters:
role-
public void setGlobalOptions(Hashtable options)
Set the global options Hashtable
- Parameters:
options-
public void setGlobalRequest(Handler globalRequest)
Set the global request Handler
- Parameters:
globalRequest-
public void setGlobalResponse(Handler globalResponse)
Set the global response Handler
- Parameters:
globalResponse-
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.
- Parameters:
roles-
public void writeEngineConfig(AxisEngine engine) throws ConfigurationException
We don't write ourselves out, so this is a noop.
- Specified by:
- writeEngineConfig in interface EngineConfiguration