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, getExpressionObjects
clearVariables, containsVariable, getLocale, getVariable, getVariableNames, removeVariable, setLocale, setVariable, setVariables
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
containsVariable, getLocale, getVariable, getVariableNames
public 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 IWebContext
public 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 IWebContext
public javax.servlet.http.HttpServletResponse getResponse()
IWebContext
Returns the HttpServletResponse
object associated with the template execution.
getResponse
in interface IWebContext
public javax.servlet.ServletContext getServletContext()
IWebContext
Returns the ServletContext
object associated with the template execution.
getServletContext
in interface IWebContext
Copyright © 2015 The THYMELEAF team. All rights reserved.