Class WebScriptViewResolver

  • All Implemented Interfaces:
    java.util.EventListener, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener, org.springframework.core.Ordered, org.springframework.web.context.ServletContextAware, org.springframework.web.servlet.ViewResolver

    public class WebScriptViewResolver
    extends AbstractWebScriptViewResolver
    implements org.springframework.context.ApplicationListener
    Resolves views to Web Scripts
    Author:
    muzquiano
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected ServletAuthenticatorFactory authenticatorFactory  
      protected org.springframework.extensions.config.ConfigService configService  
      protected RuntimeContainer container  
      • 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
    • Constructor Summary

      Constructors 
      Constructor Description
      WebScriptViewResolver()
      WebScriptViewResolver Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.springframework.web.servlet.view.AbstractUrlBasedView buildView​(java.lang.String viewName)  
      protected boolean canHandle​(java.lang.String viewName, java.util.Locale locale)  
      void onApplicationEvent​(org.springframework.context.ApplicationEvent event)  
      void onBootstrap()
      Initializes the view resolver
      void setAuthenticatorFactory​(ServletAuthenticatorFactory authenticatorFactory)
      Sets the authenticator factory.
      void setContainer​(RuntimeContainer container)
      Sets the container.
      • Methods inherited from class org.springframework.web.servlet.view.UrlBasedViewResolver

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

        getCacheLimit, isCache, isCacheUnresolved, 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WebScriptViewResolver

        public WebScriptViewResolver()
        WebScriptViewResolver Constructor
    • Method Detail

      • setContainer

        public void setContainer​(RuntimeContainer container)
        Sets the container.
        Parameters:
        container - the new container
      • setAuthenticatorFactory

        public void setAuthenticatorFactory​(ServletAuthenticatorFactory authenticatorFactory)
        Sets the authenticator factory.
        Parameters:
        authenticatorFactory - the new authenticator factory
      • onApplicationEvent

        public void onApplicationEvent​(org.springframework.context.ApplicationEvent event)
        Specified by:
        onApplicationEvent in interface org.springframework.context.ApplicationListener
      • onBootstrap

        public void onBootstrap()
        Initializes the view resolver
      • canHandle

        protected boolean canHandle​(java.lang.String viewName,
                                    java.util.Locale locale)
        Overrides:
        canHandle in class org.springframework.web.servlet.view.UrlBasedViewResolver
      • buildView

        protected org.springframework.web.servlet.view.AbstractUrlBasedView buildView​(java.lang.String viewName)
                                                                               throws java.lang.Exception
        Overrides:
        buildView in class org.springframework.web.servlet.view.UrlBasedViewResolver
        Throws:
        java.lang.Exception