Top Fields Constructors Methods
org.keycloak.common.util

public Class SystemEnvProperties

extends Properties
Class Inheritance
Imports
java.util.Collections, .Map, .Properties

Author
Stian Thorgersen

Field Summary

Modifier and TypeField and Description
private final Map<String, String>
Inherited from java.util.Properties:
defaults

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public String
getProperty(String
the property key.
key
)

Overrides java.util.Properties.getProperty.

Searches for the property with the specified key in this property list.
public String
getProperty(String
the hashtable key.
key
,
String
a default value.
defaultValue
)

Overrides java.util.Properties.getProperty.

Searches for the property with the specified key in this property list.
Inherited from java.util.Properties:
clearclonecomputecomputeIfAbsentcomputeIfPresentcontainscontainsKeycontainsValueelementsentrySetequalsforEachgetgetOrDefaulthashCodeisEmptykeyskeySetlistlistloadloadloadFromXMLmergepropertyNamesputputAllputIfAbsentrehashremoveremovereplacereplacereplaceAllsavesetPropertysizestorestorestoreToXMLstoreToXMLstoreToXMLstringPropertyNamestoStringvalues

Field Detail

overridesback to summary
private final Map<String, String> overrides

Constructor Detail

SystemEnvPropertiesback to summary
public SystemEnvProperties(Map<String, String> overrides)
SystemEnvPropertiesback to summary
public SystemEnvProperties()

Method Detail

getPropertyback to summary
public String getProperty(String key)

Overrides java.util.Properties.getProperty.

Doc from java.util.Properties.getProperty.

Searches for the property with the specified key in this property list. If the key is not found in this property list, the default property list, and its defaults, recursively, are then checked. The method returns null if the property is not found.

Parameters
key:String

the property key.

Returns:String

the value in this property list with the specified key value.

Annotations
@Override
getPropertyback to summary
public String getProperty(String key, String defaultValue)

Overrides java.util.Properties.getProperty.

Doc from java.util.Properties.getProperty.

Searches for the property with the specified key in this property list. If the key is not found in this property list, the default property list, and its defaults, recursively, are then checked. The method returns the default value argument if the property is not found.

Parameters
key:String

the hashtable key.

defaultValue:String

a default value.

Returns:String

the value in this property list with the specified key value.

Annotations
@Override