public class MustacheViewResolver
extends org.springframework.web.servlet.view.AbstractTemplateViewResolver
ViewResolver
for Mustache.FORWARD_URL_PREFIX, 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.servlet.view.AbstractUrlBasedView |
buildView(java.lang.String viewName) |
protected org.springframework.web.servlet.view.AbstractUrlBasedView |
instantiateView() |
protected java.lang.Class<?> |
requiredViewClass() |
void |
setCharset(java.lang.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, getCacheFilter, getCacheLimit, isCache, isCacheUnresolved, removeFromCache, resolveViewName, setCache, setCacheFilter, setCacheLimit, setCacheUnresolved
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
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 java.lang.Class<?> requiredViewClass()
requiredViewClass
in class org.springframework.web.servlet.view.AbstractTemplateViewResolver
public void setCharset(java.lang.String charset)
charset
- the charsetprotected org.springframework.web.servlet.view.AbstractUrlBasedView buildView(java.lang.String viewName) throws java.lang.Exception
buildView
in class org.springframework.web.servlet.view.AbstractTemplateViewResolver
java.lang.Exception
protected org.springframework.web.servlet.view.AbstractUrlBasedView instantiateView()
instantiateView
in class org.springframework.web.servlet.view.UrlBasedViewResolver