org.thymeleaf.spring3.context
Class SpringWebContext

Object
  extended by org.thymeleaf.context.AbstractContext
      extended by org.thymeleaf.context.WebContext
          extended by org.thymeleaf.spring3.context.SpringWebContext
All Implemented Interfaces:
org.thymeleaf.context.IContext, org.thymeleaf.context.IWebContext

public class SpringWebContext
extends org.thymeleaf.context.WebContext

Implementation of IContext meant for Spring MVC applications, extending WebContext and adding:

Since:
1.0
Author:
Daniel Fernández, Josh Long

Field Summary
static String BEANS_VARIABLE_NAME
           
 
Fields inherited from class org.thymeleaf.context.WebContext
APPLICATION_VARIABLE_NAME, PARAM_VARIABLE_NAME, SESSION_VARIABLE_NAME
 
Fields inherited from class org.thymeleaf.context.AbstractContext
EXEC_INFO_VARIABLE_NAME
 
Constructor Summary
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.
SpringWebContext(javax.servlet.http.HttpServletRequest request, javax.servlet.ServletContext servletContext, Locale locale, Map<String,?> variables, org.springframework.context.ApplicationContext appctx)
          Deprecated. use the constructor with an additional 'response' argument instead. Will be removed in 2.1.x.
 
Method Summary
 org.springframework.context.ApplicationContext getApplicationContext()
           
 
Methods inherited from class org.thymeleaf.context.WebContext
buildContextExecutionInfo, getApplicationAttributes, getHttpServletRequest, getHttpServletResponse, getHttpSession, getRequestAttributes, getRequestParameters, getServletContext, getSessionAttributes
 
Methods inherited from class org.thymeleaf.context.AbstractContext
addContextExecutionInfo, clearVariables, getLocale, getVariables, setLocale, setVariable, setVariables
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.thymeleaf.context.IContext
addContextExecutionInfo, getLocale, getVariables
 

Field Detail

BEANS_VARIABLE_NAME

public static final String BEANS_VARIABLE_NAME
See Also:
Constant Field Values
Constructor Detail

SpringWebContext

@Deprecated
public SpringWebContext(javax.servlet.http.HttpServletRequest request,
                                   javax.servlet.ServletContext servletContext,
                                   Locale locale,
                                   Map<String,?> variables,
                                   org.springframework.context.ApplicationContext appctx)
Deprecated. use the constructor with an additional 'response' argument instead. Will be removed in 2.1.x.

Creates a new instance of a SpringWebContext.

Parameters:
request - the request object
servletContext - the servlet context
locale - the locale
variables - the variables to be included into the context
appctx - the Spring application context

SpringWebContext

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.

Parameters:
request - the request object
response - the response object
servletContext - the servlet context
locale - the locale
variables - the variables to be included into the context
appctx - the Spring application context
Method Detail

getApplicationContext

public org.springframework.context.ApplicationContext getApplicationContext()


Copyright © 2012 The THYMELEAF team. All Rights Reserved.