Package org.apache.axis
Interface EngineConfiguration
-
- All Known Subinterfaces:
WSDDEngineConfiguration
- All Known Implementing Classes:
BasicClientConfig,BasicServerConfig,DirProvider,FileProvider,NullProvider,SimpleProvider,WSDDDeployment,XMLStringProvider
public interface EngineConfigurationEngineConfiguration is an interface that the Message Flow subsystem provides so that engine configuration can be provided in a pluggable way. An instance of EngineConfiguration provides configuration for a particular engine instance.Concrete implementations of this interface will obtain configuration information from some source (examples might be files, Strings, or databases) and are responsible for writing it into an AxisEngine, and writing an AxisEngine's state back out to whatever storage medium is in use.
- Author:
- Glyn Normington (glyn@apache.org), Glen Daniels (gdaniels@apache.org)
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPROPERTY_NAMEProperty name used for setting an EngineConfiguration to be used in creating engines.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconfigureEngine(AxisEngine engine)Configure this AxisEngine using whatever data source we have.java.util.IteratorgetDeployedServices()Get an enumeration of the services deployed to this engine.java.util.HashtablegetGlobalOptions()Returns the global configuration options.HandlergetGlobalRequest()Returns a global request handler.HandlergetGlobalResponse()Returns a global response handler.HandlergetHandler(QName qname)Retrieve an instance of the named handler.java.util.ListgetRoles()Get a list of roles that this engine plays globally.SOAPServicegetService(QName qname)Retrieve an instance of the named service.SOAPServicegetServiceByNamespaceURI(java.lang.String namespace)Get a service which has been mapped to a particular namespace.HandlergetTransport(QName qname)Retrieve an instance of the named transport.TypeMappingRegistrygetTypeMappingRegistry()Retrieve the TypeMappingRegistry for this engine.voidwriteEngineConfig(AxisEngine engine)Read the configuration from an engine, and store it somehow.
-
-
-
Field Detail
-
PROPERTY_NAME
static final java.lang.String PROPERTY_NAME
Property name used for setting an EngineConfiguration to be used in creating engines.- See Also:
- Constant Field Values
-
-
Method Detail
-
configureEngine
void configureEngine(AxisEngine engine) throws ConfigurationException
Configure this AxisEngine using whatever data source we have.- Parameters:
engine- the AxisEngine we'll deploy state to- Throws:
ConfigurationException- if there was a problem
-
writeEngineConfig
void writeEngineConfig(AxisEngine engine) throws ConfigurationException
Read the configuration from an engine, and store it somehow.- Parameters:
engine- the AxisEngine from which to read state.- Throws:
ConfigurationException- if there was a problem
-
getHandler
Handler getHandler(QName qname) throws ConfigurationException
Retrieve an instance of the named handler.- Parameters:
qname- theQNameidentifying theHandler- Returns:
- the
Handlerassociated withqname - Throws:
ConfigurationException- if there was a failure in resolvingqname
-
getService
SOAPService getService(QName qname) throws ConfigurationException
Retrieve an instance of the named service.- Parameters:
qname- theQNameidentifying theService- Returns:
- the
Serviceassociated withqname - Throws:
ConfigurationException- if there was an error resolving the qname
-
getServiceByNamespaceURI
SOAPService getServiceByNamespaceURI(java.lang.String namespace) throws ConfigurationException
Get a service which has been mapped to a particular namespace.- Parameters:
namespace- a namespace URI- Returns:
- an instance of the appropriate Service, or null
- Throws:
ConfigurationException- if there was an error resolving the namespace
-
getTransport
Handler getTransport(QName qname) throws ConfigurationException
Retrieve an instance of the named transport.- Parameters:
qname- theQNameof the transport- Returns:
- a
Handlerimplementing the transport - Throws:
ConfigurationException- if there was an error resolving the transport
-
getTypeMappingRegistry
TypeMappingRegistry getTypeMappingRegistry() throws ConfigurationException
Retrieve the TypeMappingRegistry for this engine.- Returns:
- the type mapping registry
- Throws:
ConfigurationException- if there was an error resolving the registry
-
getGlobalRequest
Handler getGlobalRequest() throws ConfigurationException
Returns a global request handler.- Returns:
- the
Handlerthat globally handles requests - Throws:
ConfigurationException- if there was some error fetching the handler
-
getGlobalResponse
Handler getGlobalResponse() throws ConfigurationException
Returns a global response handler.- Returns:
- the
Handlerthat globally handles responses - Throws:
ConfigurationException- if there was some error fetching the handler
-
getGlobalOptions
java.util.Hashtable getGlobalOptions() throws ConfigurationExceptionReturns the global configuration options.- Returns:
- the global options as a
Hashtable - Throws:
ConfigurationException- if the global options could not be returned
-
getDeployedServices
java.util.Iterator getDeployedServices() throws ConfigurationExceptionGet an enumeration of the services deployed to this engine. Each service is represented asServiceDescobject.- Returns:
- an
Iteratorover theServiceDescobjects - Throws:
ConfigurationException- if the deployed services could not be returned- See Also:
ServiceDesc
-
getRoles
java.util.List getRoles()
Get a list of roles that this engine plays globally. Services within the engine configuration may also add additional roles.- Returns:
- a
Listof the roles for this engine
-
-