Package org.apache.axis.configuration
Class FileProvider
java.lang.Object
org.apache.axis.configuration.FileProvider
- All Implemented Interfaces:
EngineConfiguration
,WSDDEngineConfiguration
- Direct Known Subclasses:
XMLStringProvider
A simple ConfigurationProvider that uses the Admin class to read +
write XML files.
- Author:
- Glen Daniels (gdaniels@apache.org), Glyn Normington (glyn@apache.org)
-
Field Summary
FieldsFields inherited from interface org.apache.axis.EngineConfiguration
PROPERTY_NAME
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor which takes an input stream directly.FileProvider
(String filename) Constructor which accesses a file in the current directory of the engine or at an absolute path.FileProvider
(String basepath, String filename) Constructor which accesses a file relative to a specific base path. -
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 engineGet the WSDDDeployment for this engine configuration.Returns the global configuration options.Returns a global request handler.Returns a global response handler.getHandler
(QName qname) retrieve an instance of the named handlergetRoles()
Get a list of roles that this engine plays globally.getService
(QName qname) retrieve an instance of the named servicegetServiceByNamespaceURI
(String namespace) Get a service which has been mapped to a particular namespacegetTransport
(QName qname) retrieve an instance of the named transportRetrieve the TypeMappingRegistry for this engine.void
setDeployment
(WSDDDeployment deployment) void
void
setSearchClasspath
(boolean searchClasspath) Determine whether or not we will look for a "*-config.wsdd" file on the classpath if we don't find it in the specified location.void
writeEngineConfig
(AxisEngine engine) Save the engine configuration.
-
Field Details
-
log
protected static org.apache.commons.logging.Log log
-
-
Constructor Details
-
FileProvider
Constructor which accesses a file in the current directory of the engine or at an absolute path. -
FileProvider
Constructor which accesses a file relative to a specific base path.- Throws:
ConfigurationException
-
FileProvider
Constructor which takes an input stream directly. Note: The configuration will be read-only in this case!
-
-
Method Details
-
setInputStream
-
getDeployment
Description copied from interface:WSDDEngineConfiguration
Get the WSDDDeployment for this engine configuration.- Specified by:
getDeployment
in interfaceWSDDEngineConfiguration
- Returns:
- the WSDDDeployment
-
setDeployment
-
setSearchClasspath
public void setSearchClasspath(boolean searchClasspath) Determine whether or not we will look for a "*-config.wsdd" file on the classpath if we don't find it in the specified location.- Parameters:
searchClasspath
- true if we should search the classpath
-
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
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 interfaceEngineConfiguration
- Parameters:
engine
- the AxisEngine from which to read state.- Throws:
ConfigurationException
- if there was a problem
-
getHandler
retrieve an instance of the named handler- Specified by:
getHandler
in interfaceEngineConfiguration
- Parameters:
qname
- XXX- Returns:
- XXX
- Throws:
ConfigurationException
- XXX
-
getService
retrieve an instance of the named service- Specified by:
getService
in interfaceEngineConfiguration
- Parameters:
qname
- XXX- Returns:
- XXX
- Throws:
ConfigurationException
- XXX
-
getServiceByNamespaceURI
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
-
getTransport
retrieve an instance of the named transport- Specified by:
getTransport
in interfaceEngineConfiguration
- Parameters:
qname
- XXX- Returns:
- XXX
- Throws:
ConfigurationException
- XXX
-
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
-
getGlobalRequest
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
-
getGlobalResponse
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
-
getGlobalOptions
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
-
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
-