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