public interface IWebContext extends IContext
Subinterface of IContext
for implementations that can be
used for creating HTML/XHTML interfaces in web applications.
Modifier and Type | Method and Description |
---|---|
VariablesMap<String,Object> |
getApplicationAttributes()
Returns a
VariablesMap object with all the attributes associated
with the ServletContext object linked to the
HttpServletRequest used for creating the context. |
javax.servlet.http.HttpServletRequest |
getHttpServletRequest()
Returns the
HttpServletRequest object associated with the
request this context has been created for. |
javax.servlet.http.HttpServletResponse |
getHttpServletResponse()
Returns the
HttpServletResponse object associated with the
request this context has been created for. |
javax.servlet.http.HttpSession |
getHttpSession()
Returns the
HttpSession object associated with the
request this context has been created for. |
VariablesMap<String,Object> |
getRequestAttributes()
Returns a
VariablesMap object with all the attributes associated
with the HttpServletRequest used for creating the context. |
VariablesMap<String,String[]> |
getRequestParameters()
Returns a
VariablesMap object with all the parameters associated
with the HttpServletRequest used for creating the context. |
javax.servlet.ServletContext |
getServletContext()
Returns the
ServletContext object associated with the
web application. |
VariablesMap<String,Object> |
getSessionAttributes()
Returns a
VariablesMap object with all the attributes associated
with the HttpSession object linked to the
HttpServletRequest used for creating the context. |
addContextExecutionInfo, getLocale, getVariables
javax.servlet.http.HttpServletRequest getHttpServletRequest()
Returns the HttpServletRequest
object associated with the
request this context has been created for.
javax.servlet.http.HttpServletResponse getHttpServletResponse()
Returns the HttpServletResponse
object associated with the
request this context has been created for.
javax.servlet.http.HttpSession getHttpSession()
Returns the HttpSession
object associated with the
request this context has been created for.
javax.servlet.ServletContext getServletContext()
Returns the ServletContext
object associated with the
web application.
VariablesMap<String,String[]> getRequestParameters()
Returns a VariablesMap
object with all the parameters associated
with the HttpServletRequest
used for creating the context.
VariablesMap<String,Object> getRequestAttributes()
Returns a VariablesMap
object with all the attributes associated
with the HttpServletRequest
used for creating the context.
VariablesMap<String,Object> getSessionAttributes()
Returns a VariablesMap
object with all the attributes associated
with the HttpSession
object linked to the
HttpServletRequest
used for creating the context.
VariablesMap<String,Object> getApplicationAttributes()
Returns a VariablesMap
object with all the attributes associated
with the ServletContext
object linked to the
HttpServletRequest
used for creating the context.
Copyright © 2016 The THYMELEAF team. All rights reserved.