Class WebScriptViewResolver

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.extensions.webscripts.servlet.mvc.AbstractWebScriptViewResolver
org.springframework.extensions.webscripts.servlet.mvc.WebScriptViewResolver
All Implemented Interfaces:
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
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.springframework.web.servlet.view.AbstractCachingViewResolver

    org.springframework.web.servlet.view.AbstractCachingViewResolver.CacheFilter
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    protected org.springframework.extensions.config.ConfigService
     
     

    Fields inherited from class org.springframework.extensions.webscripts.servlet.mvc.AbstractWebScriptViewResolver

    useNullSentinel

    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 Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.springframework.web.servlet.view.AbstractUrlBasedView
    buildView(String viewName)
     
    protected boolean
    canHandle(String viewName, Locale locale)
     
    void
    onApplicationEvent(org.springframework.context.ApplicationEvent event)
     
    void
    Initializes the view resolver
    void
    Sets the authenticator factory.
    void
    Sets the container.

    Methods inherited from class org.springframework.extensions.webscripts.servlet.mvc.AbstractWebScriptViewResolver

    clearCache, removeFromCache, resolveViewName

    Methods inherited from class org.springframework.web.servlet.view.UrlBasedViewResolver

    applyLifecycleMethods, createView, getAttributesMap, getCacheKey, getContentType, getExposeContextBeansAsAttributes, getExposedContextBeanNames, getExposePathVariables, getOrder, getPrefix, getRedirectHosts, getRequestContextAttribute, getSuffix, getViewClass, getViewNames, initApplicationContext, instantiateView, isRedirectContextRelative, isRedirectHttp10Compatible, loadView, requiredViewClass, setAttributes, setAttributesMap, setContentType, setExposeContextBeansAsAttributes, setExposedContextBeanNames, setExposePathVariables, setOrder, setPrefix, setRedirectContextRelative, setRedirectHosts, setRedirectHttp10Compatible, setRequestContextAttribute, setSuffix, setViewClass, setViewNames

    Methods inherited from class org.springframework.web.servlet.view.AbstractCachingViewResolver

    getCacheFilter, getCacheLimit, isCache, isCacheUnresolved, setCache, setCacheFilter, 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, obtainApplicationContext, requiredContextClass, setApplicationContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.context.ApplicationListener

    supportsAsyncExecution
  • Field Details

    • container

      protected RuntimeContainer container
    • configService

      protected org.springframework.extensions.config.ConfigService configService
    • authenticatorFactory

      protected ServletAuthenticatorFactory authenticatorFactory
  • Constructor Details

    • WebScriptViewResolver

      public WebScriptViewResolver()
      WebScriptViewResolver Constructor
  • Method Details

    • 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(String viewName, Locale locale)
      Overrides:
      canHandle in class org.springframework.web.servlet.view.UrlBasedViewResolver
    • buildView

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