fedora.server.config
Class ServerConfiguration
java.lang.Object
fedora.server.config.Configuration
fedora.server.config.ServerConfiguration
public class ServerConfiguration
- extends Configuration
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServerConfiguration
public ServerConfiguration(java.lang.String className,
java.util.List<Parameter> parameters,
java.util.List<ModuleConfiguration> moduleConfigurations,
java.util.List<DatastoreConfiguration> datastoreConfigurations)
copy
public ServerConfiguration copy()
throws java.io.IOException
- Make an exact copy of this ServerConfiguration.
- Throws:
java.io.IOException
applyProperties
public void applyProperties(java.util.Properties props)
- Apply the given properties to this ServerConfiguration.
Trims leading and trailing spaces from the property values
before applying them.
serialize
public void serialize(java.io.OutputStream xmlStream)
throws java.io.IOException
- Throws:
java.io.IOException
getClassName
public java.lang.String getClassName()
getModuleConfigurations
public java.util.List getModuleConfigurations()
getModuleConfiguration
public ModuleConfiguration getModuleConfiguration(java.lang.String role)
getDatastoreConfigurations
public java.util.List getDatastoreConfigurations()
getDatastoreConfiguration
public DatastoreConfiguration getDatastoreConfiguration(java.lang.String id)
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Deserialize, then output the given configuration.
If two parameters are given, the first one is the filename and the
second is the properties file to apply before re-serializing.
- Throws:
java.lang.Exception