|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.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.
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. |
Method Summary | |
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. |
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 |
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)
Method Detail |
public void configureEngine(AxisEngine engine) throws ConfigurationException
configureEngine
in interface EngineConfiguration
org.apache.axis.EngineConfiguration
engine
- the AxisEngine we'll deploy state toConfigurationException
- if there was a problempublic void writeEngineConfig(AxisEngine engine) throws ConfigurationException
writeEngineConfig
in interface EngineConfiguration
org.apache.axis.EngineConfiguration
engine
- the AxisEngine from which to read state.ConfigurationException
- if there was a problempublic java.util.Hashtable getGlobalOptions() throws ConfigurationException
getGlobalOptions
in interface EngineConfiguration
org.apache.axis.EngineConfiguration
Hashtable
ConfigurationException
- if the global options could not be
returnedpublic Handler getGlobalResponse() throws ConfigurationException
getGlobalResponse
in interface EngineConfiguration
org.apache.axis.EngineConfiguration
Handler
that globally handles responsesConfigurationException
- if there was some error fetching the
handlerpublic Handler getGlobalRequest() throws ConfigurationException
getGlobalRequest
in interface EngineConfiguration
org.apache.axis.EngineConfiguration
Handler
that globally handles requestsConfigurationException
- if there was some error fetching the
handlerpublic TypeMappingRegistry getTypeMappingRegistry() throws ConfigurationException
getTypeMappingRegistry
in interface EngineConfiguration
org.apache.axis.EngineConfiguration
ConfigurationException
- if there was an error resolving the
registrypublic TypeMapping getTypeMapping(java.lang.String encodingStyle) throws ConfigurationException
public Handler getTransport(QName qname) throws ConfigurationException
EngineConfiguration
getTransport
in interface EngineConfiguration
org.apache.axis.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
org.apache.axis.EngineConfiguration
qname
- the QName
identifying the
Service
Service
associated with qname
ConfigurationException
- if there was an error resolving the
qnamepublic SOAPService getServiceByNamespaceURI(java.lang.String namespace) throws ConfigurationException
getServiceByNamespaceURI
in interface EngineConfiguration
namespace
- a namespace URIpublic Handler getHandler(QName qname) throws ConfigurationException
EngineConfiguration
getHandler
in interface EngineConfiguration
org.apache.axis.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(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 EngineConfiguration
org.apache.axis.EngineConfiguration
Iterator
over the ServiceDesc
objectsConfigurationException
- if the deployed services could not be
returnedServiceDesc
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |