クラス MustacheView

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

public class MustacheView extends AbstractUrlBasedView
Mustache テンプレートエンジンを使用する Spring WebFlux View
導入:
4.0.0
作成者:
Brian Clozel
  • コンストラクターの詳細

    • MustacheView

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

    • setCompiler

      public void setCompiler(com.samskivert.mustache.Mustache.Compiler compiler)
      このビューで使用する JMustache コンパイラーを設定します。通常、このプロパティは直接設定されません。代わりに、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 - 文字セット
    • checkResourceExists

      public boolean checkResourceExists(LocaleSE locale) throws ExceptionSE
      次で指定:
      クラス AbstractUrlBasedViewcheckResourceExists 
      例外:
      ExceptionSE
    • renderInternal

      protected reactor.core.publisher.Mono<VoidSE> renderInternal(MapSE<StringSE,ObjectSE> model, @Nullable MediaType contentType, ServerWebExchange exchange)
      次で指定:
      クラス AbstractViewrenderInternal