Class WebScriptView
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.extensions.webscripts.servlet.mvc.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
FieldsModifier and TypeFieldDescriptionprotected ServletAuthenticatorFactoryprotected org.springframework.extensions.config.ConfigServiceprotected RuntimeContainerprotected static ServerPropertiesHost Server ConfigurationFields inherited from class org.springframework.web.servlet.view.AbstractView
DEFAULT_CONTENT_TYPEFields inherited from class org.springframework.context.support.ApplicationObjectSupport
loggerFields inherited from interface org.springframework.web.servlet.View
PATH_VARIABLES, RESPONSE_STATUS_ATTRIBUTE, SELECTED_CONTENT_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionWebScriptView(RuntimeContainer container, ServletAuthenticatorFactory authenticatorFactory, org.springframework.extensions.config.ConfigService configService) WebScriptView constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected voidrenderMergedOutputModel(Map model, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) static voidsetLanguageFromRequestHeader(jakarta.servlet.http.HttpServletRequest req) Apply Client and Repository language locale based on the 'Accept-Language' request headerMethods inherited from class org.springframework.web.servlet.view.AbstractUrlBasedView
afterPropertiesSet, checkResource, getUrl, isUrlRequired, setUrl, toStringMethods 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, writeToResponseMethods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextMethods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, initApplicationContext, obtainApplicationContext, requiredContextClass, setApplicationContext
-
Field Details
-
container
-
authenticatorFactory
-
configService
protected org.springframework.extensions.config.ConfigService configService -
serverProperties
Host Server Configuration
-
-
Constructor Details
-
WebScriptView
public WebScriptView(RuntimeContainer container, ServletAuthenticatorFactory authenticatorFactory, org.springframework.extensions.config.ConfigService configService) WebScriptView constructor- Parameters:
container- WebScript RuntimeContainerauthenticatorFactory- Authenticator FactoryconfigService- Configuration Service
-
-
Method Details
-
renderMergedOutputModel
protected void renderMergedOutputModel(Map model, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws Exception - Specified by:
renderMergedOutputModelin classorg.springframework.web.servlet.view.AbstractView- Throws:
Exception
-
setLanguageFromRequestHeader
public static void setLanguageFromRequestHeader(jakarta.servlet.http.HttpServletRequest req) Apply Client and Repository language locale based on the 'Accept-Language' request header
-