public class RequestIdAttribute extends Object implements ThreadContextAttribute<nablarch.fw.Request<?>>
| Constructor and Description |
|---|
RequestIdAttribute() |
| Modifier and Type | Method and Description |
|---|---|
String |
getKey()
スレッドコンテキストに格納する際に使用するプロパティのキー名を返す。
|
Object |
getValue(nablarch.fw.Request<?> req,
nablarch.fw.ExecutionContext ctx)
スレッドコンテキストに格納するプロパティの値を返す。
|
public String getKey()
ThreadContext.REQUEST_ID_KEY を使用する。
getKey in interface ThreadContextAttribute<nablarch.fw.Request<?>>public Object getValue(nablarch.fw.Request<?> req, nablarch.fw.ExecutionContext ctx)
このクラスではHTTPリクエストURI中からリクエストIDに相当する部分を抜き出して返却する。
getValue in interface ThreadContextAttribute<nablarch.fw.Request<?>>req - ハンドラの入力データctx - 実行コンテキスト情報Copyright © 2020. All rights reserved.