nablarch.common.handler.threadcontext
クラス RequestIdAttribute

java.lang.Object
  上位を拡張 nablarch.common.handler.threadcontext.RequestIdAttribute
すべての実装されたインタフェース:
ThreadContextAttribute<nablarch.fw.Request<?>>
直系の既知のサブクラス:
InternalRequestIdAttribute

public class RequestIdAttribute
extends java.lang.Object
implements ThreadContextAttribute<nablarch.fw.Request<?>>

スレッドコンテキストに保持するリクエストID属性。


コンストラクタの概要
RequestIdAttribute()
           
 
メソッドの概要
 java.lang.String getKey()
          スレッドコンテキストに格納する際に使用するプロパティのキー名を返す。
 java.lang.Object getValue(nablarch.fw.Request<?> req, nablarch.fw.ExecutionContext ctx)
          スレッドコンテキストに格納するプロパティの値を返す。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

RequestIdAttribute

public RequestIdAttribute()
メソッドの詳細

getKey

public java.lang.String getKey()
スレッドコンテキストに格納する際に使用するプロパティのキー名を返す。
 ThreadContext.REQUEST_ID_KEY を使用する。
 

定義:
インタフェース ThreadContextAttribute<nablarch.fw.Request<?>> 内の getKey
戻り値:
プロパティのキー名

getValue

public java.lang.Object getValue(nablarch.fw.Request<?> req,
                                 nablarch.fw.ExecutionContext ctx)
スレッドコンテキストに格納するプロパティの値を返す。
 このクラスではHTTPリクエストURI中からリクエストIDに相当する部分を抜き出して返却する。
 

定義:
インタフェース ThreadContextAttribute<nablarch.fw.Request<?>> 内の getValue
パラメータ:
req - ハンドラの入力データ
ctx - 実行コンテキスト情報
戻り値:
プロパティの値