Package org.apache.axis.configuration
Class NullProvider
java.lang.Object
org.apache.axis.configuration.NullProvider
- All Implemented Interfaces:
EngineConfiguration
A do-nothing ConfigurationProvider
- Author:
- Glen Daniels (gdaniels@apache.org)
-
Field Summary
Fields inherited from interface org.apache.axis.EngineConfiguration
PROPERTY_NAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
configureEngine
(AxisEngine engine) Configure this AxisEngine using whatever data source we have.Get an enumeration of the services deployed to this engineReturns the global configuration options.Returns a global request handler.Returns a global response handler.getHandler
(QName qname) Retrieve an instance of the named handler.getRoles()
Get a list of roles that this engine plays globally.getService
(QName qname) Retrieve an instance of the named service.getServiceByNamespaceURI
(String namespace) Get a service which has been mapped to a particular namespace.getTransport
(QName qname) Retrieve an instance of the named transport.getTypeMapping
(String encodingStyle) Retrieve the TypeMappingRegistry for this engine.void
writeEngineConfig
(AxisEngine engine) Read the configuration from an engine, and store it somehow.
-
Constructor Details
-
NullProvider
public NullProvider()
-
-
Method Details
-
configureEngine
Description copied from interface:EngineConfiguration
Configure this AxisEngine using whatever data source we have.- Specified by:
configureEngine
in interfaceEngineConfiguration
- Parameters:
engine
- the AxisEngine we'll deploy state to- Throws:
ConfigurationException
- if there was a problem
-
writeEngineConfig
Description copied from interface:EngineConfiguration
Read the configuration from an engine, and store it somehow.- Specified by:
writeEngineConfig
in interfaceEngineConfiguration
- Parameters:
engine
- the AxisEngine from which to read state.- Throws:
ConfigurationException
- if there was a problem
-
getGlobalOptions
Description copied from interface:EngineConfiguration
Returns the global configuration options.- Specified by:
getGlobalOptions
in interfaceEngineConfiguration
- Returns:
- the global options as a
Hashtable
- Throws:
ConfigurationException
- if the global options could not be returned
-
getGlobalResponse
Description copied from interface:EngineConfiguration
Returns a global response handler.- Specified by:
getGlobalResponse
in interfaceEngineConfiguration
- Returns:
- the
Handler
that globally handles responses - Throws:
ConfigurationException
- if there was some error fetching the handler
-
getGlobalRequest
Description copied from interface:EngineConfiguration
Returns a global request handler.- Specified by:
getGlobalRequest
in interfaceEngineConfiguration
- Returns:
- the
Handler
that globally handles requests - Throws:
ConfigurationException
- if there was some error fetching the handler
-
getTypeMappingRegistry
Description copied from interface:EngineConfiguration
Retrieve the TypeMappingRegistry for this engine.- Specified by:
getTypeMappingRegistry
in interfaceEngineConfiguration
- Returns:
- the type mapping registry
- Throws:
ConfigurationException
- if there was an error resolving the registry
-
getTypeMapping
- Throws:
ConfigurationException
-
getTransport
Description copied from interface:EngineConfiguration
Retrieve an instance of the named transport.- Specified by:
getTransport
in interfaceEngineConfiguration
- Parameters:
qname
- theQName
of the transport- Returns:
- a
Handler
implementing the transport - Throws:
ConfigurationException
- if there was an error resolving the transport
-
getService
Description copied from interface:EngineConfiguration
Retrieve an instance of the named service.- Specified by:
getService
in interfaceEngineConfiguration
- Parameters:
qname
- theQName
identifying theService
- Returns:
- the
Service
associated withqname
- Throws:
ConfigurationException
- if there was an error resolving the qname
-
getServiceByNamespaceURI
Description copied from interface:EngineConfiguration
Get a service which has been mapped to a particular namespace.- Specified by:
getServiceByNamespaceURI
in interfaceEngineConfiguration
- Parameters:
namespace
- a namespace URI- Returns:
- an instance of the appropriate Service, or null
- Throws:
ConfigurationException
- if there was an error resolving the namespace
-
getHandler
Description copied from interface:EngineConfiguration
Retrieve an instance of the named handler.- Specified by:
getHandler
in interfaceEngineConfiguration
- Parameters:
qname
- theQName
identifying theHandler
- Returns:
- the
Handler
associated withqname
- Throws:
ConfigurationException
- if there was a failure in resolvingqname
-
getDeployedServices
Get an enumeration of the services deployed to this engine- Specified by:
getDeployedServices
in interfaceEngineConfiguration
- Returns:
- an
Iterator
over theServiceDesc
objects - Throws:
ConfigurationException
- if the deployed services could not be returned- See Also:
-
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 interfaceEngineConfiguration
- Returns:
- a
List
of the roles for this engine
-