|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjhomenet.system.ServerProperties
public final class ServerProperties
| 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 |
static java.util.ArrayList<java.lang.String> |
getProperties(java.lang.String propertyNameSubstring)
Get an |
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 |
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 |
|---|
public static java.lang.String configFolder
public static java.lang.String imageFolder
public static final java.lang.String defaultConfigFilename
public static java.lang.String configFilename
| Constructor Detail |
|---|
public ServerProperties()
| Method Detail |
|---|
public static void setConfigFilename(java.lang.String filename)
filename - Configuration filenamepublic static void loadProperties()
public static void addProperty(java.lang.String propertyName,
java.lang.String propertyValue)
propertyName - The new local property namepropertyValue - The new local property valuepublic static java.lang.String getProperty(java.lang.String propertyName)
propertyName - propert location to get
public static java.util.ArrayList<java.lang.String> getProperties(java.lang.String propertyNameSubstring)
propertyNameSubstring - A property name sub-string
public static java.util.HashMap<java.lang.String,java.lang.String> getProperties()
public static void printProperties()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||