public class MustacheViewResolver
extends org.springframework.web.reactive.result.view.UrlBasedViewResolver
ViewResolver
for Mustache.REDIRECT_URL_PREFIX
Constructor and Description |
---|
MustacheViewResolver()
Create a
MustacheViewResolver backed by a default instance of a
Mustache.Compiler . |
MustacheViewResolver(com.samskivert.mustache.Mustache.Compiler compiler)
Create a
MustacheViewResolver backed by a custom instance of a
Mustache.Compiler . |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.web.reactive.result.view.AbstractUrlBasedView |
createView(String viewName) |
protected Class<?> |
requiredViewClass() |
void |
setCharset(String charset)
Set the charset.
|
afterPropertiesSet, applyLifecycleMethods, canHandle, getApplicationContext, getPrefix, getRequestContextAttribute, getSuffix, getViewClass, getViewNames, resolveViewName, setApplicationContext, setPrefix, setRedirectViewProvider, setRequestContextAttribute, setSuffix, setViewClass, setViewNames
public MustacheViewResolver()
MustacheViewResolver
backed by a default instance of a
Mustache.Compiler
.public MustacheViewResolver(com.samskivert.mustache.Mustache.Compiler compiler)
MustacheViewResolver
backed by a custom instance of a
Mustache.Compiler
.compiler
- the Mustache compiler used to compile templatespublic void setCharset(String charset)
charset
- the charsetprotected Class<?> requiredViewClass()
requiredViewClass
in class org.springframework.web.reactive.result.view.UrlBasedViewResolver
protected org.springframework.web.reactive.result.view.AbstractUrlBasedView createView(String viewName)
createView
in class org.springframework.web.reactive.result.view.UrlBasedViewResolver
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.