Class WebScriptView

  • All Implemented Interfaces:
    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 WebScriptView
    extends org.springframework.web.servlet.view.AbstractUrlBasedView
    WebScript view implementation. Maintains the MVC view name as a parameter to the WebScriptRuntime to ensure the correct WebScript is matched.
    Author:
    muzquiano, kevinr
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected ServletAuthenticatorFactory authenticatorFactory  
      protected org.springframework.extensions.config.ConfigService configService  
      protected RuntimeContainer container  
      protected static ServerProperties serverProperties
      Host Server Configuration
      • Fields inherited from class org.springframework.web.servlet.view.AbstractView

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

        logger
      • Fields inherited from interface org.springframework.web.servlet.View

        PATH_VARIABLES, RESPONSE_STATUS_ATTRIBUTE, SELECTED_CONTENT_TYPE
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void renderMergedOutputModel​(java.util.Map model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  
      static void setLanguageFromRequestHeader​(javax.servlet.http.HttpServletRequest req)
      Apply Client and Repository language locale based on the 'Accept-Language' request header
      • Methods inherited from class org.springframework.web.servlet.view.AbstractUrlBasedView

        afterPropertiesSet, checkResource, getUrl, isUrlRequired, setUrl, toString
      • Methods inherited from class 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
      • 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, initApplicationContext, obtainApplicationContext, requiredContextClass, setApplicationContext
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • configService

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

        protected static ServerProperties serverProperties
        Host Server Configuration
    • Constructor Detail

      • WebScriptView

        public WebScriptView​(RuntimeContainer container,
                             ServletAuthenticatorFactory authenticatorFactory,
                             org.springframework.extensions.config.ConfigService configService)
        WebScriptView constructor
        Parameters:
        container - WebScript RuntimeContainer
        authenticatorFactory - Authenticator Factory
        configService - Configuration Service
    • Method Detail

      • renderMergedOutputModel

        protected void renderMergedOutputModel​(java.util.Map model,
                                               javax.servlet.http.HttpServletRequest request,
                                               javax.servlet.http.HttpServletResponse response)
                                        throws java.lang.Exception
        Specified by:
        renderMergedOutputModel in class org.springframework.web.servlet.view.AbstractView
        Throws:
        java.lang.Exception
      • setLanguageFromRequestHeader

        public static void setLanguageFromRequestHeader​(javax.servlet.http.HttpServletRequest req)
        Apply Client and Repository language locale based on the 'Accept-Language' request header