Package org.apache.axis.configuration
Class XMLStringProvider
java.lang.Object
org.apache.axis.configuration.FileProvider
org.apache.axis.configuration.XMLStringProvider
- All Implemented Interfaces:
EngineConfiguration
,WSDDEngineConfiguration
A simple ConfigurationProvider that uses the Admin class to
configure the engine from a String containing XML.
This provider does not write configuration to persistent storage.
Example of usage:
new XMLStringProvider("<handler name=" +
"\"MsgDispatcher\" class=\"org.apache.axis.providers.java" +
".MsgProvider\"/> <service name=\"Adm" +
"inService\" pivot=\"MsgDispatcher\"><option name=\"class" +
"Name\" value=\"org.apache.axis.utils.Admin\"/><option na" +
"me=\"allowedMethods\" value=\"AdminService\"/><option na" +
"me=\"enableRemoteAdmin\" value=\"false\"/></se" +
"rvices> ");
- Author:
- Glen Daniels (gdaniels@apache.org)
-
Field Summary
Fields inherited from class org.apache.axis.configuration.FileProvider
log
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.void
writeEngineConfig
(AxisEngine engine) Save the engine configuration.Methods inherited from class org.apache.axis.configuration.FileProvider
getDeployedServices, getDeployment, getGlobalOptions, getGlobalRequest, getGlobalResponse, getHandler, getRoles, getService, getServiceByNamespaceURI, getTransport, getTypeMappingRegistry, setDeployment, setInputStream, setSearchClasspath
-
Constructor Details
-
XMLStringProvider
Constructor- Parameters:
xmlConfiguration
- a String containing an engine configuration in XML.
-
-
Method Details
-
writeEngineConfig
Description copied from class:FileProvider
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
- Overrides:
writeEngineConfig
in classFileProvider
- Parameters:
engine
- the AxisEngine from which to read state.- Throws:
ConfigurationException
- if there was a problem
-
configureEngine
Description copied from interface:EngineConfiguration
Configure this AxisEngine using whatever data source we have.- Specified by:
configureEngine
in interfaceEngineConfiguration
- Overrides:
configureEngine
in classFileProvider
- Parameters:
engine
- the AxisEngine we'll deploy state to- Throws:
ConfigurationException
- if there was a problem
-