|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object org.springframework.context.support.ApplicationObjectSupport org.springframework.web.context.support.WebApplicationObjectSupport org.thymeleaf.spring4.view.AbstractThymeleafView org.thymeleaf.spring4.view.ThymeleafView
public class ThymeleafView
Base implementation of the Spring MVC View
interface.
Views represent a template being executed, after being resolved (and
instantiated) by a ViewResolver
.
This is the default view implementation resolved by ThymeleafViewResolver
.
Field Summary |
---|
Fields inherited from class org.thymeleaf.spring4.view.AbstractThymeleafView |
---|
DEFAULT_CONTENT_TYPE |
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport |
---|
logger |
Fields inherited from interface org.springframework.web.servlet.View |
---|
PATH_VARIABLES, RESPONSE_STATUS_ATTRIBUTE, SELECTED_CONTENT_TYPE |
Constructor Summary | |
---|---|
protected |
ThymeleafView()
Creates a new instance of ThymeleafView. |
protected |
ThymeleafView(String templateName)
Creates a new instance of ThymeleafView, specifying the template name. |
Method Summary | |
---|---|
org.thymeleaf.fragment.IFragmentSpec |
getFragmentSpec()
Returns the fragment specification ( IFragmentSpec ) defining the part
of the template that should be processed. |
void |
render(Map<String,?> model,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
protected void |
renderFragment(org.thymeleaf.fragment.IFragmentSpec fragmentSpecToRender,
Map<String,?> model,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
void |
setFragmentSpec(org.thymeleaf.fragment.IFragmentSpec fragmentSpec)
Sets the fragment specification ( IFragmentSpec ) defining the part
of the template that should be processed. |
Methods inherited from class org.thymeleaf.spring4.view.AbstractThymeleafView |
---|
addRequestContextAsVariable, addStaticVariable, getBeanName, getCharacterEncoding, getContentType, getLocale, getStaticVariables, getTemplateEngine, getTemplateName, isContentTypeSet, setBeanName, setCharacterEncoding, setContentType, setLocale, setStaticVariables, setTemplateEngine, setTemplateName |
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, toString, wait, wait, wait |
Constructor Detail |
---|
protected ThymeleafView()
Creates a new instance of ThymeleafView.
protected ThymeleafView(String templateName)
Creates a new instance of ThymeleafView, specifying the template name.
templateName
- the template name.Method Detail |
---|
public org.thymeleaf.fragment.IFragmentSpec getFragmentSpec()
Returns the fragment specification (IFragmentSpec
) defining the part
of the template that should be processed.
This fragment spec will be used for selecting the section of the template that should be processed, discarding the rest of the template. If null, the whole template will be processed.
Subclasses of ThymeleafView
might choose not to honor this parameter,
disallowing the processing of template fragments.
public void setFragmentSpec(org.thymeleaf.fragment.IFragmentSpec fragmentSpec)
Sets the fragment specification (IFragmentSpec
) defining the part
of the template that should be processed.
This fragment spec will be used for selecting the section of the template that should be processed, discarding the rest of the template. If null, the whole template will be processed.
Subclasses of ThymeleafView
might choose not to honor this parameter,
disallowing the processing of template fragments.
fragmentSpec
- the fragment specification to be set.public void render(Map<String,?> model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
protected void renderFragment(org.thymeleaf.fragment.IFragmentSpec fragmentSpecToRender, Map<String,?> model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |