Class ConfigUtil
java.lang.Object
org.forgerock.selfservice.core.util.ConfigUtil
Utility methods for config value retrieval.
-
Method Summary
Modifier and TypeMethodDescriptionstatic intgetConfigField(String fieldName, JsonValue config, int defaultValue) Retrieve an integer config value with a default if the value is absent.static StringgetConfigField(String fieldName, JsonValue config, String defaultValue) Retrieve a String config value with a default if the value is absent.
-
Method Details
-
getConfigField
Retrieve a String config value with a default if the value is absent.- Parameters:
fieldName- the name of the config value to returnconfig- the config potentially containing the config valuedefaultValue- the default to return if the value is absent- Returns:
- the config value or the default value
-
getConfigField
Retrieve an integer config value with a default if the value is absent.- Parameters:
fieldName- the name of the config value to returnconfig- the config potentially containing the config valuedefaultValue- the default to return if the value is absent- Returns:
- the config value or the default value
-