|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glite.security.voms.utilities.Settings
A class for reading the system's gLite configuration parameters, for example the value of GLITE_LOCATION. The parameters are loaded from the following locations, in order of increasing priority:
Values found later in the above list override earlier values.
Note that this class looks into environment variables even though they are normally empty in a Tomcat service. Some people run Tomcat from their user account, and set their GLITE_LOCATION etc. only in environment variables. We want to support that use case. Furthermore, looking at environment variables here makes this class useful outside of a web application.
Method Summary | |
static java.lang.String |
getSetting(java.lang.String name)
Return the named variable in this system's gLite settings. |
static java.util.Properties |
getSettings()
Return a Properties object containing this system's gLite settings. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.util.Properties getSettings()
public static java.lang.String getSetting(java.lang.String name)
name
- The name of the configuration variable.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |