public class ThymeleafReactiveView
extends org.springframework.web.reactive.result.view.AbstractView
implements org.springframework.beans.factory.BeanNameAware
Base implementation of the Spring WebFlux View
interface.
Views represent a template being executed, after being resolved (and
instantiated) by a ViewResolver
.
This is the default view implementation resolved by ThymeleafReactiveViewResolver
.
This view needs a ISpringWebFluxTemplateEngine
for execution, and it will call its
ISpringWebFluxTemplateEngine.processStream(String, Set, IContext, DataBufferFactory, MediaType, Charset, int)
method to create the reactive data streams to be used for processing the template. See the documentation
of this class to know more about the different operation modes available.
ThymeleafReactiveViewResolver
,
ISpringWebFluxTemplateEngine
,
ReactiveDataDriverContextVariable
,
IReactiveDataDriverContextVariable
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_RESPONSE_CHUNK_SIZE_BYTES |
protected static org.slf4j.Logger |
logger |
Constructor and Description |
---|
ThymeleafReactiveView() |
Modifier and Type | Method and Description |
---|---|
void |
addStaticVariable(String name,
Object value) |
String |
getBeanName() |
protected Locale |
getLocale() |
String |
getMarkupSelector() |
int |
getResponseMaxChunkSizeBytes() |
Map<String,Object> |
getStaticVariables() |
protected ISpringWebFluxTemplateEngine |
getTemplateEngine() |
String |
getTemplateName() |
protected reactor.core.publisher.Mono<Void> |
renderFragmentInternal(Set<String> markupSelectorsToRender,
Map<String,Object> renderAttributes,
org.springframework.http.MediaType contentType,
org.springframework.web.server.ServerWebExchange exchange) |
protected reactor.core.publisher.Mono<Void> |
renderInternal(Map<String,Object> renderAttributes,
org.springframework.http.MediaType contentType,
org.springframework.web.server.ServerWebExchange exchange) |
void |
setBeanName(String beanName) |
void |
setDefaultCharset(Charset defaultCharset) |
protected void |
setLocale(Locale locale) |
void |
setMarkupSelector(String markupSelector) |
void |
setResponseMaxChunkSizeBytes(int responseMaxBufferSizeBytes) |
void |
setStaticVariables(Map<String,?> variables) |
void |
setSupportedMediaTypes(List<org.springframework.http.MediaType> supportedMediaTypes) |
protected void |
setTemplateEngine(ISpringWebFluxTemplateEngine templateEngine) |
void |
setTemplateName(String templateName) |
createRequestContext, getApplicationContext, getDefaultCharset, getModelAttributes, getRequestContextAttribute, getRequestDataValueProcessor, getSupportedMediaTypes, render, setApplicationContext, setRequestContextAttribute, toString
protected static final org.slf4j.Logger logger
public static final int DEFAULT_RESPONSE_CHUNK_SIZE_BYTES
public String getMarkupSelector()
public void setMarkupSelector(String markupSelector)
public void setDefaultCharset(Charset defaultCharset)
setDefaultCharset
in class org.springframework.web.reactive.result.view.AbstractView
public void setSupportedMediaTypes(List<org.springframework.http.MediaType> supportedMediaTypes)
setSupportedMediaTypes
in class org.springframework.web.reactive.result.view.AbstractView
public String getBeanName()
public void setBeanName(String beanName)
setBeanName
in interface org.springframework.beans.factory.BeanNameAware
public String getTemplateName()
public void setTemplateName(String templateName)
protected Locale getLocale()
protected void setLocale(Locale locale)
public int getResponseMaxChunkSizeBytes()
public void setResponseMaxChunkSizeBytes(int responseMaxBufferSizeBytes)
protected ISpringWebFluxTemplateEngine getTemplateEngine()
protected void setTemplateEngine(ISpringWebFluxTemplateEngine templateEngine)
protected reactor.core.publisher.Mono<Void> renderInternal(Map<String,Object> renderAttributes, org.springframework.http.MediaType contentType, org.springframework.web.server.ServerWebExchange exchange)
renderInternal
in class org.springframework.web.reactive.result.view.AbstractView
Copyright © 2017 The THYMELEAF team. All rights reserved.