@Published(tag="architect") public class LanguageAttributeInHttpSession extends LanguageAttributeInHttpSupport
修飾子とタイプ | メソッドと説明 |
---|---|
protected String |
getKeepingLanguage(HttpRequest req,
ServletExecutionContext ctx)
保持している言語を取得する。
|
protected String |
getSessionKey()
言語が格納されるセッション上のキー名を取得する。
|
protected void |
keepLanguage(HttpRequest req,
ServletExecutionContext ctx,
String language)
ユーザが選択した言語を保持する。
|
void |
setSessionKey(String sessionKey)
言語が格納されるセッション上のキー名を設定する。
|
getLocale
getKey, getValue
public void setSessionKey(String sessionKey)
sessionKey
- 言語が格納されるセッション上のキー名protected void keepLanguage(HttpRequest req, ServletExecutionContext ctx, String language)
LanguageAttributeInHttpSupport
keepLanguage
クラス内 LanguageAttributeInHttpSupport
req
- リクエストctx
- 実行コンテキストlanguage
- ユーザが選択した言語protected String getKeepingLanguage(HttpRequest req, ServletExecutionContext ctx)
LanguageAttributeInHttpSupport
getKeepingLanguage
クラス内 LanguageAttributeInHttpSupport
req
- リクエストctx
- 実行コンテキストprotected String getSessionKey()
LanguageAttributeInHttpSession.sessionKey
プロパティが設定されていない場合は、
nablarch.common.handler.threadcontext.LanguageAttribute#getKey()の値を使用する。