|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.axis.configuration.SimpleProvider
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.
| Field Summary |
| Fields inherited from interface org.apache.axis.EngineConfiguration |
PROPERTY_NAME |
| Constructor Summary | |
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. |
|
| Method Summary | |
void |
addRole(java.lang.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(java.lang.String name,
SOAPService service)
|
void |
deployTransport(QName qname,
Handler transport)
|
void |
deployTransport(java.lang.String name,
Handler transport)
|
java.util.Iterator |
getDeployedServices()
Get an enumeration of the services deployed to this engine |
java.util.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. |
java.util.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(java.lang.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(java.lang.String encodingStyle)
|
TypeMappingRegistry |
getTypeMappingRegistry()
Get our TypeMappingRegistry. |
void |
removeRole(java.lang.String role)
Remove a role from the configuration's global list |
void |
setGlobalOptions(java.util.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(java.util.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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SimpleProvider()
public SimpleProvider(EngineConfiguration defaultConfiguration)
public SimpleProvider(TypeMappingRegistry typeMappingRegistry)
typeMappingRegistry - | Method Detail |
public void configureEngine(AxisEngine engine)
throws ConfigurationException
configureEngine in interface EngineConfigurationengine - the AxisEngine we'll deploy state to
ConfigurationException - if there was a problem
public void writeEngineConfig(AxisEngine engine)
throws ConfigurationException
writeEngineConfig in interface EngineConfigurationengine - the AxisEngine from which to read state.
ConfigurationException - if there was a problem
public java.util.Hashtable getGlobalOptions()
throws ConfigurationException
getGlobalOptions in interface EngineConfigurationHashtable
ConfigurationException - if the global options could not be
returnedpublic void setGlobalOptions(java.util.Hashtable options)
options -
public Handler getGlobalRequest()
throws ConfigurationException
getGlobalRequest in interface EngineConfigurationHandler that globally handles requests
ConfigurationException - if there was some error fetching the
handlerpublic void setGlobalRequest(Handler globalRequest)
globalRequest -
public Handler getGlobalResponse()
throws ConfigurationException
getGlobalResponse in interface EngineConfigurationHandler that globally handles responses
ConfigurationException - if there was some error fetching the
handlerpublic void setGlobalResponse(Handler globalResponse)
globalResponse -
public TypeMappingRegistry getTypeMappingRegistry()
throws ConfigurationException
getTypeMappingRegistry in interface EngineConfigurationConfigurationException - if there was an error resolving the
registry
public TypeMapping getTypeMapping(java.lang.String encodingStyle)
throws ConfigurationException
ConfigurationException
public Handler getTransport(QName qname)
throws ConfigurationException
EngineConfiguration
getTransport in interface EngineConfigurationqname - the QName of the transport
Handler implementing the transport
ConfigurationException - if there was an error resolving the
transport
public SOAPService getService(QName qname)
throws ConfigurationException
EngineConfiguration
getService in interface EngineConfigurationqname - the QName identifying the
Service
Service associated with qname
ConfigurationException - if there was an error resolving the
qname
public SOAPService getServiceByNamespaceURI(java.lang.String namespace)
throws ConfigurationException
getServiceByNamespaceURI in interface EngineConfigurationnamespace - a namespace URI
ConfigurationException - if there was an error resolving the
namespace
public Handler getHandler(QName qname)
throws ConfigurationException
EngineConfiguration
getHandler in interface EngineConfigurationqname - 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(java.lang.String name,
SOAPService service)
public void deployTransport(QName qname,
Handler transport)
public void deployTransport(java.lang.String name,
Handler transport)
public java.util.Iterator getDeployedServices()
throws ConfigurationException
getDeployedServices in interface EngineConfigurationIterator over the ServiceDesc
objects
ConfigurationException - if the deployed services could not be
returnedServiceDescpublic void setRoles(java.util.List roles)
roles - public void addRole(java.lang.String role)
role - public void removeRole(java.lang.String role)
role - public java.util.List getRoles()
getRoles in interface EngineConfigurationList of the roles for this engine
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||