public abstract class AbstractTemplateViewResolverProperties extends AbstractViewResolverProperties
ConfigurationProperties
of a
AbstractTemplateViewResolver
.Modifier | Constructor and Description |
---|---|
protected |
AbstractTemplateViewResolverProperties(String defaultPrefix,
String defaultSuffix) |
Modifier and Type | Method and Description |
---|---|
void |
applyToViewResolver(Object viewResolver)
Apply the given properties to a
AbstractTemplateViewResolver . |
String |
getPrefix() |
String |
getRequestContextAttribute() |
String |
getSuffix() |
boolean |
isAllowRequestOverride() |
boolean |
isAllowSessionOverride() |
boolean |
isExposeRequestAttributes() |
boolean |
isExposeSessionAttributes() |
boolean |
isExposeSpringMacroHelpers() |
void |
setAllowRequestOverride(boolean allowRequestOverride) |
void |
setAllowSessionOverride(boolean allowSessionOverride) |
void |
setExposeRequestAttributes(boolean exposeRequestAttributes) |
void |
setExposeSessionAttributes(boolean exposeSessionAttributes) |
void |
setExposeSpringMacroHelpers(boolean exposeSpringMacroHelpers) |
void |
setPrefix(String prefix) |
void |
setRequestContextAttribute(String requestContextAttribute) |
void |
setSuffix(String suffix) |
getCharset, getCharsetName, getContentType, getViewNames, isCache, isCheckTemplateLocation, isEnabled, setCache, setCharset, setCheckTemplateLocation, setContentType, setEnabled, setViewNames
public String getPrefix()
public void setPrefix(String prefix)
public String getSuffix()
public void setSuffix(String suffix)
public String getRequestContextAttribute()
public void setRequestContextAttribute(String requestContextAttribute)
public boolean isExposeRequestAttributes()
public void setExposeRequestAttributes(boolean exposeRequestAttributes)
public boolean isExposeSessionAttributes()
public void setExposeSessionAttributes(boolean exposeSessionAttributes)
public boolean isAllowRequestOverride()
public void setAllowRequestOverride(boolean allowRequestOverride)
public boolean isAllowSessionOverride()
public void setAllowSessionOverride(boolean allowSessionOverride)
public boolean isExposeSpringMacroHelpers()
public void setExposeSpringMacroHelpers(boolean exposeSpringMacroHelpers)
public void applyToViewResolver(Object viewResolver)
AbstractTemplateViewResolver
. Use Object in
signature to avoid runtime dependency on MVC, which means that the template engine
can be used in a non-web application.viewResolver
- the resolver to apply the properties to.Copyright © 2018 Pivotal Software, Inc.. All rights reserved.