public interface PropertyResolver
Modifier and Type | Method and Description |
---|---|
Optional<String> |
getProperty(String key)
Returns the value of the specified property.
|
default Optional<String> |
getProperty(String key,
String defaultValue)
Returns the value of the specified property.
|
Optional<String> getProperty(String key)
Optional
if the property is not
found.key
- The name of the requested property. The key can't be null.Optional
string that contains the value of the requested property, or empty Optional
if property is undefined.NullPointerException
- if key is null.default Optional<String> getProperty(String key, String defaultValue)
Optional
if the property is not
found and there is no default value provided.key
- The name of the requested property. The key can't be null.defaultValue
- The default value if the property is not defined.Optional
string that contains the value of the requested property, or empty Optional
if property is undefined and a default is not supplied.NullPointerException
- if key is null.Copyright © 2010-2018, ForgeRock All Rights Reserved.