Class TimeZoneAttributeInHttpSession
java.lang.Object
nablarch.common.handler.threadcontext.TimeZoneAttribute
nablarch.common.web.handler.threadcontext.TimeZoneAttributeInHttpSupport
nablarch.common.web.handler.threadcontext.TimeZoneAttributeInHttpSession
- All Implemented Interfaces:
- ThreadContextAttribute<Request<?>>
@Published(tag="architect")
public class TimeZoneAttributeInHttpSession
extends TimeZoneAttributeInHttpSupport
HTTPセッションを使用してタイムゾーンの保持を行うクラス。
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected String保持しているタイムゾーンを取得する。protected Stringタイムゾーンが格納されるセッション上のキー名を取得する。protected voidkeepTimeZone(HttpRequest req, ServletExecutionContext ctx, String timeZone) ユーザが選択したタイムゾーンを保持する。voidsetSessionKey(String sessionKey) タイムゾーンが格納されるセッション上のキー名を設定する。Methods inherited from class nablarch.common.web.handler.threadcontext.TimeZoneAttributeInHttpSupportgetTimeZone, getValue, isSupportedTimeZone, setSupportedTimeZonesMethods inherited from class nablarch.common.handler.threadcontext.TimeZoneAttributegetKey, setDefaultTimeZone
- 
Constructor Details- 
TimeZoneAttributeInHttpSessionpublic TimeZoneAttributeInHttpSession()
 
- 
- 
Method Details- 
setSessionKeyタイムゾーンが格納されるセッション上のキー名を設定する。- Parameters:
- sessionKey- タイムゾーンが格納されるセッション上のキー名
 
- 
keepTimeZoneDescription copied from class:TimeZoneAttributeInHttpSupportユーザが選択したタイムゾーンを保持する。- Specified by:
- keepTimeZonein class- TimeZoneAttributeInHttpSupport
- Parameters:
- req- リクエスト
- ctx- 実行コンテキスト
- timeZone- ユーザが選択したタイムゾーン
 
- 
getKeepingTimeZoneDescription copied from class:TimeZoneAttributeInHttpSupport保持しているタイムゾーンを取得する。- Specified by:
- getKeepingTimeZonein class- TimeZoneAttributeInHttpSupport
- Parameters:
- req- リクエスト
- ctx- 実行コンテキスト
- Returns:
- タイムゾーン。保持していない場合はnull
 
- 
getSessionKeyタイムゾーンが格納されるセッション上のキー名を取得する。sessionKeyプロパティが設定されていない場合は、 nablarch.common.handler.threadcontext.TimeZoneAttribute#getKey()の値を使用する。- Returns:
- タイムゾーンが格納されるセッション上のキー名
 
 
-