public class SpringWebContext
extends org.thymeleaf.context.WebContext
Implementation of IContext meant for Spring MVC applications,
extending WebContext and adding:
Beans) that allows users to access beans
in the application context. This variable can be accessed like any other variable
in the context: ${beans.myBean.doSomething()}.getApplicationContext()).| Modifier and Type | Field and Description |
|---|---|
static String |
BEANS_VARIABLE_NAME |
| Constructor and Description |
|---|
SpringWebContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletContext servletContext,
Locale locale,
Map<String,?> variables,
org.springframework.context.ApplicationContext appctx)
Creates a new instance of a SpringWebContext.
|
| Modifier and Type | Method and Description |
|---|---|
org.springframework.context.ApplicationContext |
getApplicationContext() |
buildContextExecutionInfo, getApplicationAttributes, getHttpServletRequest, getHttpServletResponse, getHttpSession, getRequestAttributes, getRequestParameters, getServletContext, getSessionAttributesaddContextExecutionInfo, clearVariables, getLocale, getVariables, setLocale, setVariable, setVariablespublic static final String BEANS_VARIABLE_NAME
public SpringWebContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletContext servletContext,
Locale locale,
Map<String,?> variables,
org.springframework.context.ApplicationContext appctx)
Creates a new instance of a SpringWebContext.
request - the request objectresponse - the response objectservletContext - the servlet contextlocale - the localevariables - the variables to be included into the contextappctx - the Spring application contextCopyright © 2017 The THYMELEAF team. All rights reserved.