keycloak
静的公開メンバ関数 | 非公開メンバ関数 | 静的非公開変数類 | 全メンバ一覧
org.keycloak.common.util.EnvUtil クラス
org.keycloak.common.util.EnvUtil 連携図
Collaboration graph

静的公開メンバ関数

static String replace (String val)
 

非公開メンバ関数

 EnvUtil ()
 

静的非公開変数類

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
32  {
33 
34  }

関数詳解

◆ replace()

static String org.keycloak.common.util.EnvUtil.replace ( String  val)
inlinestatic

Replaces any ${} strings with their corresponding system property.

引数
val
戻り値
42  {
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("\\", "\\\\"));
50  }
51  matcher.appendTail(buf);
52  return buf.toString();
53  }
static final Pattern p
Definition: EnvUtil.java:30

メンバ詳解

◆ p

final Pattern org.keycloak.common.util.EnvUtil.p = Pattern.compile("[$][{]([^}]+)[}]")
staticprivate

このクラス詳解は次のファイルから抽出されました: