nablarch.common.handler.threadcontext
クラス TimeZoneAttribute

java.lang.Object
  上位を拡張 nablarch.common.handler.threadcontext.TimeZoneAttribute
すべての実装されたインタフェース:
ThreadContextAttribute<nablarch.fw.Request<?>>

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

スレッドコンテキストに保持するタイムゾーン属性。


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

コンストラクタの詳細

TimeZoneAttribute

public TimeZoneAttribute()
メソッドの詳細

getKey

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

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

setDefaultTimeZone

public void setDefaultTimeZone(java.lang.String defaultTimeZone)
スレッドコンテキストに格納されるデフォルトのタイムゾーンを設定する。
 明示的に指定しなかった場合、システムのデフォルトタイムゾーンが使用される。
 

パラメータ:
defaultTimeZone - デフォルトタイムゾーンを表す文字列
関連項目:
TimeZone.getDefault()

getValue

public java.lang.Object getValue(nablarch.fw.Request<?> req,
                                 nablarch.fw.ExecutionContext ctx)
スレッドコンテキストに格納するプロパティの値を返す。
 現行の実装では初期設定されたデフォルトタイムゾーンを返す。
 

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