public final class WebExpressionContext extends AbstractExpressionContext implements 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.
| Constructor and Description |
|---|
WebExpressionContext(IEngineConfiguration configuration,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletContext servletContext) |
WebExpressionContext(IEngineConfiguration configuration,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletContext servletContext,
Locale locale) |
WebExpressionContext(IEngineConfiguration configuration,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletContext servletContext,
Locale locale,
Map<String,Object> variables) |
| Modifier and Type | Method and Description |
|---|---|
javax.servlet.http.HttpServletRequest |
getRequest()
Returns the
HttpServletRequest object associated with the template execution. |
javax.servlet.http.HttpServletResponse |
getResponse()
Returns the
HttpServletResponse object associated with the template execution. |
javax.servlet.ServletContext |
getServletContext()
Returns the
ServletContext object associated with the template execution. |
javax.servlet.http.HttpSession |
getSession()
Returns the
HttpSession object associated with the template execution, or null if
there is no session. |
getConfiguration, getExpressionObjectsclearVariables, containsVariable, getLocale, getVariable, getVariableNames, removeVariable, setLocale, setVariable, setVariablesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontainsVariable, getLocale, getVariable, getVariableNamespublic WebExpressionContext(IEngineConfiguration configuration, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext servletContext)
public WebExpressionContext(IEngineConfiguration configuration, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext servletContext, Locale locale)
public WebExpressionContext(IEngineConfiguration configuration, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext servletContext, Locale locale, Map<String,Object> variables)
public javax.servlet.http.HttpServletRequest getRequest()
IWebContext
Returns the HttpServletRequest object associated with the template execution.
getRequest in interface IWebContextpublic javax.servlet.http.HttpSession getSession()
IWebContext
Returns the HttpSession object associated with the template execution, or null if
there is no session.
getSession in interface IWebContextpublic javax.servlet.http.HttpServletResponse getResponse()
IWebContext
Returns the HttpServletResponse object associated with the template execution.
getResponse in interface IWebContextpublic javax.servlet.ServletContext getServletContext()
IWebContext
Returns the ServletContext object associated with the template execution.
getServletContext in interface IWebContextCopyright © 2017 The THYMELEAF team. All rights reserved.