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セッションを使用してタイムゾーンの保持を行うクラス。
- Author:
- Kiyohito Itoh
-
Constructor Summary
Constructors -
Method Summary
Modifier 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.TimeZoneAttributeInHttpSupport
getTimeZone, getValue, isSupportedTimeZone, setSupportedTimeZonesMethods inherited from class nablarch.common.handler.threadcontext.TimeZoneAttribute
getKey, setDefaultTimeZone
-
Constructor Details
-
TimeZoneAttributeInHttpSession
public TimeZoneAttributeInHttpSession()
-
-
Method Details
-
setSessionKey
タイムゾーンが格納されるセッション上のキー名を設定する。- Parameters:
sessionKey- タイムゾーンが格納されるセッション上のキー名
-
keepTimeZone
Description copied from class:TimeZoneAttributeInHttpSupportユーザが選択したタイムゾーンを保持する。- Specified by:
keepTimeZonein classTimeZoneAttributeInHttpSupport- Parameters:
req- リクエストctx- 実行コンテキストtimeZone- ユーザが選択したタイムゾーン
-
getKeepingTimeZone
Description copied from class:TimeZoneAttributeInHttpSupport保持しているタイムゾーンを取得する。- Specified by:
getKeepingTimeZonein classTimeZoneAttributeInHttpSupport- Parameters:
req- リクエストctx- 実行コンテキスト- Returns:
- タイムゾーン。保持していない場合はnull
-
getSessionKey
タイムゾーンが格納されるセッション上のキー名を取得する。sessionKeyプロパティが設定されていない場合は、 nablarch.common.handler.threadcontext.TimeZoneAttribute#getKey()の値を使用する。- Returns:
- タイムゾーンが格納されるセッション上のキー名
-