@Published(tag="architect") public abstract class LanguageAttributeInHttpSupport extends HttpLanguageAttribute
| Constructor and Description | 
|---|
LanguageAttributeInHttpSupport()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected abstract java.lang.String | 
getKeepingLanguage(HttpRequest req,
                  ServletExecutionContext ctx)
保持している言語を取得する。 
 | 
protected java.util.Locale | 
getLocale(HttpRequest req,
         ServletExecutionContext ctx)
スレッドコンテキストに保持する言語属性を返す。 
 | 
protected abstract void | 
keepLanguage(HttpRequest req,
            ServletExecutionContext ctx,
            java.lang.String language)
ユーザが選択した言語を保持する。 
 | 
getAcceptLanguage, getValue, isSupportedLanguage, setSupportedLanguagesgetKey, setDefaultLanguageprotected java.util.Locale getLocale(HttpRequest req, ServletExecutionContext ctx)
 このクラスの実装では、以下の処理を行う。
 
 
 1. 保持している言語の取得を試みる。(getKeepingLanguage(HttpRequest, ServletExecutionContext))
 
   サポート対象の言語が取得できた場合は、取得できた言語を返す。
   
   サポート対象の言語が取得できない場合は2.に進む。
   
 2. Accept-Languageヘッダから言語の取得を試みる。(getAcceptLanguage(HttpRequest, ServletExecutionContext))
 
   サポート対象の言語が取得できた場合は、取得できた言語を返す。
   
   サポート対象の言語が取得できない場合は3.に進む。
 
 3.デフォルトの言語を返す。(nablarch.common.handler.threadcontext.LanguageAttribute#getValue(nablarch.fw.Request, nablarch.fw.ExecutionContext))
 
 getLocale in class HttpLanguageAttributereq - リクエストctx - 実行コンテキストprotected abstract void keepLanguage(HttpRequest req, ServletExecutionContext ctx, java.lang.String language)
req - リクエストctx - 実行コンテキストlanguage - ユーザが選択した言語protected abstract java.lang.String getKeepingLanguage(HttpRequest req, ServletExecutionContext ctx)
req - リクエストctx - 実行コンテキスト