クラス MustacheView
java.lang.ObjectSE
org.springframework.web.reactive.result.view.AbstractView
org.springframework.web.reactive.result.view.AbstractUrlBasedView
org.springframework.boot.mustache.reactive.view.MustacheView
- 実装済みのインターフェース一覧:
Aware, BeanNameAware, InitializingBean, ApplicationContextAware, View
Mustache テンプレートエンジンを使用する Spring WebFlux
View。- 導入:
- 4.0.0
- 作成者:
- Brian Clozel
フィールド概要
クラス AbstractView から継承されたフィールド
logger, REQUEST_DATA_VALUE_PROCESSOR_BEAN_NAMEインターフェース View から継承されたフィールド
BINDING_CONTEXT_ATTRIBUTEコンストラクター概要
コンストラクター方法の概要
修飾子と型メソッド説明booleancheckResourceExists(LocaleSE locale) protected reactor.core.publisher.Mono<VoidSE> renderInternal(MapSE<StringSE, ObjectSE> model, @Nullable MediaType contentType, ServerWebExchange exchange) voidsetCharset(@Nullable StringSE charset) 非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。voidsetCharset(@Nullable CharsetSE charset) Mustache テンプレートファイルの読み取りに使用するCharsetSE を設定します。voidsetCompiler(com.samskivert.mustache.Mustache.Compiler compiler) このビューで使用する JMustache コンパイラーを設定します。クラス AbstractUrlBasedView から継承されたメソッド
afterPropertiesSet, getUrl, resourceExists, setUrl, toStringクラス AbstractView から継承されたメソッド
createRequestContext, formatViewName, getApplicationContext, getBeanName, getDefaultCharset, getModelAttributes, getRequestContextAttribute, getRequestDataValueProcessor, getSupportedMediaTypes, obtainApplicationContext, render, resolveAsyncAttributes, setApplicationContext, setBeanName, setDefaultCharset, setRequestContextAttribute, setSupportedMediaTypesクラス ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, wait, waitSE, waitSEインターフェース View から継承されたメソッド
isRedirectView
コンストラクターの詳細
MustacheView
public MustacheView()
メソッドの詳細
setCompiler
public void setCompiler(com.samskivert.mustache.Mustache.Compiler compiler) このビューで使用する JMustache コンパイラーを設定します。通常、このプロパティは直接設定されません。代わりに、Mustache テンプレートのコンパイルに使用される Spring アプリケーションコンテキストでは、単一のMustache.Compilerが必要です。- パラメーター:
compiler- Mustache コンパイラー
setCharset
setCharset
非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。4.1.0 以降、4.3.0 で削除されsetCharset(Charset)を推奨Mustache テンプレートファイルの読み取りに使用する文字セットの名前を設定します。- パラメーター:
charset- 文字セット
checkResourceExists
- 次で指定:
- クラス
AbstractUrlBasedViewのcheckResourceExists - 例外:
ExceptionSE
renderInternal
protected reactor.core.publisher.Mono<VoidSE> renderInternal(MapSE<StringSE, ObjectSE> model, @Nullable MediaType contentType, ServerWebExchange exchange) - 次で指定:
- クラス
AbstractViewのrenderInternal
setCharset(Charset)を推奨