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 |
isExposeRequestAttributes() |
boolean |
isExposeSessionAttributes() |
boolean |
isExposeSpringMacroHelpers() |
void |
setAllowRequestOverride(boolean allowRequestOverride) |
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, getCharSet, getContentType, getViewNames, isCache, isCheckTemplateLocation, isEnabled, setCache, setCharset, 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 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 © 2014 Pivotal Software, Inc.. All rights reserved.