类 EmbeddedVelocityToolboxView

java.lang.Object
org.springframework.context.support.ApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
org.springframework.web.servlet.view.AbstractView
org.springframework.web.servlet.view.AbstractUrlBasedView
org.springframework.web.servlet.view.AbstractTemplateView
cn.aradin.spring.velocity.view.VelocityView
cn.aradin.spring.velocity.view.VelocityToolboxView
cn.aradin.spring.velocity.servlet.EmbeddedVelocityToolboxView
所有已实现的接口:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware, org.springframework.web.servlet.View

public class EmbeddedVelocityToolboxView extends VelocityToolboxView
Extended version of 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.
从以下版本开始:
1.2.5
作者:
Phillip Webb, Andy Wilkinson
  • 字段概要

    从类继承的字段 org.springframework.web.servlet.view.AbstractTemplateView

    SPRING_MACRO_REQUEST_CONTEXT_ATTRIBUTE

    从类继承的字段 org.springframework.web.servlet.view.AbstractView

    DEFAULT_CONTENT_TYPE

    从类继承的字段 org.springframework.context.support.ApplicationObjectSupport

    logger

    从接口继承的字段 org.springframework.web.servlet.View

    PATH_VARIABLES, RESPONSE_STATUS_ATTRIBUTE, SELECTED_CONTENT_TYPE
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    protected org.apache.velocity.context.Context
    createVelocityContext(Map<String,Object> model, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
    Overridden to create a ChainedContext, which is part of the view package of Velocity Tools, as special context.

    从类继承的方法 cn.aradin.spring.velocity.view.VelocityToolboxView

    getToolboxConfigLocation, initTool, setToolboxConfigLocation

    从类继承的方法 org.springframework.web.servlet.view.AbstractTemplateView

    applyContentType, renderMergedOutputModel, setAllowRequestOverride, setAllowSessionOverride, setExposeRequestAttributes, setExposeSessionAttributes, setExposeSpringMacroHelpers

    从类继承的方法 org.springframework.web.servlet.view.AbstractUrlBasedView

    afterPropertiesSet, getUrl, isUrlRequired, setUrl, toString

    从类继承的方法 org.springframework.web.servlet.view.AbstractView

    addStaticAttribute, 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, writeToResponse

    从类继承的方法 org.springframework.web.context.support.WebApplicationObjectSupport

    getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext

    从类继承的方法 org.springframework.context.support.ApplicationObjectSupport

    getApplicationContext, getMessageSourceAccessor, obtainApplicationContext, requiredContextClass, setApplicationContext

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 构造器详细资料

    • EmbeddedVelocityToolboxView

      public EmbeddedVelocityToolboxView()
  • 方法详细资料

    • createVelocityContext

      protected org.apache.velocity.context.Context createVelocityContext(Map<String,Object> model, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws Exception
      从类复制的说明: VelocityToolboxView
      Overridden to create a ChainedContext, which is part of the view package of Velocity Tools, as special context. ChainedContext is needed for initialization of ViewTool instances.
      覆盖:
      createVelocityContext 在类中 VelocityToolboxView
      参数:
      model - the model Map, containing the model attributes to be exposed to the view
      request - current HTTP request
      response - current HTTP response
      返回:
      the Velocity Context
      抛出:
      Exception - if there's a fatal error while creating the context
      另请参阅: