@Published(tag="architect")
public abstract class TimeZoneAttributeInHttpSupport
extends nablarch.common.handler.threadcontext.TimeZoneAttribute
| Modifier and Type | Method and Description | 
|---|---|
protected abstract java.lang.String | 
getKeepingTimeZone(HttpRequest req,
                  ServletExecutionContext ctx)
保持しているタイムゾーンを取得する。 
 | 
protected java.util.TimeZone | 
getTimeZone(HttpRequest req,
           ServletExecutionContext ctx)
スレッドコンテキストに保持するタイムゾーン属性を返す。 
 | 
java.lang.Object | 
getValue(Request<?> req,
        ExecutionContext ctx)
コンテキストスレッドに格納するこのプロパティの値を返す。 
 
  
TimeZoneAttributeInHttpSupport.getTimeZone(HttpRequest, ServletExecutionContext)に処理を委譲する。 | 
protected boolean | 
isSupportedTimeZone(java.lang.String timeZone)
サポート対象のタイムゾーンか否かを判定する。 
 | 
protected abstract void | 
keepTimeZone(HttpRequest req,
            ServletExecutionContext ctx,
            java.lang.String timeZone)
ユーザが選択したタイムゾーンを保持する。 
 | 
void | 
setSupportedTimeZones(java.lang.String... supportedTimeZones)
サポート対象のタイムゾーンを設定する。 
 | 
getKeypublic void setSupportedTimeZones(java.lang.String... supportedTimeZones)
supportedTimeZones - サポート対象のタイムゾーンprotected boolean isSupportedTimeZone(java.lang.String timeZone)
timeZone - タイムゾーンpublic java.lang.Object getValue(Request<?> req, ExecutionContext ctx)
TimeZoneAttributeInHttpSupport.getTimeZone(HttpRequest, ServletExecutionContext)に処理を委譲する。getValue in interface ThreadContextAttribute<Request<?>>getValue in class nablarch.common.handler.threadcontext.TimeZoneAttributereq - リクエストctx - 実行コンテキストprotected java.util.TimeZone getTimeZone(HttpRequest req, ServletExecutionContext ctx)
 このクラスの実装では、以下の処理を行う。
 
 
 1. 保持しているタイムゾーンの取得を試みる。(TimeZoneAttributeInHttpSupport.getKeepingTimeZone(HttpRequest, ServletExecutionContext))
 
   サポート対象のタイムゾーンが取得できた場合は、取得できたタイムゾーンを返す。
   
   サポート対象のタイムゾーンが取得できない場合は2.に進む。
   
 2.デフォルトのタイムゾーンを返す。(TimeZoneAttribute#getValue(Request, ExecutionContext))
 
 req - リクエストctx - 実行コンテキストprotected abstract void keepTimeZone(HttpRequest req, ServletExecutionContext ctx, java.lang.String timeZone)
req - リクエストctx - 実行コンテキストtimeZone - ユーザが選択したタイムゾーンprotected abstract java.lang.String getKeepingTimeZone(HttpRequest req, ServletExecutionContext ctx)
req - リクエストctx - 実行コンテキスト