org.apache.axis.configuration

Class DirProvider

Implemented Interfaces:
EngineConfiguration, WSDDEngineConfiguration

public class DirProvider
extends java.lang.Object
implements WSDDEngineConfiguration

Field Summary

protected static Log
log

Fields inherited from interface org.apache.axis.EngineConfiguration

PROPERTY_NAME

Constructor Summary

DirProvider(String basepath)
DirProvider(String basepath, String configFile)

Method Summary

void
configureEngine(AxisEngine engine)
Iterator
getDeployedServices()
Get an enumeration of the services deployed to this engine
WSDDDeployment
getDeployment()
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
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(String namespace)
Get a service which has been mapped to a particular namespace
Handler
getTransport(QName qname)
retrieve an instance of the named transport
TypeMappingRegistry
getTypeMappingRegistry()
void
writeEngineConfig(AxisEngine engine)
Save the engine configuration.

Field Details

log

protected static Log log

Constructor Details

DirProvider

public DirProvider(String basepath)
            throws ConfigurationException


DirProvider

public DirProvider(String basepath,
                   String configFile)
            throws ConfigurationException

Method Details

configureEngine

public void configureEngine(AxisEngine engine)
            throws ConfigurationException
Specified by:
configureEngine in interface EngineConfiguration


getDeployedServices

public Iterator getDeployedServices()
            throws ConfigurationException
Get an enumeration of the services deployed to this engine
Specified by:
getDeployedServices in interface EngineConfiguration


getDeployment

public WSDDDeployment getDeployment()
Specified by:
getDeployment in interface WSDDEngineConfiguration


getGlobalOptions

public Hashtable getGlobalOptions()
            throws ConfigurationException
Returns the global configuration options.
Specified by:
getGlobalOptions in interface EngineConfiguration


getGlobalRequest

public Handler getGlobalRequest()
            throws ConfigurationException
Returns a global request handler.
Specified by:
getGlobalRequest in interface EngineConfiguration


getGlobalResponse

public Handler getGlobalResponse()
            throws ConfigurationException
Returns a global response handler.
Specified by:
getGlobalResponse in interface EngineConfiguration


getHandler

public Handler getHandler(QName qname)
            throws ConfigurationException
retrieve an instance of the named handler
Specified by:
getHandler in interface EngineConfiguration

Parameters:
qname - XXX

Returns:
XXX

Throws:
ConfigurationException - XXX


getRoles

public List 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 interface EngineConfiguration

Returns:
a List of the roles for this engine


getService

public SOAPService getService(QName qname)
            throws ConfigurationException
retrieve an instance of the named service
Specified by:
getService in interface EngineConfiguration

Parameters:
qname - XXX

Returns:
XXX

Throws:
ConfigurationException - XXX


getServiceByNamespaceURI

public SOAPService getServiceByNamespaceURI(String namespace)
            throws ConfigurationException
Get a service which has been mapped to a particular namespace
Specified by:
getServiceByNamespaceURI in interface EngineConfiguration

Parameters:
namespace - a namespace URI

Returns:
an instance of the appropriate Service, or null


getTransport

public Handler getTransport(QName qname)
            throws ConfigurationException
retrieve an instance of the named transport
Specified by:
getTransport in interface EngineConfiguration

Parameters:
qname - XXX

Returns:
XXX

Throws:
ConfigurationException - XXX


getTypeMappingRegistry

public TypeMappingRegistry getTypeMappingRegistry()
            throws ConfigurationException
Specified by:
getTypeMappingRegistry in interface EngineConfiguration


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:
writeEngineConfig in interface EngineConfiguration


Copyright B) 2005 Apache Web Services Project. All Rights Reserved.