public final class Config extends Object
GlobalIds.CONFIG_REALM
switch.
The class will bootstrap itself during startup and must initialize correctly for the Fortress APIs to work correctly.
This object is thread safe but stores a static reference to Apache Commons Configuration config
object.
Modifier and Type | Method and Description |
---|---|
boolean |
getBoolean(String key)
Gets the boolean attribute associated with the name or false if not found.
|
boolean |
getBoolean(String key,
boolean defaultValue)
Gets the boolean attribute associated with the name or false if not found.
|
char |
getChar(String name)
Gets the prop attribute as char value from the apache commons cfg component.
|
char |
getChar(String name,
char defaultValue)
Get the property value from the apache commons config but specify a default value if not found.
|
String |
getDelimiter() |
static Config |
getInstance() |
int |
getInt(String key)
Gets the int attribute of the Config class, or 0 if not found.
|
int |
getInt(String key,
int defaultValue)
Gets the int attribute of the Config class or default value if not found.
|
String |
getProperty(String name)
Gets the prop attribute as String value from the apache commons cfg component.
|
String |
getProperty(String name,
String defaultValue)
Get the property value from the apache commons config but specify a default value if not found.
|
boolean |
isAuditDisabled() |
boolean |
isOpenldap() |
boolean |
isRealm() |
boolean |
isRemoteConfigLoaded() |
boolean |
isRestEnabled() |
void |
loadRemoteConfig() |
void |
setProperty(String name,
String value)
Set the property String value to the apache commons config.
|
public static Config getInstance()
public void loadRemoteConfig()
public String getProperty(String name)
name
- contains the name of the property.public String getProperty(String name, String defaultValue)
name
- contains the name of the property.defaultValue
- specified by client will be returned if property value is not found.public char getChar(String name)
name
- contains the name of the property.public char getChar(String name, char defaultValue)
name
- contains the name of the property.defaultValue
- specified by client will be returned if property value is not found.public int getInt(String key)
key
- name of the property name.public int getInt(String key, int defaultValue)
key
- name of the property name.defaultValue
- to use if property not found.public boolean getBoolean(String key)
key
- name of the property name.public boolean getBoolean(String key, boolean defaultValue)
key
- name of the property name.defaultValue
- specified by client will be returned if property value is not found.public void setProperty(String name, String value)
name
- contains the name of the property.value
- contains the String value of the property.public boolean isRemoteConfigLoaded()
public boolean isRestEnabled()
public boolean isAuditDisabled()
public boolean isOpenldap()
public boolean isRealm()
public String getDelimiter()
Copyright © 2003-2016, The Apache Software Foundation. All Rights Reserved. Generated 20160718-1621