Package org.thymeleaf.context
Class WebExpressionContext
Object
org.thymeleaf.context.AbstractContext
org.thymeleaf.context.AbstractExpressionContext
org.thymeleaf.context.WebExpressionContext
- All Implemented Interfaces:
IContext,IExpressionContext,IWebContext
Basic web-oriented implementation of the IExpressionContext and IWebContext interfaces.
This class is not thread-safe, and should not be shared across executions of templates.
Note this class was modified in a backwards-incompatible way in Thymeleaf 3.1.0.
- Since:
- 3.1.0
- Author:
- Daniel Fernández
-
Constructor Summary
ConstructorsConstructorDescriptionWebExpressionContext(IEngineConfiguration configuration, IWebExchange webExchange) WebExpressionContext(IEngineConfiguration configuration, IWebExchange webExchange, Locale locale) WebExpressionContext(IEngineConfiguration configuration, IWebExchange webExchange, Locale locale, Map<String, Object> variables) -
Method Summary
Modifier and TypeMethodDescriptionReturns theIWebExchangeobject associated with the template execution.Methods inherited from class org.thymeleaf.context.AbstractExpressionContext
getConfiguration, getExpressionObjectsMethods inherited from class org.thymeleaf.context.AbstractContext
clearVariables, containsVariable, getLocale, getVariable, getVariableNames, removeVariable, setLocale, setVariable, setVariablesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.thymeleaf.context.IContext
containsVariable, getLocale, getVariable, getVariableNames
-
Constructor Details
-
WebExpressionContext
-
WebExpressionContext
public WebExpressionContext(IEngineConfiguration configuration, IWebExchange webExchange, Locale locale) -
WebExpressionContext
public WebExpressionContext(IEngineConfiguration configuration, IWebExchange webExchange, Locale locale, Map<String, Object> variables)
-
-
Method Details
-
getExchange
Description copied from interface:IWebContextReturns the
IWebExchangeobject associated with the template execution.- Specified by:
getExchangein interfaceIWebContext- Returns:
- the web exchange object.
-