Class ConfigurationUtil
java.lang.Object
com.github.toolarium.jwebserver.util.ConfigurationUtil
The configuration util
-
Method Summary
Modifier and TypeMethodDescriptioncom.github.toolarium.common.security.ISecuredValue<String> convert(String name, String value, com.github.toolarium.common.security.ISecuredValue<String> defaultValue) Convert secured valueconvert(String name, String value, VerboseLevel defaultValue) Convert verbose levelConvert booleanConvert integerExpand a string and replace environment variables or system propertiesString[]Expand a string and replace environment variables or system propertiesformatArrayAsString(String[] stringArray) Format an array as stringstatic ConfigurationUtilGet the instanceString[]parseStringArray(String stringArray) Parse the string array
-
Method Details
-
getInstance
Get the instance- Returns:
- the instance
-
expand
Expand a string and replace environment variables or system properties- Parameters:
value- the value- Returns:
- the expanded value
-
expand
Expand a string and replace environment variables or system properties- Parameters:
valueList- the value list- Returns:
- the expanded value list
-
convert
Convert integer- Parameters:
name- the attribute namevalue- the valuedefaultValue- the default value- Returns:
- the value
-
convert
Convert boolean- Parameters:
name- the attribute namevalue- the valuedefaultValue- the default value- Returns:
- the value
-
convert
Convert verbose level- Parameters:
name- the attribute namevalue- the valuedefaultValue- the default value- Returns:
- the value
-
convert
public com.github.toolarium.common.security.ISecuredValue<String> convert(String name, String value, com.github.toolarium.common.security.ISecuredValue<String> defaultValue) Convert secured value- Parameters:
name- the attribute namevalue- the valuedefaultValue- the default value- Returns:
- the value
-
parseStringArray
Parse the string array- Parameters:
stringArray- the string array- Returns:
- the parsed string
-
formatArrayAsString
Format an array as string- Parameters:
stringArray- the welcome files- Returns:
- the formated string
-