public interface ThymeleafWebContextProvider
IContext that is suitable in a
Web application.
The generated context is then used to provide access to Spring extensions
from templates such as #mvc.url,
@{/path/to/controller}
and any other Spring extension.| Modifier and Type | Method and Description |
|---|---|
org.thymeleaf.context.IContext |
getWebContext(Context context,
org.thymeleaf.context.IContext base,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletContext servletContext,
org.springframework.context.ApplicationContext applicationContext,
Map<String,Object> springModel)
Generates the suitable context for a Web application.
|
org.thymeleaf.context.IContext getWebContext(Context context, org.thymeleaf.context.IContext base, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext servletContext, org.springframework.context.ApplicationContext applicationContext, Map<String,Object> springModel)
context - Ogham original context that may be used to retrieve extra
informationbase - Thymeleaf context that has been converted from Ogham original
context. It contains the base variables extracted from Ogham
context.request - the current HTTP requestresponse - the current HTTP responseservletContext - the servlet execution contextapplicationContext - the application contextspringModel - the model that contains both variables extracted from Ogham
context and Spring variables (static variables, evaluation
context, ...)Copyright © 2021. All rights reserved.