org.springframework.boot.web.servlet.view.velocity

Class EmbeddedVelocityViewResolver

  • java.lang.Object
    • org.springframework.context.support.ApplicationObjectSupport
      • org.springframework.web.context.support.WebApplicationObjectSupport
        • org.springframework.web.servlet.view.AbstractCachingViewResolver
          • org.springframework.web.servlet.view.UrlBasedViewResolver
            • org.springframework.web.servlet.view.AbstractTemplateViewResolver
              • org.springframework.web.servlet.view.velocity.VelocityViewResolver
                • org.springframework.boot.web.servlet.view.velocity.EmbeddedVelocityViewResolver
  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.core.Ordered, org.springframework.web.context.ServletContextAware, org.springframework.web.servlet.ViewResolver


    public class EmbeddedVelocityViewResolver
    extends org.springframework.web.servlet.view.velocity.VelocityViewResolver
    Extended version of VelocityViewResolver that uses EmbeddedVelocityToolboxView when the toolboxConfigLocation is set.
    Since:
    1.2.5
    Author:
    Phillip Webb
    • Field Summary

      • Fields inherited from class org.springframework.web.servlet.view.UrlBasedViewResolver

        FORWARD_URL_PREFIX, REDIRECT_URL_PREFIX
      • Fields inherited from class org.springframework.web.servlet.view.AbstractCachingViewResolver

        DEFAULT_CACHE_LIMIT
      • Fields inherited from class org.springframework.context.support.ApplicationObjectSupport

        logger
      • Fields inherited from interface org.springframework.core.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      protected void initApplicationContext() 
      void setToolboxConfigLocation(String toolboxConfigLocation) 
      • Methods inherited from class org.springframework.web.servlet.view.velocity.VelocityViewResolver

        buildView, requiredViewClass, setDateToolAttribute, setNumberToolAttribute
      • Methods inherited from class org.springframework.web.servlet.view.AbstractTemplateViewResolver

        setAllowRequestOverride, setAllowSessionOverride, setExposeRequestAttributes, setExposeSessionAttributes, setExposeSpringMacroHelpers
      • Methods inherited from class org.springframework.web.servlet.view.UrlBasedViewResolver

        canHandle, createView, getAttributesMap, getCacheKey, getContentType, getExposeContextBeansAsAttributes, getExposedContextBeanNames, getExposePathVariables, getOrder, getPrefix, getRequestContextAttribute, getSuffix, getViewClass, getViewNames, isRedirectContextRelative, isRedirectHttp10Compatible, loadView, setAttributes, setAttributesMap, setContentType, setExposeContextBeansAsAttributes, setExposedContextBeanNames, setExposePathVariables, setOrder, setPrefix, setRedirectContextRelative, setRedirectHttp10Compatible, setRequestContextAttribute, setSuffix, setViewClass, setViewNames
      • Methods inherited from class org.springframework.web.servlet.view.AbstractCachingViewResolver

        clearCache, getCacheLimit, isCache, isCacheUnresolved, removeFromCache, resolveViewName, setCache, setCacheLimit, setCacheUnresolved
      • Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport

        getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
      • Methods inherited from class org.springframework.context.support.ApplicationObjectSupport

        getApplicationContext, getMessageSourceAccessor, requiredContextClass, setApplicationContext
    • Constructor Detail

      • EmbeddedVelocityViewResolver

        public EmbeddedVelocityViewResolver()
    • Method Detail

      • initApplicationContext

        protected void initApplicationContext()
        Overrides:
        initApplicationContext in class org.springframework.web.servlet.view.velocity.VelocityViewResolver
      • setToolboxConfigLocation

        public void setToolboxConfigLocation(String toolboxConfigLocation)
        Overrides:
        setToolboxConfigLocation in class org.springframework.web.servlet.view.velocity.VelocityViewResolver

Copyright © 2015 Pivotal Software, Inc.. All rights reserved.