org.thymeleaf.spring3.view
Class ThymeleafView
Object
org.springframework.context.support.ApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
org.thymeleaf.spring3.view.ThymeleafView
- All Implemented Interfaces:
- org.springframework.beans.factory.BeanNameAware, org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware, org.springframework.web.servlet.View
public class ThymeleafView
- extends org.springframework.web.context.support.WebApplicationObjectSupport
- implements org.springframework.web.servlet.View, org.springframework.beans.factory.BeanNameAware
- Since:
- 1.0
- Author:
- Daniel Fernández
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport |
logger |
Fields inherited from interface org.springframework.web.servlet.View |
RESPONSE_STATUS_ATTRIBUTE |
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport |
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext |
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport |
getApplicationContext, getMessageSourceAccessor, initApplicationContext, requiredContextClass, setApplicationContext |
DEFAULT_CONTENT_TYPE
public static final String DEFAULT_CONTENT_TYPE
- See Also:
- Constant Field Values
ThymeleafView
protected ThymeleafView()
ThymeleafView
protected ThymeleafView(String templateName)
getContentType
public String getContentType()
- Specified by:
getContentType
in interface org.springframework.web.servlet.View
setContentType
public void setContentType(String contentType)
getCharacterEncoding
public String getCharacterEncoding()
setCharacterEncoding
public void setCharacterEncoding(String characterEncoding)
getBeanName
public String getBeanName()
setBeanName
public void setBeanName(String beanName)
- Specified by:
setBeanName
in interface org.springframework.beans.factory.BeanNameAware
getTemplateName
public String getTemplateName()
setTemplateName
public void setTemplateName(String templateName)
getLocale
protected Locale getLocale()
getTemplateEngine
protected org.thymeleaf.TemplateEngine getTemplateEngine()
getStaticVariables
public Map<String,Object> getStaticVariables()
addStaticVariable
public void addStaticVariable(String name,
Object value)
setStaticVariables
public void setStaticVariables(Map<String,?> variables)
render
public void render(Map<String,?> model,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
- Specified by:
render
in interface org.springframework.web.servlet.View
- Throws:
Exception
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2011 The THYMELEAF team. All Rights Reserved.