Package nablarch.fw.web.handler
Class HttpAccessJsonLogFormatter
java.lang.Object
nablarch.fw.web.handler.HttpAccessLogFormatter
nablarch.fw.web.handler.HttpAccessJsonLogFormatter
HTTPアクセスログのメッセージをフォーマットするクラス。
- Author:
- Shuji Kitamura
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classクライアント端末ホストを処理するクラス。static classクライアント端末IPアドレスを処理するクラス。static classHTTPヘッダのUser-Agentを処理するクラス。static classコンテンツパスを処理するクラス。static classディスパッチ先クラスを処理するクラス。static class終了日時を処理するクラス。static class実行時間を処理するクラス。static class空きメモリ量(開始時)を処理するクラス。static classラベルを処理するクラス。static class最大メモリ量を処理するクラス。static classHTTPメソッドを処理するクラス。static classリクエストパラメータを処理するクラス。static classポート番号を処理するクラス。static classクエリ文字列を処理するクラス。static classリクエストIDを処理するクラス。static classクライアントへのレスポンスに使用するステータスコードを処理するクラス。static classセッションIDを処理するクラス。static classセッションスコープ情報を処理するクラス。static classセッションストアIDを処理するクラス。static class開始日時を処理するクラス。static classステータスコードを処理するクラス。static classURLを処理するクラス。static classユーザIDを処理するクラス。Nested classes/interfaces inherited from class nablarch.fw.web.handler.HttpAccessLogFormatter
HttpAccessLogFormatter.ClientHostItem, HttpAccessLogFormatter.ClientIpAddressItem, HttpAccessLogFormatter.ClientUserAgentItem, HttpAccessLogFormatter.ContentPathItem, HttpAccessLogFormatter.DispatchingClassItem, HttpAccessLogFormatter.EndTimeItem, HttpAccessLogFormatter.ExecutionTimeItem, HttpAccessLogFormatter.FreeMemoryItem, HttpAccessLogFormatter.HttpAccessLogContext, HttpAccessLogFormatter.MaxMemoryItem, HttpAccessLogFormatter.MethodItem, HttpAccessLogFormatter.ParametersItem, HttpAccessLogFormatter.PortItem, HttpAccessLogFormatter.QueryStringItem, HttpAccessLogFormatter.RequestIdItem, HttpAccessLogFormatter.ResponseStatusCodeItem, HttpAccessLogFormatter.SessionIdItem, HttpAccessLogFormatter.SessionScopeItem, HttpAccessLogFormatter.SessionStoreIdItem, HttpAccessLogFormatter.StartTimeItem, HttpAccessLogFormatter.StatusCodeItem, HttpAccessLogFormatter.UrlItem, HttpAccessLogFormatter.UserIdItem -
Field Summary
Fields inherited from class nablarch.fw.web.handler.HttpAccessLogFormatter
PROPS_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean出力対象にメモリ項目が含まれているか否かを判定する。protected JsonSerializationManager変換処理に使用するJsonSerializationManagerを生成する。リクエスト処理開始時のメッセージをフォーマットする。ディスパッチ先クラス決定後のメッセージをフォーマットする。リクエスト処理終了時のメッセージをフォーマットする。hiddenパラメータ復号後のメッセージをフォーマットする。getObjectBuilders(Map<String, String> props) フォーマット対象のログ出力項目を取得する。protected voidinitialize(Map<String, String> props) 初期化。 フォーマット済みのログ出力項目を初期化する。Methods inherited from class nablarch.fw.web.handler.HttpAccessLogFormatter
createAccessLogContext, getDateFormat, getLogItems, getMaskingChar, getMaskingPatterns, getProp, getSeparator, initializeEnabled, initializeLogItems, isBeginOutputEnabled, isDispatchingClassOutputEnabled, isEndOutputEnabled, isParametersOutputEnabled
-
Constructor Details
-
HttpAccessJsonLogFormatter
public HttpAccessJsonLogFormatter()
-
-
Method Details
-
initialize
初期化。 フォーマット済みのログ出力項目を初期化する。- Overrides:
initializein classHttpAccessLogFormatter- Parameters:
props- 各種ログ出力の設定情報
-
createSerializationManager
変換処理に使用するJsonSerializationManagerを生成する。- Parameters:
settings- 各種ログ出力の設定情報- Returns:
JsonSerializationManager
-
getObjectBuilders
protected Map<String,JsonLogObjectBuilder<HttpAccessLogFormatter.HttpAccessLogContext>> getObjectBuilders(Map<String, String> props) フォーマット対象のログ出力項目を取得する。- Parameters:
props- 各種ログ出力の設定情報- Returns:
- フォーマット対象のログ出力項目
-
containsMemoryItem
public boolean containsMemoryItem()出力対象にメモリ項目が含まれているか否かを判定する。- Overrides:
containsMemoryItemin classHttpAccessLogFormatter- Returns:
- 出力対象にメモリ項目が含まれている場合はtrue
-
formatBegin
リクエスト処理開始時のメッセージをフォーマットする。- Overrides:
formatBeginin classHttpAccessLogFormatter- Parameters:
context- HttpAccessLogContext- Returns:
- フォーマット済みのメッセージ
-
formatParameters
hiddenパラメータ復号後のメッセージをフォーマットする。- Overrides:
formatParametersin classHttpAccessLogFormatter- Parameters:
context- HttpAccessLogContext- Returns:
- フォーマット済みのメッセージ
-
formatDispatchingClass
ディスパッチ先クラス決定後のメッセージをフォーマットする。- Overrides:
formatDispatchingClassin classHttpAccessLogFormatter- Parameters:
context- HttpAccessLogContext- Returns:
- フォーマット済みのメッセージ
-
formatEnd
リクエスト処理終了時のメッセージをフォーマットする。- Overrides:
formatEndin classHttpAccessLogFormatter- Parameters:
context- HttpAccessLogContext- Returns:
- フォーマット済みのメッセージ
-