Top Description Fields Constructors Methods
org.h2.security.auth

public Class ConfigProperties

extends Object
Class Inheritance
Imports
java.util.Arrays, .Collection, .HashMap, org.h2.util.Utils

wrapper for configuration properties

Field Summary

Modifier and TypeField and Description
private HashMap<String, String>

Constructor Summary

AccessConstructor and Description
public
public
ConfigProperties(PropertyConfig... configProperties)

public

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

the boolean property value or defaultValue if the property is missing.
getBooleanValue
(String
property name.
name
,
boolean
default value.
defaultValue
)

Returns the boolean value of specified property.

public int

Returns:

the integer property value or defaultValue if the property is missing.
getIntValue
(String
property name.
name
,
int
default value.
defaultValue
)

Returns the integer value of specified property.

public int

Returns:

the integer property value.
getIntValue
(String
property name.
name
)

Returns the integer value of specified property.

public String

Returns:

the string property value or defaultValue if the property is missing.
getStringValue
(String
property name.
name
,
String
default value.
defaultValue
)

Returns the string value of specified property.

public String

Returns:

the string property value.
getStringValue
(String
property name.
name
)

Returns the string value of specified property.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

propertiesback to summary
private HashMap<String, String> properties

Constructor Detail

ConfigPropertiesback to summary
public ConfigProperties()
ConfigPropertiesback to summary
public ConfigProperties(PropertyConfig... configProperties)
ConfigPropertiesback to summary
public ConfigProperties(Collection<PropertyConfig> configProperties)

Method Detail

getBooleanValueback to summary
public boolean getBooleanValue(String name, boolean defaultValue)

Returns the boolean value of specified property.

Parameters
name:String

property name.

defaultValue:boolean

default value.

Returns:boolean

the boolean property value or defaultValue if the property is missing.

getIntValueback to summary
public int getIntValue(String name, int defaultValue)

Returns the integer value of specified property.

Parameters
name:String

property name.

defaultValue:int

default value.

Returns:int

the integer property value or defaultValue if the property is missing.

getIntValueback to summary
public int getIntValue(String name)

Returns the integer value of specified property.

Parameters
name:String

property name.

Returns:int

the integer property value.

Exceptions
AuthConfigException:
if the property is missing.
getStringValueback to summary
public String getStringValue(String name, String defaultValue)

Returns the string value of specified property.

Parameters
name:String

property name.

defaultValue:String

default value.

Returns:String

the string property value or defaultValue if the property is missing.

getStringValueback to summary
public String getStringValue(String name)

Returns the string value of specified property.

Parameters
name:String

property name.

Returns:String

the string property value.

Exceptions
AuthConfigException:
if the property is missing.