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