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