类 MustacheView
java.lang.Object
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
Spring WebFlux
View
using the Mustache template engine.- 从以下版本开始:
- 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
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明boolean
checkResourceExists
(Locale locale) protected reactor.core.publisher.Mono
<Void> renderInternal
(Map<String, Object> model, MediaType contentType, ServerWebExchange exchange) void
setCharset
(String charset) Set the charset used for reading Mustache template files.void
setCompiler
(com.samskivert.mustache.Mustache.Compiler compiler) Set the JMustache compiler to be used by this view.从类继承的方法 org.springframework.web.reactive.result.view.AbstractUrlBasedView
afterPropertiesSet, getUrl, resourceExists, 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 org.springframework.web.reactive.result.view.View
isRedirectView
-
构造器详细资料
-
MustacheView
public MustacheView()
-
-
方法详细资料
-
setCompiler
public void setCompiler(com.samskivert.mustache.Mustache.Compiler compiler) Set the JMustache compiler to be used by this view. Typically this property is not set directly. Instead a singleMustache.Compiler
is expected in the Spring application context which is used to compile Mustache templates.- 参数:
compiler
- the Mustache compiler
-
setCharset
Set the charset used for reading Mustache template files.- 参数:
charset
- the charset to use for reading template files
-
checkResourceExists
- 指定者:
checkResourceExists
在类中AbstractUrlBasedView
- 抛出:
Exception
-
renderInternal
protected reactor.core.publisher.Mono<Void> renderInternal(Map<String, Object> model, MediaType contentType, ServerWebExchange exchange) - 指定者:
renderInternal
在类中AbstractView
-