Package org.thymeleaf.context
Interface IWebContext
- All Superinterfaces:
IContext
- All Known Implementing Classes:
WebContext
,WebEngineContext
,WebExpressionContext
Specialization of the IContext
interface to be implemented by contexts used for template
processing in web environments.
Objects implementing this interface add to the usual IContext
data the web related
artifacts needed to perform web-oriented functions such as URL rewriting or request/session access.
Note this interface was modified in a backwards-incompatible way in Thymeleaf 3.1.0.
- Since:
- 3.1.0
- Author:
- Daniel Fernández
-
Method Summary
Modifier and TypeMethodDescriptionReturns theIWebExchange
object associated with the template execution.Methods inherited from interface org.thymeleaf.context.IContext
containsVariable, getLocale, getVariable, getVariableNames
-
Method Details
-
getExchange
IWebExchange getExchange()Returns the
IWebExchange
object associated with the template execution.- Returns:
- the web exchange object.
-