public abstract class AbstractTemplateViewResolverProperties extends Object
ConfigurationProperties
for
view resolvers
.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 |
getCharSet() |
String |
getContentType() |
String |
getPrefix() |
String |
getRequestContextAttribute() |
String |
getSuffix() |
String[] |
getViewNames() |
boolean |
isAllowRequestOverride() |
boolean |
isCache() |
boolean |
isCheckTemplateLocation() |
boolean |
isExposeRequestAttributes() |
boolean |
isExposeSessionAttributes() |
boolean |
isExposeSpringMacroHelpers() |
void |
setAllowRequestOverride(boolean allowRequestOverride) |
void |
setCache(boolean cache) |
void |
setCharSet(String charSet) |
void |
setCheckTemplateLocation(boolean checkTemplateLocation) |
void |
setContentType(String contentType) |
void |
setExposeRequestAttributes(boolean exposeRequestAttributes) |
void |
setExposeSessionAttributes(boolean exposeSessionAttributes) |
void |
setExposeSpringMacroHelpers(boolean exposeSpringMacroHelpers) |
void |
setPrefix(String prefix) |
void |
setRequestContextAttribute(String requestContextAttribute) |
void |
setSuffix(String suffix) |
void |
setViewNames(String[] viewNames) |
public void setCheckTemplateLocation(boolean checkTemplateLocation)
public boolean isCheckTemplateLocation()
public String[] getViewNames()
public void setViewNames(String[] viewNames)
public boolean isCache()
public void setCache(boolean cache)
public String getContentType()
public void setContentType(String contentType)
public String getCharSet()
public void setCharSet(String charSet)
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.