public class MustacheViewResolver extends UrlBasedViewResolver
ViewResolver
for Mustache.REDIRECT_URL_PREFIX
DEFAULT_CONTENT_TYPE
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
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 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
getDefaultCharset, getOrder, getSupportedMediaTypes, setDefaultCharset, setOrder, setSupportedMediaTypes
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 UrlBasedViewResolver
protected AbstractUrlBasedView createView(String viewName)
createView
in class UrlBasedViewResolver
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.