public class TimeZoneAttribute extends Object implements ThreadContextAttribute<nablarch.fw.Request<?>>
| Constructor and Description |
|---|
TimeZoneAttribute() |
| Modifier and Type | Method and Description |
|---|---|
String |
getKey()
スレッドコンテキストに格納する際に使用するプロパティのキー名を返す。
|
Object |
getValue(nablarch.fw.Request<?> req,
nablarch.fw.ExecutionContext ctx)
スレッドコンテキストに格納するプロパティの値を返す。
|
void |
setDefaultTimeZone(String defaultTimeZone)
スレッドコンテキストに格納されるデフォルトのタイムゾーンを設定する。
|
public String getKey()
ThreadContext.TIME_ZONE_KEY を使用する。
getKey in interface ThreadContextAttribute<nablarch.fw.Request<?>>public void setDefaultTimeZone(String defaultTimeZone)
明示的に指定しなかった場合、システムのデフォルトタイムゾーンが使用される。
defaultTimeZone - デフォルトタイムゾーンを表す文字列TimeZone.getDefault()public Object getValue(nablarch.fw.Request<?> req, nablarch.fw.ExecutionContext ctx)
現行の実装では初期設定されたデフォルトタイムゾーンを返す。
getValue in interface ThreadContextAttribute<nablarch.fw.Request<?>>req - ハンドラの入力データctx - 実行コンテキスト情報Copyright © 2020. All rights reserved.