Package nablarch.fw.jaxrs
Class JaxRsBodyMaskingFilter
java.lang.Object
nablarch.fw.jaxrs.JaxRsBodyMaskingFilter
- All Implemented Interfaces:
LogContentMaskingFilter
ログ出力するJAX-RSのボディ文字列をマスク処理するフィルタ。
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected chargetMaskingChar(Map<String, String> props) マスク文字を取得する。getMaskingJsonPatterns(Map<String, String> props) マスク対象のJSON文字列パターンを取得する。protected StringgetMaskingString(Map<String, String> props) マスク文字列を取得する。voidinitialize(Map<String, String> props) 初期化する。マスク対象のパターンにマッチする箇所をマスクする。
-
Constructor Details
-
JaxRsBodyMaskingFilter
public JaxRsBodyMaskingFilter()
-
-
Method Details
-
initialize
Description copied from interface:LogContentMaskingFilter初期化する。- Specified by:
initializein interfaceLogContentMaskingFilter- Parameters:
props- 各種ログ出力の設定情報
-
getMaskingString
マスク文字列を取得する。- Parameters:
props- 各種ログ出力の設定情報- Returns:
- マスク文字列
-
getMaskingChar
マスク文字を取得する。- Parameters:
props- 各種ログ出力の設定情報- Returns:
- マスク文字
-
getMaskingJsonPatterns
マスク対象のJSON文字列パターンを取得する。- Parameters:
props- 各種ログ出力の設定情報- Returns:
- マスク対象のパターン
-
mask
Description copied from interface:LogContentMaskingFilterマスク対象のパターンにマッチする箇所をマスクする。- Specified by:
maskin interfaceLogContentMaskingFilter- Parameters:
content- マスク対象の文字列- Returns:
- マスク後の文字列
-