fedora.server.config
Class ServerConfiguration

java.lang.Object
  extended by fedora.server.config.Configuration
      extended by fedora.server.config.ServerConfiguration
All Implemented Interfaces:
Constants

public class ServerConfiguration
extends Configuration
implements Constants

Fedora server configuration.

Author:
cwilper@cs.cornell.edu

Nested Class Summary
 
Nested classes/interfaces inherited from interface fedora.common.Constants
Constants.FedoraHome
 
Field Summary
 
Fields inherited from interface fedora.common.Constants
ACCESS, ACTION, API, AUDIT, AUDIT1_0, BATCH_MODIFY, BATCH_MODIFY1_1, BDEF, BE_SECURITY, BE_SECURITY1_0, BINDING_SPEC, BMECH, DATASTREAM, DC, DISSEMINATOR, DS_COMPOSITE_MODEL, DS_COMPOSITE_MODEL1_0, ENVIRONMENT, FCFG, FEDORA, FEDORA_HOME, FOXML, FOXML1_0, FOXML1_1, HTTP_REQUEST, MANAGEMENT, METHOD_MAP, METS, METS_EXT, METS_EXT1_0, METS_EXT1_1, MODEL, MULGARA, OAI_DC, OAI_DC2_0, OAI_FRIENDS, OAI_FRIENDS2_0, OAI_IDENTIFIER, OAI_IDENTIFIER2_0, OAI_PMH, OAI_PMH2_0, OAI_PROV, OAI_PROV2_0, OBJ_DATASTREAMS1_0, OBJ_HISTORY1_0, OBJ_ITEMS1_0, OBJ_METHODS1_0, OBJ_PROFILE1_0, OBJECT, OLD_XLINK, PID_LIST1_0, RDF, RDF_XSD, RECOVERY, RELS_EXT, REPO_DESC1_0, RESOURCE, SERVICE_PROFILE, SOAP, SOAP_ENC, SUBJECT, TYPES, VIEW, WSDL, WSDL_HTTP, WSDL_MIME, XLINK, XML_XSD, XMLNS, XSI
 
Constructor Summary
ServerConfiguration(java.lang.String className, java.util.List<Parameter> parameters, java.util.List<ModuleConfiguration> moduleConfigurations, java.util.List<DatastoreConfiguration> datastoreConfigurations)
           
 
Method Summary
 void applyProperties(java.util.Properties props)
          Apply the given properties to this ServerConfiguration.
 ServerConfiguration copy()
          Make an exact copy of this ServerConfiguration.
 java.lang.String getClassName()
           
 DatastoreConfiguration getDatastoreConfiguration(java.lang.String id)
           
 java.util.List getDatastoreConfigurations()
           
 ModuleConfiguration getModuleConfiguration(java.lang.String role)
           
 java.util.List getModuleConfigurations()
           
static void main(java.lang.String[] args)
          Deserialize, then output the given configuration.
 void serialize(java.io.OutputStream xmlStream)
           
 
Methods inherited from class fedora.server.config.Configuration
getParameter, getParameters, setParameterValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerConfiguration

public ServerConfiguration(java.lang.String className,
                           java.util.List<Parameter> parameters,
                           java.util.List<ModuleConfiguration> moduleConfigurations,
                           java.util.List<DatastoreConfiguration> datastoreConfigurations)
Method Detail

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