jhomenet.system
Class ServerProperties

java.lang.Object
  extended by jhomenet.system.ServerProperties

public final class ServerProperties
extends java.lang.Object


Field Summary
static java.lang.String configFilename
          Define the configuration file.
static java.lang.String configFolder
          The configuration folder name.
static java.lang.String defaultConfigFilename
          Define the default configuration filename.
static java.lang.String imageFolder
          The images folder name.
 
Constructor Summary
ServerProperties()
           
 
Method Summary
static void addProperty(java.lang.String propertyName, java.lang.String propertyValue)
          Add a new local property to the list of local properties.
static java.util.HashMap<java.lang.String,java.lang.String> getProperties()
          Get a Map of the property names and values.
static java.util.ArrayList<java.lang.String> getProperties(java.lang.String propertyNameSubstring)
          Get an ArrayList of property values given a substring of the property name.
static java.lang.String getProperty(java.lang.String propertyName)
          Get configuration property value
static void loadProperties()
          Loads the properties from the configuration file TODO: Update the method to remove the use of the Enumeration class.
static void printProperties()
          Print out the current list of server properties.
static void setConfigFilename(java.lang.String filename)
          Set the configuration filename.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

configFolder

public static java.lang.String configFolder
The configuration folder name.


imageFolder

public static java.lang.String imageFolder
The images folder name.


defaultConfigFilename

public static final java.lang.String defaultConfigFilename
Define the default configuration filename.

See Also:
Constant Field Values

configFilename

public static java.lang.String configFilename
Define the configuration file.

Constructor Detail

ServerProperties

public ServerProperties()
Method Detail

setConfigFilename

public static void setConfigFilename(java.lang.String filename)
Set the configuration filename.

Parameters:
filename - Configuration filename

loadProperties

public static void loadProperties()
Loads the properties from the configuration file TODO: Update the method to remove the use of the Enumeration class.


addProperty

public static void addProperty(java.lang.String propertyName,
                               java.lang.String propertyValue)
Add a new local property to the list of local properties.

Parameters:
propertyName - The new local property name
propertyValue - The new local property value

getProperty

public static java.lang.String getProperty(java.lang.String propertyName)
Get configuration property value

Parameters:
propertyName - propert location to get
Returns:
the property value

getProperties

public static java.util.ArrayList<java.lang.String> getProperties(java.lang.String propertyNameSubstring)
Get an ArrayList of property values given a substring of the property name.

Parameters:
propertyNameSubstring - A property name sub-string
Returns:
A list of property names that has a property name that matches the property name substring

getProperties

public static java.util.HashMap<java.lang.String,java.lang.String> getProperties()
Get a Map of the property names and values.

Returns:
A Map of the property names and values

printProperties

public static void printProperties()
Print out the current list of server properties.



Copyright © 2004-2005 David Irwin. All Rights Reserved.