public class EmbeddedVelocityToolboxView extends VelocityToolboxView
VelocityToolboxView that can load toolbox locations from
the classpath as well as the servlet context. This is useful when running in an
embedded web server.| 构造器和说明 |
|---|
EmbeddedVelocityToolboxView() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected org.apache.velocity.context.Context |
createVelocityContext(Map<String,Object> model,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Overridden to create a ChainedContext, which is part of the view package
of Velocity Tools, as special context.
|
getToolboxConfigLocation, initTool, setToolboxConfigLocationautodetectVelocityEngine, checkResource, createVelocityContext, doRender, exposeHelpers, exposeHelpers, exposeHelpers, exposeToolAttributes, getEncoding, getTemplate, getTemplate, getVelocityEngine, initApplicationContext, isCacheTemplate, mergeTemplate, renderMergedTemplateModel, setCacheTemplate, setDateToolAttribute, setEncoding, setNumberToolAttribute, setToolAttributes, setVelocityEngineapplyContentType, renderMergedOutputModel, setAllowRequestOverride, setAllowSessionOverride, setExposeRequestAttributes, setExposeSessionAttributes, setExposeSpringMacroHelpersafterPropertiesSet, getUrl, isUrlRequired, setUrl, toStringaddStaticAttribute, createMergedOutputModel, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, formatViewName, 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, setServletContextprotected org.apache.velocity.context.Context createVelocityContext(Map<String,Object> model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
VelocityToolboxViewcreateVelocityContext 在类中 VelocityToolboxViewmodel - the model Map, containing the model attributes to be exposed to the viewrequest - current HTTP requestresponse - current HTTP responseException - if there's a fatal error while creating the contextVelocityToolboxView.initTool(java.lang.Object, org.apache.velocity.context.Context)Copyright © 2022. All rights reserved.