org.thymeleaf.spring3.view
Class ThymeleafView

Object
  extended by org.springframework.context.support.ApplicationObjectSupport
      extended by org.springframework.web.context.support.WebApplicationObjectSupport
          extended by 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

Field Summary
static String DEFAULT_CONTENT_TYPE
           
 
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport
logger
 
Fields inherited from interface org.springframework.web.servlet.View
RESPONSE_STATUS_ATTRIBUTE
 
Constructor Summary
protected ThymeleafView()
           
protected ThymeleafView(String templateName)
           
 
Method Summary
 void addStaticVariable(String name, Object value)
           
 String getBeanName()
           
 String getCharacterEncoding()
           
 String getContentType()
           
protected  Locale getLocale()
           
 Map<String,Object> getStaticVariables()
           
protected  org.thymeleaf.TemplateEngine getTemplateEngine()
           
 String getTemplateName()
           
 void render(Map<String,?> model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void setBeanName(String beanName)
           
 void setCharacterEncoding(String characterEncoding)
           
 void setContentType(String contentType)
           
 void setStaticVariables(Map<String,?> variables)
           
 void setTemplateName(String templateName)
           
 String toString()
           
 
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
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_CONTENT_TYPE

public static final String DEFAULT_CONTENT_TYPE
See Also:
Constant Field Values
Constructor Detail

ThymeleafView

protected ThymeleafView()

ThymeleafView

protected ThymeleafView(String templateName)
Method Detail

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.