MustacheViewResolver

Spring MVC ViewResolver for Mustache.

Author

Brian Clozel

Since

2.0.0

Constructors

Link copied to clipboard
constructor()
Create a MustacheViewResolver backed by a default instance of a Compiler.
constructor(compiler: Mustache.Compiler)
Create a MustacheViewResolver backed by a custom instance of a Compiler.

Properties

Link copied to clipboard
Link copied to clipboard
open var cacheLimit: Int
Link copied to clipboard
protected open var contentType: String
Link copied to clipboard
Link copied to clipboard
protected open var exposePathVariables: Boolean
Link copied to clipboard
val FORWARD_URL_PREFIX: String = "forward:"
Link copied to clipboard
val HIGHEST_PRECEDENCE: Int = -2147483648
Link copied to clipboard
val LOWEST_PRECEDENCE: Int = 2147483647
Link copied to clipboard
open var order: Int
Link copied to clipboard
protected open var prefix: String
Link copied to clipboard
val REDIRECT_URL_PREFIX: String = "redirect:"
Link copied to clipboard
Link copied to clipboard
protected open var requestContextAttribute: String
Link copied to clipboard
protected open var servletContext: ServletContext
Link copied to clipboard
protected open var suffix: String
Link copied to clipboard
protected open var viewClass: Class<out Any>

Functions

Link copied to clipboard
open fun clearCache()
Link copied to clipboard
Link copied to clipboard
open fun isCache(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun removeFromCache(viewName: String, locale: Locale)
Link copied to clipboard
open fun resolveViewName(viewName: String, locale: Locale): View
Link copied to clipboard
open fun setAllowRequestOverride(allowRequestOverride: Boolean)
Link copied to clipboard
open fun setAllowSessionOverride(allowSessionOverride: Boolean)
Link copied to clipboard
open fun setAttributes(props: Properties)
Link copied to clipboard
open fun setAttributesMap(attributes: Map<String, out Any>)
Link copied to clipboard
open fun setCache(cache: Boolean)
Link copied to clipboard
open fun setCacheUnresolved(cacheUnresolved: Boolean)
Link copied to clipboard
open fun setCharset(charset: String)
Set the charset.
Link copied to clipboard
open fun setExposeContextBeansAsAttributes(exposeContextBeansAsAttributes: Boolean)
Link copied to clipboard
open fun setExposedContextBeanNames(exposedContextBeanNames: Array<String>)
Link copied to clipboard
open fun setExposeRequestAttributes(exposeRequestAttributes: Boolean)
Link copied to clipboard
open fun setExposeSessionAttributes(exposeSessionAttributes: Boolean)
Link copied to clipboard
open fun setExposeSpringMacroHelpers(exposeSpringMacroHelpers: Boolean)
Link copied to clipboard
open fun setRedirectContextRelative(redirectContextRelative: Boolean)
Link copied to clipboard
open fun setRedirectHosts(redirectHosts: Array<String>)
Link copied to clipboard
open fun setRedirectHttp10Compatible(redirectHttp10Compatible: Boolean)
Link copied to clipboard
open fun setViewNames(viewNames: Array<String>)