public 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,
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 org.apache.sling.api.SlingHttpServletRequest getHttpServletRequest()
getHttpServletRequest
in interface org.thymeleaf.context.IWebContext
public org.apache.sling.api.SlingHttpServletResponse getHttpServletResponse()
getHttpServletResponse
in interface org.thymeleaf.context.IWebContext
public javax.servlet.http.HttpSession getHttpSession()
getHttpSession
in interface org.thymeleaf.context.IWebContext
public javax.servlet.ServletContext getServletContext()
getServletContext
in interface org.thymeleaf.context.IWebContext
public org.thymeleaf.context.VariablesMap<String,String[]> getRequestParameters()
getRequestParameters
in interface org.thymeleaf.context.IWebContext
public org.thymeleaf.context.VariablesMap<String,Object> getRequestAttributes()
getRequestAttributes
in interface org.thymeleaf.context.IWebContext
public org.thymeleaf.context.VariablesMap<String,Object> getSessionAttributes()
getSessionAttributes
in interface org.thymeleaf.context.IWebContext
public org.thymeleaf.context.VariablesMap<String,Object> getApplicationAttributes()
getApplicationAttributes
in interface org.thymeleaf.context.IWebContext
public org.apache.sling.api.resource.ResourceResolver getResourceResolver()
getResourceResolver
in interface SlingContext
public org.thymeleaf.context.VariablesMap<String,Object> getVariables()
getVariables
in interface org.thymeleaf.context.IContext
public Locale getLocale()
getLocale
in interface org.thymeleaf.context.IContext
public void addContextExecutionInfo(String templateName)
addContextExecutionInfo
in interface org.thymeleaf.context.IContext
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.