クラス MustacheView

実装済みのインターフェース一覧:
Aware, BeanNameAware, InitializingBean, ApplicationContextAware, ServletContextAware, View

public class MustacheView extends AbstractTemplateView
Mustache テンプレートエンジンを使用した Spring MVC View
導入:
4.0.0
作成者:
Brian Clozel, Dave Syer, Phillip Webb
  • コンストラクターの詳細

    • MustacheView

      public MustacheView()
  • メソッドの詳細

    • setCompiler

      public void setCompiler(com.samskivert.mustache.Mustache.Compiler compiler)
      このビューで使用する Mustache コンパイラーを設定します。

      通常、このプロパティは直接設定されません。代わりに、Mustache テンプレートのコンパイルに使用される Spring アプリケーションコンテキストで単一の Mustache.Compiler が期待されます。

      パラメーター:
      compiler - Mustache コンパイラー
    • setCharset

      public void setCharset(@Nullable CharsetSE charset)
      Mustache テンプレートファイルの読み取りに使用する CharsetSE を設定します。
      パラメーター:
      charset - 文字セット
      導入:
      4.1.0
    • setCharset

      @DeprecatedSE(since="4.1.0", forRemoval=true) public void setCharset(@Nullable StringSE charset)
      非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。
      4.1.0 以降、4.3.0 で削除され setCharset(Charset) を推奨
      Mustache テンプレートファイルの読み取りに使用する文字セットの名前を設定します。
      パラメーター:
      charset - 文字セット
    • checkResource

      public boolean checkResource(LocaleSE locale) throws ExceptionSE
      オーバーライド:
      クラス AbstractUrlBasedViewcheckResource 
      例外:
      ExceptionSE
    • renderMergedTemplateModel

      protected void renderMergedTemplateModel(MapSE<StringSE,ObjectSE> model, HttpServletRequestEE request, HttpServletResponseEE response) throws ExceptionSE
      次で指定:
      クラス AbstractTemplateViewrenderMergedTemplateModel 
      例外:
      ExceptionSE