public class SimpleProvider extends Object implements EngineConfiguration
PROPERTY_NAME
Constructor and Description |
---|
SimpleProvider()
Default constructor.
|
SimpleProvider(EngineConfiguration defaultConfiguration)
Constructor which takes an EngineConfiguration which will be used
as the default.
|
SimpleProvider(TypeMappingRegistry typeMappingRegistry)
Construct a SimpleProvider using the supplied TypeMappingRegistry.
|
Modifier and Type | Method and Description |
---|---|
void |
addRole(String role)
Add a role to the configuration's global list
|
void |
configureEngine(AxisEngine engine)
Configure an AxisEngine.
|
void |
deployService(QName qname,
SOAPService service) |
void |
deployService(String name,
SOAPService service) |
void |
deployTransport(QName qname,
Handler transport) |
void |
deployTransport(String name,
Handler transport) |
Iterator |
getDeployedServices()
Get an enumeration of the services deployed to this engine
|
Hashtable |
getGlobalOptions()
Returns the global configuration options.
|
Handler |
getGlobalRequest()
Returns a global request handler.
|
Handler |
getGlobalResponse()
Returns a global response handler.
|
Handler |
getHandler(QName qname)
Retrieve an instance of the named handler.
|
List |
getRoles()
Get a list of roles that this engine plays globally.
|
SOAPService |
getService(QName qname)
Retrieve an instance of the named service.
|
SOAPService |
getServiceByNamespaceURI(String namespace)
Get a service which has been mapped to a particular namespace
|
Handler |
getTransport(QName qname)
Retrieve an instance of the named transport.
|
TypeMapping |
getTypeMapping(String encodingStyle) |
TypeMappingRegistry |
getTypeMappingRegistry()
Get our TypeMappingRegistry.
|
void |
removeRole(String role)
Remove a role from the configuration's global list
|
void |
setGlobalOptions(Hashtable options)
Set the global options Hashtable
|
void |
setGlobalRequest(Handler globalRequest)
Set the global request Handler
|
void |
setGlobalResponse(Handler globalResponse)
Set the global response Handler
|
void |
setRoles(List roles)
Set the global role list for this configuration.
|
void |
writeEngineConfig(AxisEngine engine)
We don't write ourselves out, so this is a noop.
|
public SimpleProvider()
public SimpleProvider(EngineConfiguration defaultConfiguration)
public SimpleProvider(TypeMappingRegistry typeMappingRegistry)
typeMappingRegistry
- public void configureEngine(AxisEngine engine) throws ConfigurationException
configureEngine
in interface EngineConfiguration
engine
- the AxisEngine we'll deploy state toConfigurationException
- if there was a problempublic void writeEngineConfig(AxisEngine engine) throws ConfigurationException
writeEngineConfig
in interface EngineConfiguration
engine
- the AxisEngine from which to read state.ConfigurationException
- if there was a problempublic Hashtable getGlobalOptions() throws ConfigurationException
getGlobalOptions
in interface EngineConfiguration
Hashtable
ConfigurationException
- if the global options could not be
returnedpublic void setGlobalOptions(Hashtable options)
options
- public Handler getGlobalRequest() throws ConfigurationException
getGlobalRequest
in interface EngineConfiguration
Handler
that globally handles requestsConfigurationException
- if there was some error fetching the
handlerpublic void setGlobalRequest(Handler globalRequest)
globalRequest
- public Handler getGlobalResponse() throws ConfigurationException
getGlobalResponse
in interface EngineConfiguration
Handler
that globally handles responsesConfigurationException
- if there was some error fetching the
handlerpublic void setGlobalResponse(Handler globalResponse)
globalResponse
- public TypeMappingRegistry getTypeMappingRegistry() throws ConfigurationException
getTypeMappingRegistry
in interface EngineConfiguration
ConfigurationException
- if there was an error resolving the
registrypublic TypeMapping getTypeMapping(String encodingStyle) throws ConfigurationException
ConfigurationException
public Handler getTransport(QName qname) throws ConfigurationException
EngineConfiguration
getTransport
in interface EngineConfiguration
qname
- the QName
of the transportHandler
implementing the transportConfigurationException
- if there was an error resolving the
transportpublic SOAPService getService(QName qname) throws ConfigurationException
EngineConfiguration
getService
in interface EngineConfiguration
qname
- the QName
identifying the
Service
Service
associated with qname
ConfigurationException
- if there was an error resolving the
qnamepublic SOAPService getServiceByNamespaceURI(String namespace) throws ConfigurationException
getServiceByNamespaceURI
in interface EngineConfiguration
namespace
- a namespace URIConfigurationException
- if there was an error resolving the
namespacepublic Handler getHandler(QName qname) throws ConfigurationException
EngineConfiguration
getHandler
in interface EngineConfiguration
qname
- the QName
identifying the
Handler
Handler
associated with qname
ConfigurationException
- if there was a failure in resolving
qname
public void deployService(QName qname, SOAPService service)
public void deployService(String name, SOAPService service)
public Iterator getDeployedServices() throws ConfigurationException
getDeployedServices
in interface EngineConfiguration
Iterator
over the ServiceDesc
objectsConfigurationException
- if the deployed services could not be
returnedServiceDesc
public void setRoles(List roles)
roles
- public void addRole(String role)
role
- public void removeRole(String role)
role
- public List getRoles()
getRoles
in interface EngineConfiguration
List
of the roles for this engineCopyright © The Apache Software Foundation. All Rights Reserved.