@Published(tag="architect") public class HttpAccessLogFormatter extends Object
修飾子とタイプ | クラスと説明 |
---|---|
static class |
HttpAccessLogFormatter.EndTimeItem
終了日時を取得するクラス。
|
static class |
HttpAccessLogFormatter.StartTimeItem
開始日時を取得するクラス。
|
修飾子とタイプ | フィールドと説明 |
---|---|
static String |
PROPS_PREFIX
プロパティ名のプレフィックス
|
コンストラクタと説明 |
---|
HttpAccessLogFormatter()
フォーマット済みのログ出力項目を初期化する。
|
修飾子とタイプ | メソッドと説明 |
---|---|
boolean |
containsMemoryItem()
出力対象にメモリ項目が含まれているか否かを判定する。
|
nablarch.fw.web.handler.HttpAccessLogFormatter.HttpAccessLogContext |
createAccessLogContext()
HttpAccessLogContextを生成する。
|
String |
formatBegin(nablarch.fw.web.handler.HttpAccessLogFormatter.HttpAccessLogContext context)
リクエスト処理開始時のメッセージをフォーマットする。
|
String |
formatDispatchingClass(nablarch.fw.web.handler.HttpAccessLogFormatter.HttpAccessLogContext context)
ディスパッチ先クラス決定後のメッセージをフォーマットする。
|
String |
formatEnd(nablarch.fw.web.handler.HttpAccessLogFormatter.HttpAccessLogContext context)
リクエスト処理終了時のメッセージをフォーマットする。
|
String |
formatParameters(nablarch.fw.web.handler.HttpAccessLogFormatter.HttpAccessLogContext context)
hiddenパラメータ復号後のメッセージをフォーマットする。
|
protected DateFormat |
getDateFormat(Map props)
日時フォーマットを取得する。
|
protected Map<LogItem> |
getLogItems(Map props)
フォーマット対象のログ出力項目を取得する。
|
protected char |
getMaskingChar(Map props)
マスク文字を取得する。
|
protected Pattern[] |
getMaskingPatterns(Map props)
マスク対象のパラメータ名を取得する。
|
protected String |
getProp(Map props,
String propName,
String defaultValue)
プロパティを取得する。
|
protected String |
getSeparator(Map props,
String propName,
String defaultValue)
区切り文字を取得する。
|
boolean |
isBeginOutputEnabled()
リクエスト処理開始時の出力が有効かを判定する。
|
boolean |
isDispatchingClassOutputEnabled()
ディスパッチ先クラス決定後の出力が有効かを判定する。
|
boolean |
isEndOutputEnabled()
リクエスト処理終了時の出力が有効かを判定する。
|
boolean |
isParametersOutputEnabled()
hiddenパラメータ復号後の出力が有効かを判定する。
|
public nablarch.fw.web.handler.HttpAccessLogFormatter.HttpAccessLogContext createAccessLogContext()
public boolean containsMemoryItem()
protected Map<LogItem> getLogItems(Map props)
props
- 各種ログの設定情報protected DateFormat getDateFormat(Map props)
props
- 各種ログの設定情報protected String getProp(Map props, String propName, String defaultValue)
props
- 各種ログの設定情報propName
- プロパティ名defaultValue
- プロパティのデフォルト値protected String getSeparator(Map props, String propName, String defaultValue)
props
- 各種ログの設定情報propName
- プロパティ名defaultValue
- プロパティのデフォルト値protected char getMaskingChar(Map props)
props
- 各種ログの設定情報protected Pattern[] getMaskingPatterns(Map props)
props
- 各種ログの設定情報public String formatBegin(nablarch.fw.web.handler.HttpAccessLogFormatter.HttpAccessLogContext context)
context
- HttpAccessLogContextpublic String formatParameters(nablarch.fw.web.handler.HttpAccessLogFormatter.HttpAccessLogContext context)
context
- HttpAccessLogContextpublic String formatDispatchingClass(nablarch.fw.web.handler.HttpAccessLogFormatter.HttpAccessLogContext context)
context
- HttpAccessLogContextpublic String formatEnd(nablarch.fw.web.handler.HttpAccessLogFormatter.HttpAccessLogContext context)
context
- HttpAccessLogContextpublic boolean isBeginOutputEnabled()
public boolean isParametersOutputEnabled()
public boolean isDispatchingClassOutputEnabled()
public boolean isEndOutputEnabled()