クラス JspAwareRequestContext

java.lang.ObjectSE
org.springframework.web.servlet.support.RequestContext
org.springframework.web.servlet.support.JspAwareRequestContext

public class JspAwareRequestContext extends RequestContext
RequestContext の JSP 対応(および JSTL 対応)サブクラス。jakarta.servlet.jsp.PageContext からのコンテキストの生成を可能にします。

このコンテキストは、基本クラスによって提供されるフォールバックロケール戦略に加えて、page/request/session/application スコープの JSTL ロケール属性を検出します。

導入:
1.1.4
作成者:
Juergen Hoeller
関連事項:
  • コンストラクターの詳細

    • JspAwareRequestContext

      public JspAwareRequestContext(PageContextEE pageContext)
      エラー検索のリクエスト属性を使用して、指定されたページコンテキストの新しい JspAwareRequestContext を作成します。
      パラメーター:
      pageContext - 現在の JSP ページのコンテキスト
    • JspAwareRequestContext

      public JspAwareRequestContext(PageContextEE pageContext, @Nullable MapSE<StringSE,ObjectSE> model)
      エラーの取得に指定されたモデル属性を使用して、指定されたページコンテキストの新しい JspAwareRequestContext を作成します。
      パラメーター:
      pageContext - 現在の JSP ページのコンテキスト
      model - 現在のビューのモデル属性 (エラー検索のリクエスト属性を使用して、null にすることができます)
  • メソッドの詳細

    • getPageContext

      protected final PageContextEE getPageContext()
      基になる PageContext を返します。このパッケージ内の協力クラスのみを対象としています。
    • getFallbackLocale

      protected LocaleSE getFallbackLocale()
      この実装は、ページ、リクエスト、セッション、アプリケーションスコープの JSTL ロケール属性をチェックします。見つからない場合は、HttpServletRequest.getLocale() を返します。
      オーバーライド:
      クラス RequestContextgetFallbackLocale 
      戻り値:
      フォールバックロケール (非 null)
      関連事項:
    • getFallbackTimeZone

      @Nullable protected TimeZoneSE getFallbackTimeZone()
      この実装は、ページ、リクエスト、セッション、アプリケーションスコープの JSTL タイムゾーン属性をチェックします。見つからない場合は、null を返します。
      オーバーライド:
      クラス RequestContextgetFallbackTimeZone 
      戻り値:
      フォールバックタイムゾーン (リクエストから派生するものがない場合は null )