|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IWebContext
Subinterface of IContext
for implementations that can be
used for creating HTML/XHTML interfaces in web applications.
Method Summary | |
---|---|
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. |
String |
getContextPath()
Deprecated. Deprecated in favor of simpler APIs. Will be removed in 2.0.0. Use getHttpServletRequest().getContextPath() instead. |
javax.servlet.http.HttpServletRequest |
getHttpServletRequest()
Returns the HttpServletRequest 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. |
String |
getSessionID()
Deprecated. Deprecated in favor of simpler APIs. Will be removed in 2.0.0. Use getHttpSession().getId() instead. |
boolean |
isSessionIdFromCookie()
Deprecated. Deprecated in favor of simpler APIs. Will be removed in 2.0.0. Use getHttpServletRequest().isRequestedSessionIdFromCookie() instead. |
Methods inherited from interface org.thymeleaf.context.IContext |
---|
addContextExecutionInfo, getLocale, getVariables |
Method Detail |
---|
javax.servlet.http.HttpServletRequest getHttpServletRequest()
Returns the HttpServletRequest
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.
@Deprecated String getContextPath()
Returns the context path associated with the web application.
@Deprecated String getSessionID()
Returns the session ID associated with the current execution of the template engine. This ID corresponds with the jsessionid URL fragment or cookie from the HTTP request.
@Deprecated boolean isSessionIdFromCookie()
Returns whether the session ID is currently being kept by using cookies or an URL fragment.
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |