Package org.apache.axis.configuration
Class DirProvider
- java.lang.Object
-
- org.apache.axis.configuration.DirProvider
-
- All Implemented Interfaces:
EngineConfiguration,WSDDEngineConfiguration
public class DirProvider extends java.lang.Object implements WSDDEngineConfiguration
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.commons.logging.Loglog-
Fields inherited from interface org.apache.axis.EngineConfiguration
PROPERTY_NAME
-
-
Constructor Summary
Constructors Constructor Description DirProvider(java.lang.String basepath)DirProvider(java.lang.String basepath, java.lang.String configFile)
-
Method Summary
All Methods Instance Methods Concrete 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 engineWSDDDeploymentgetDeployment()Get the WSDDDeployment for this engine configuration.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 handlerjava.util.ListgetRoles()Get a list of roles that this engine plays globally.SOAPServicegetService(QName qname)retrieve an instance of the named serviceSOAPServicegetServiceByNamespaceURI(java.lang.String namespace)Get a service which has been mapped to a particular namespaceHandlergetTransport(QName qname)retrieve an instance of the named transportTypeMappingRegistrygetTypeMappingRegistry()Retrieve the TypeMappingRegistry for this engine.voidwriteEngineConfig(AxisEngine engine)Save the engine configuration.
-
-
-
Constructor Detail
-
DirProvider
public DirProvider(java.lang.String basepath) throws ConfigurationException- Throws:
ConfigurationException
-
DirProvider
public DirProvider(java.lang.String basepath, java.lang.String configFile) throws ConfigurationException- Throws:
ConfigurationException
-
-
Method Detail
-
getDeployment
public WSDDDeployment getDeployment()
Description copied from interface:WSDDEngineConfigurationGet the WSDDDeployment for this engine configuration.- Specified by:
getDeploymentin interfaceWSDDEngineConfiguration- Returns:
- the WSDDDeployment
-
configureEngine
public void configureEngine(AxisEngine engine) throws ConfigurationException
Description copied from interface:EngineConfigurationConfigure this AxisEngine using whatever data source we have.- Specified by:
configureEnginein interfaceEngineConfiguration- Parameters:
engine- the AxisEngine we'll deploy state to- Throws:
ConfigurationException- if there was a problem
-
writeEngineConfig
public void writeEngineConfig(AxisEngine engine) throws ConfigurationException
Save the engine configuration. In case there's a problem, we write it to a string before saving it out to the actual file so we don't screw up the file.- Specified by:
writeEngineConfigin interfaceEngineConfiguration- Parameters:
engine- the AxisEngine from which to read state.- Throws:
ConfigurationException- if there was a problem
-
getHandler
public Handler getHandler(QName qname) throws ConfigurationException
retrieve an instance of the named handler- Specified by:
getHandlerin interfaceEngineConfiguration- Parameters:
qname- XXX- Returns:
- XXX
- Throws:
ConfigurationException- XXX
-
getService
public SOAPService getService(QName qname) throws ConfigurationException
retrieve an instance of the named service- Specified by:
getServicein interfaceEngineConfiguration- Parameters:
qname- XXX- Returns:
- XXX
- Throws:
ConfigurationException- XXX
-
getServiceByNamespaceURI
public SOAPService getServiceByNamespaceURI(java.lang.String namespace) throws ConfigurationException
Get a service which has been mapped to a particular namespace- Specified by:
getServiceByNamespaceURIin 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
-
getTransport
public Handler getTransport(QName qname) throws ConfigurationException
retrieve an instance of the named transport- Specified by:
getTransportin interfaceEngineConfiguration- Parameters:
qname- XXX- Returns:
- XXX
- Throws:
ConfigurationException- XXX
-
getTypeMappingRegistry
public TypeMappingRegistry getTypeMappingRegistry() throws ConfigurationException
Description copied from interface:EngineConfigurationRetrieve the TypeMappingRegistry for this engine.- Specified by:
getTypeMappingRegistryin interfaceEngineConfiguration- Returns:
- the type mapping registry
- Throws:
ConfigurationException- if there was an error resolving the registry
-
getGlobalRequest
public Handler getGlobalRequest() throws ConfigurationException
Returns a global request handler.- Specified by:
getGlobalRequestin interfaceEngineConfiguration- Returns:
- the
Handlerthat globally handles requests - Throws:
ConfigurationException- if there was some error fetching the handler
-
getGlobalResponse
public Handler getGlobalResponse() throws ConfigurationException
Returns a global response handler.- Specified by:
getGlobalResponsein interfaceEngineConfiguration- Returns:
- the
Handlerthat globally handles responses - Throws:
ConfigurationException- if there was some error fetching the handler
-
getGlobalOptions
public java.util.Hashtable getGlobalOptions() throws ConfigurationExceptionReturns the global configuration options.- Specified by:
getGlobalOptionsin interfaceEngineConfiguration- Returns:
- the global options as a
Hashtable - Throws:
ConfigurationException- if the global options could not be returned
-
getDeployedServices
public java.util.Iterator getDeployedServices() throws ConfigurationExceptionGet an enumeration of the services deployed to this engine- Specified by:
getDeployedServicesin interfaceEngineConfiguration- Returns:
- an
Iteratorover theServiceDescobjects - Throws:
ConfigurationException- if the deployed services could not be returned- See Also:
ServiceDesc
-
getRoles
public java.util.List getRoles()
Get a list of roles that this engine plays globally. Services within the engine configuration may also add additional roles.- Specified by:
getRolesin interfaceEngineConfiguration- Returns:
- a
Listof the roles for this engine
-
-