public class VelocityView
extends org.springframework.web.servlet.view.AbstractTemplateView
| Constructor and Description |
|---|
VelocityView() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.velocity.app.VelocityEngine |
autodetectVelocityEngine() |
boolean |
checkResource(Locale locale) |
protected org.apache.velocity.context.Context |
createVelocityContext(Map<String,Object> model) |
protected org.apache.velocity.context.Context |
createVelocityContext(Map<String,Object> model,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
doRender(org.apache.velocity.context.Context context,
javax.servlet.http.HttpServletResponse response) |
protected void |
exposeHelpers(org.apache.velocity.context.Context velocityContext,
javax.servlet.http.HttpServletRequest request) |
protected void |
exposeHelpers(org.apache.velocity.context.Context velocityContext,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
exposeHelpers(Map<String,Object> model,
javax.servlet.http.HttpServletRequest request) |
protected void |
exposeToolAttributes(org.apache.velocity.context.Context velocityContext,
javax.servlet.http.HttpServletRequest request) |
protected String |
getEncoding() |
protected org.apache.velocity.Template |
getTemplate() |
protected org.apache.velocity.Template |
getTemplate(String name) |
protected org.apache.velocity.app.VelocityEngine |
getVelocityEngine() |
protected void |
initApplicationContext() |
protected void |
initTool(Object tool,
org.apache.velocity.context.Context velocityContext) |
protected boolean |
isCacheTemplate() |
protected void |
mergeTemplate(org.apache.velocity.Template template,
org.apache.velocity.context.Context context,
javax.servlet.http.HttpServletResponse response) |
protected void |
renderMergedTemplateModel(Map<String,Object> model,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
setCacheTemplate(boolean cacheTemplate) |
void |
setDateToolAttribute(String dateToolAttribute) |
void |
setEncoding(String encoding) |
void |
setNumberToolAttribute(String numberToolAttribute) |
void |
setToolAttributes(Map<String,Class<?>> toolAttributes) |
void |
setVelocityEngine(org.apache.velocity.app.VelocityEngine velocityEngine) |
applyContentType, renderMergedOutputModel, setAllowRequestOverride, setAllowSessionOverride, setExposeRequestAttributes, setExposeSessionAttributes, setExposeSpringMacroHelpersafterPropertiesSet, getUrl, isUrlRequired, setUrl, toStringaddStaticAttribute, createMergedOutputModel, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, generatesDownloadContent, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getRequestToExpose, getStaticAttributes, isExposePathVariables, prepareResponse, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setExposeContextBeansAsAttributes, setExposedContextBeanNames, setExposePathVariables, setRequestContextAttribute, setResponseContentType, writeToResponsegetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextpublic void setDateToolAttribute(String dateToolAttribute)
public void setNumberToolAttribute(String numberToolAttribute)
public void setEncoding(String encoding)
protected String getEncoding()
public void setCacheTemplate(boolean cacheTemplate)
protected boolean isCacheTemplate()
public void setVelocityEngine(org.apache.velocity.app.VelocityEngine velocityEngine)
protected org.apache.velocity.app.VelocityEngine getVelocityEngine()
protected void initApplicationContext()
throws org.springframework.beans.BeansException
initApplicationContext in class org.springframework.context.support.ApplicationObjectSupportorg.springframework.beans.BeansExceptionprotected org.apache.velocity.app.VelocityEngine autodetectVelocityEngine()
throws org.springframework.beans.BeansException
org.springframework.beans.BeansExceptionpublic boolean checkResource(Locale locale) throws Exception
checkResource in class org.springframework.web.servlet.view.AbstractUrlBasedViewExceptionprotected void renderMergedTemplateModel(Map<String,Object> model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
renderMergedTemplateModel in class org.springframework.web.servlet.view.AbstractTemplateViewExceptionprotected void exposeHelpers(Map<String,Object> model, javax.servlet.http.HttpServletRequest request) throws Exception
Exceptionprotected org.apache.velocity.context.Context createVelocityContext(Map<String,Object> model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exceptionprotected org.apache.velocity.context.Context createVelocityContext(Map<String,Object> model) throws Exception
Exceptionprotected void exposeHelpers(org.apache.velocity.context.Context velocityContext,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
Exceptionprotected void exposeHelpers(org.apache.velocity.context.Context velocityContext,
javax.servlet.http.HttpServletRequest request)
throws Exception
Exceptionprotected void exposeToolAttributes(org.apache.velocity.context.Context velocityContext,
javax.servlet.http.HttpServletRequest request)
throws Exception
Exceptionprotected void initTool(Object tool, org.apache.velocity.context.Context velocityContext) throws Exception
Exceptionprotected void doRender(org.apache.velocity.context.Context context,
javax.servlet.http.HttpServletResponse response)
throws Exception
Exceptionprotected org.apache.velocity.Template getTemplate(String name) throws Exception
ExceptionCopyright © 2018 Atlassian. All rights reserved.