public class MustacheViewResolver extends AbstractTemplateViewResolver
ViewResolver
for Mustache.FORWARD_URL_PREFIX, REDIRECT_URL_PREFIX
DEFAULT_CACHE_LIMIT
logger
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 |
buildView(String viewName) |
protected Class<?> |
requiredViewClass() |
void |
setCharset(String charset)
Set the charset.
|
setAllowRequestOverride, setAllowSessionOverride, setExposeRequestAttributes, setExposeSessionAttributes, setExposeSpringMacroHelpers
applyLifecycleMethods, canHandle, createView, getAttributesMap, getCacheKey, getContentType, getExposeContextBeansAsAttributes, getExposedContextBeanNames, getExposePathVariables, getOrder, getPrefix, getRedirectHosts, getRequestContextAttribute, getSuffix, getViewClass, getViewNames, initApplicationContext, isRedirectContextRelative, isRedirectHttp10Compatible, loadView, setAttributes, setAttributesMap, setContentType, setExposeContextBeansAsAttributes, setExposedContextBeanNames, setExposePathVariables, setOrder, setPrefix, setRedirectContextRelative, setRedirectHosts, setRedirectHttp10Compatible, setRequestContextAttribute, setSuffix, setViewClass, setViewNames
clearCache, getCacheLimit, isCache, isCacheUnresolved, removeFromCache, resolveViewName, setCache, setCacheLimit, setCacheUnresolved
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
getApplicationContext, getMessageSourceAccessor, obtainApplicationContext, requiredContextClass, setApplicationContext
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 templatesprotected Class<?> requiredViewClass()
requiredViewClass
in class AbstractTemplateViewResolver
public void setCharset(String charset)
charset
- the charsetprotected AbstractUrlBasedView buildView(String viewName) throws Exception
buildView
in class AbstractTemplateViewResolver
Exception
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.