org.apache.soap.server
Class DefaultConfigManager

java.lang.Object
  |
  +--org.apache.soap.server.BaseConfigManager
        |
        +--org.apache.soap.server.DefaultConfigManager

public class DefaultConfigManager
extends BaseConfigManager
implements ConfigManager

A DefaultConfigManager ...

Author:
Dug (dug@us.ibm.com), Magnus Thor Torfason With the introduction of a ConfigManager, the notion of a SOAP configuration file was also introduced. The SOAP server will now look for a 'soap.xml' file - or whatever filename was specified by the 'ConfigFile' init parameter of the Servlet. The soap.xml file should look like: If not specified, the DefaultConfigManager will be used. By default this will write the list of deployed services out to a file called 'DeployedServices.ds' in the current directory. To change this simply use the 'filename' option in the 'configManager' section of the soap.xml configuration file.

Field Summary
protected  java.lang.String filename
          The name of the deployment file.
 
Fields inherited from class org.apache.soap.server.BaseConfigManager
context, dds, serviceNamesCache
 
Constructor Summary
DefaultConfigManager()
           
 
Method Summary
 void loadRegistry()
          Loads the descriptors from the underlying registry file, which contains a serialized Hashtable.
 void saveRegistry()
          Saves currently deployed descriptors to the underlying registry file, as a serialized Hashtable.
 void setOptions(java.util.Hashtable options)
          This method sets the configuration options (usually read from the config file).
 
Methods inherited from class org.apache.soap.server.BaseConfigManager
deploy, init, list, query, setContext, undeploy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filename

protected java.lang.String filename
The name of the deployment file.
Constructor Detail

DefaultConfigManager

public DefaultConfigManager()
Method Detail

setOptions

public void setOptions(java.util.Hashtable options)
This method sets the configuration options (usually read from the config file).
Specified by:
setOptions in interface ConfigManager

loadRegistry

public void loadRegistry()
                  throws SOAPException
Loads the descriptors from the underlying registry file, which contains a serialized Hashtable.
Overrides:
loadRegistry in class BaseConfigManager

saveRegistry

public void saveRegistry()
                  throws SOAPException
Saves currently deployed descriptors to the underlying registry file, as a serialized Hashtable.
Overrides:
saveRegistry in class BaseConfigManager


Copyright © 2001 Apache XML Project. All Rights Reserved.