org.apache.axis.configuration
Class FileProvider
java.lang.Object
|
+--org.apache.axis.configuration.FileProvider
- All Implemented Interfaces:
- ConfigurationProvider
- public class FileProvider
- extends java.lang.Object
- implements ConfigurationProvider
A simple ConfigurationProvider that uses the Admin class to read +
write XML files.
- Author:
- Glen Daniels (gdaniels@macromedia.com)
Field Summary |
protected java.lang.String |
sep
|
Constructor Summary |
FileProvider(java.io.InputStream is)
Constructor which takes an input stream directly |
FileProvider(java.lang.String filename)
Constructor which accesses a file in the current directory of the
engine. |
FileProvider(java.lang.String basepath,
java.lang.String filename)
Constructor which accesses a file relative to a specific base
path. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sep
protected java.lang.String sep
FileProvider
public FileProvider(java.lang.String filename)
- Constructor which accesses a file in the current directory of the
engine.
FileProvider
public FileProvider(java.lang.String basepath,
java.lang.String filename)
- Constructor which accesses a file relative to a specific base
path.
FileProvider
public FileProvider(java.io.InputStream is)
- Constructor which takes an input stream directly
configureEngine
public void configureEngine(AxisEngine engine)
throws java.lang.Exception
- Description copied from interface:
ConfigurationProvider
- Configure this AxisEngine using whatever data source we have.
- Specified by:
configureEngine
in interface ConfigurationProvider
- Following copied from interface:
org.apache.axis.ConfigurationProvider
- Parameters:
engine
- the AxisEngine we'll deploy state to- Throws:
Exeption
- if there was a problem
writeEngineConfig
public void writeEngineConfig(AxisEngine engine)
throws java.lang.Exception
- 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 ConfigurationProvider
- Following copied from interface:
org.apache.axis.ConfigurationProvider
- Parameters:
engine
- the AxisEngine from which to read state.- Throws:
java.lang.Exception
- if there was a problem
Copyright © 2001 Apache XML Project. All Rights Reserved.