Java org.springframework.web.servlet.view.freemarker FreeMarkerViewResolver fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.web.servlet.view.freemarker FreeMarkerViewResolver fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.web.servlet.view.freemarker FreeMarkerViewResolver.

The text is from its open source code.

Subclass

org.springframework.web.servlet.view.freemarker.FreeMarkerViewResolver has subclasses.
Click this link to see all its subclasses.

Constructor

FreeMarkerViewResolver()
Sets the default #setViewClass view class to #requiredViewClass : by default FreeMarkerView .

Method

ViewresolveViewName(String viewName, Locale locale)
voidsetAllowRequestOverride(boolean allowRequestOverride)
Set whether HttpServletRequest attributes are allowed to override (hide) controller generated model attributes of the same name.
voidsetAllowSessionOverride(boolean allowSessionOverride)
Set whether HttpSession attributes are allowed to override (hide) controller generated model attributes of the same name.
voidsetApplicationContext(@Nullable ApplicationContext context)
voidsetCache(boolean cache)
Enable or disable caching.
voidsetContentType(@Nullable String contentType)
Set the content type for all views.
voidsetExposeRequestAttributes(boolean exposeRequestAttributes)
Set whether all request attributes should be added to the model prior to merging with the template.
voidsetExposeSessionAttributes(boolean exposeSessionAttributes)
Set whether all HttpSession attributes should be added to the model prior to merging with the template.
voidsetExposeSpringMacroHelpers(boolean exposeSpringMacroHelpers)
Set whether to expose a RequestContext for use by Spring's macro library, under the name "springMacroRequestContext".
voidsetOrder(int order)
Specify the order value for this ViewResolver bean.
voidsetPrefix(@Nullable String prefix)
Set the prefix that gets prepended to view names when building a URL.
voidsetRequestContextAttribute(@Nullable String requestContextAttribute)
Set the name of the RequestContext attribute for all views.
voidsetSuffix(@Nullable String suffix)
Set the suffix that gets appended to view names when building a URL.