|
static final Pattern | p = Pattern.compile("[$][{]([^}]+)[}]") |
|
Replaces any ${} strings with their corresponding system property.
- 著者
- Bill Burke
- バージョン
- Revision
- 1
◆ EnvUtil()
org.keycloak.common.util.EnvUtil.EnvUtil |
( |
| ) |
|
|
inlineprivate |
◆ replace()
static String org.keycloak.common.util.EnvUtil.replace |
( |
String |
val | ) |
|
|
inlinestatic |
Replaces any ${} strings with their corresponding system property.
- 引数
-
- 戻り値
43 Matcher matcher =
p.matcher(val);
44 StringBuffer buf =
new StringBuffer();
45 while (matcher.find()) {
46 String envVar = matcher.group(1);
47 String envVal = System.getProperty(envVar);
48 if (envVal == null) envVal =
"NOT-SPECIFIED";
49 matcher.appendReplacement(buf, envVal.replace(
"\\",
"\\\\"));
51 matcher.appendTail(buf);
52 return buf.toString();
static final Pattern p
Definition: EnvUtil.java:30
final Pattern org.keycloak.common.util.EnvUtil.p = Pattern.compile("[$][{]([^}]+)[}]") |
|
staticprivate |
このクラス詳解は次のファイルから抽出されました:
- D:/AppData/doxygen/keycloak/src/keycloak/src/main/java/org/keycloak/common/util/EnvUtil.java