Class ConfigUtils
java.lang.Object
io.quarkus.rest.client.reactive.runtime.ConfigUtils
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
doGetConfigValue
(String configPropertyName, boolean required, String propertyName) Obtains the value of the name, meaning that the name must NOT start with '${' or end with '}'static String
getConfigValue
(String configProperty, boolean required) Obtains the value of the expression.static String
interpolate
(String expression, boolean required) Interpolates the given expression.
-
Field Details
-
PREFIX
- See Also:
-
SUFFIX
- See Also:
-
-
Constructor Details
-
ConfigUtils
public ConfigUtils()
-
-
Method Details
-
interpolate
Interpolates the given expression. The expression is expected to be in the form of ${config.property.name}.- Parameters:
expression
- the expression to interpolaterequired
- whether the expression is required to be present in the configuration- Returns:
- null if the resulting expression is empty, otherwise the interpolated expression
-
getConfigValue
Obtains the value of the expression. This expressions MUST be in the form of ${...} -
doGetConfigValue
public static String doGetConfigValue(String configPropertyName, boolean required, String propertyName) Obtains the value of the name, meaning that the name must NOT start with '${' or end with '}'
-