public final class SlingWebContext extends Object implements SlingContext, org.thymeleaf.context.IWebContext
| Constructor and Description |
|---|
SlingWebContext(org.apache.sling.api.SlingHttpServletRequest servletRequest,
org.apache.sling.api.SlingHttpServletResponse servletResponse,
javax.servlet.ServletContext servletContext,
org.apache.sling.api.resource.ResourceResolver resourceResolver,
Locale locale,
Map<String,?> variables) |
| Modifier and Type | Method and Description |
|---|---|
void |
addContextExecutionInfo(String templateName) |
org.thymeleaf.context.VariablesMap<String,Object> |
getApplicationAttributes() |
org.apache.sling.api.SlingHttpServletRequest |
getHttpServletRequest() |
org.apache.sling.api.SlingHttpServletResponse |
getHttpServletResponse() |
javax.servlet.http.HttpSession |
getHttpSession() |
Locale |
getLocale() |
org.thymeleaf.context.VariablesMap<String,Object> |
getRequestAttributes() |
org.thymeleaf.context.VariablesMap<String,String[]> |
getRequestParameters() |
org.apache.sling.api.resource.ResourceResolver |
getResourceResolver() |
javax.servlet.ServletContext |
getServletContext() |
org.thymeleaf.context.VariablesMap<String,Object> |
getSessionAttributes() |
org.thymeleaf.context.VariablesMap<String,Object> |
getVariables() |
public SlingWebContext(org.apache.sling.api.SlingHttpServletRequest servletRequest,
org.apache.sling.api.SlingHttpServletResponse servletResponse,
javax.servlet.ServletContext servletContext,
org.apache.sling.api.resource.ResourceResolver resourceResolver,
Locale locale,
Map<String,?> variables)
public org.apache.sling.api.SlingHttpServletRequest getHttpServletRequest()
getHttpServletRequest in interface org.thymeleaf.context.IWebContextpublic org.apache.sling.api.SlingHttpServletResponse getHttpServletResponse()
getHttpServletResponse in interface org.thymeleaf.context.IWebContextpublic javax.servlet.http.HttpSession getHttpSession()
getHttpSession in interface org.thymeleaf.context.IWebContextpublic javax.servlet.ServletContext getServletContext()
getServletContext in interface org.thymeleaf.context.IWebContextpublic org.apache.sling.api.resource.ResourceResolver getResourceResolver()
getResourceResolver in interface SlingContextpublic Locale getLocale()
getLocale in interface org.thymeleaf.context.IContextpublic org.thymeleaf.context.VariablesMap<String,Object> getVariables()
getVariables in interface org.thymeleaf.context.IContextpublic org.thymeleaf.context.VariablesMap<String,String[]> getRequestParameters()
getRequestParameters in interface org.thymeleaf.context.IWebContextpublic org.thymeleaf.context.VariablesMap<String,Object> getRequestAttributes()
getRequestAttributes in interface org.thymeleaf.context.IWebContextpublic org.thymeleaf.context.VariablesMap<String,Object> getSessionAttributes()
getSessionAttributes in interface org.thymeleaf.context.IWebContextpublic org.thymeleaf.context.VariablesMap<String,Object> getApplicationAttributes()
getApplicationAttributes in interface org.thymeleaf.context.IWebContextpublic void addContextExecutionInfo(String templateName)
addContextExecutionInfo in interface org.thymeleaf.context.IContextCopyright © 2007–2015 The Apache Software Foundation. All rights reserved.