@ConfigurationProperties(prefix="spring.velocity") public class VelocityProperties extends AbstractTemplateViewResolverProperties
ConfigurationProperties
for configuring VelocityModifier and Type | Field and Description |
---|---|
static String |
DEFAULT_PREFIX |
static String |
DEFAULT_RESOURCE_LOADER_PATH |
static String |
DEFAULT_SUFFIX |
Constructor and Description |
---|
VelocityProperties() |
Modifier and Type | Method and Description |
---|---|
void |
applyToViewResolver(Object viewResolver)
Apply the given properties to a
AbstractTemplateViewResolver . |
String |
getDateToolAttribute() |
String |
getNumberToolAttribute() |
Map<String,String> |
getProperties() |
String |
getResourceLoaderPath() |
String |
getToolboxConfigLocation() |
boolean |
isPreferFileSystemAccess() |
void |
setDateToolAttribute(String dateToolAttribute) |
void |
setNumberToolAttribute(String numberToolAttribute) |
void |
setPreferFileSystemAccess(boolean preferFileSystemAccess) |
void |
setProperties(Map<String,String> properties) |
void |
setResourceLoaderPath(String resourceLoaderPath) |
void |
setToolboxConfigLocation(String toolboxConfigLocation) |
getPrefix, getRequestContextAttribute, getSuffix, isAllowRequestOverride, isExposeRequestAttributes, isExposeSessionAttributes, isExposeSpringMacroHelpers, setAllowRequestOverride, setExposeRequestAttributes, setExposeSessionAttributes, setExposeSpringMacroHelpers, setPrefix, setRequestContextAttribute, setSuffix
getCharset, getCharSet, getContentType, getViewNames, isCache, isCheckTemplateLocation, isEnabled, setCache, setCharset, setCharSet, setCheckTemplateLocation, setContentType, setEnabled, setViewNames
public static final String DEFAULT_RESOURCE_LOADER_PATH
public static final String DEFAULT_PREFIX
public static final String DEFAULT_SUFFIX
public String getDateToolAttribute()
public void setDateToolAttribute(String dateToolAttribute)
public String getNumberToolAttribute()
public void setNumberToolAttribute(String numberToolAttribute)
public String getResourceLoaderPath()
public void setResourceLoaderPath(String resourceLoaderPath)
public String getToolboxConfigLocation()
public void setToolboxConfigLocation(String toolboxConfigLocation)
public boolean isPreferFileSystemAccess()
public void setPreferFileSystemAccess(boolean preferFileSystemAccess)
public void applyToViewResolver(Object viewResolver)
AbstractTemplateViewResolverProperties
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.applyToViewResolver
in class AbstractTemplateViewResolverProperties
viewResolver
- the resolver to apply the properties to.Copyright © 2014 Pivotal Software, Inc.. All rights reserved.