AbstractTemplateView subclass based on Groovy XML/XHTML markup templates.
Spring's Groovy Markup Template support requires Groovy 2.3.1 and higher.
GroovyMarkupViewResolver, GroovyMarkupConfigurer, Groovy Markup Template engine documentation
| Modifier and Type | Field and Description |
|---|---|
| private MarkupTemplateEngine |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected MarkupTemplateEngine | |
| public boolean | checkResource(Locale
the desired Locale that we're looking for locale)Overrides org. Check whether the underlying resource that the configured URL points to actually exists. |
| protected Template | getTemplate(String viewUrl)
Return a template compiled by the configured Groovy Markup template engine for the given view URL. |
| protected void | initApplicationContext(ApplicationContext
the containing ApplicationContext context)Overrides org. Invoked at startup. |
| protected void | renderMergedTemplateModel(Map<String, Object>
combined output Map, with request attributes and
session attributes merged into it if required model, HttpServletRequest current HTTP request request, HttpServletResponse current HTTP response response)Implements abstract org. Subclasses must implement this method to actually render the view. |
| public void |
| engine | back to summary |
|---|---|
| private MarkupTemplateEngine engine
| |
| GroovyMarkupView | back to summary |
|---|---|
| public GroovyMarkupView() | |
| autodetectMarkupTemplateEngine | back to summary |
|---|---|
| protected MarkupTemplateEngine autodetectMarkupTemplateEngine() throws BeansException Autodetect a MarkupTemplateEngine via the ApplicationContext. Called if a MarkupTemplateEngine has not been manually configured. | |
| checkResource | back to summary |
|---|---|
| public boolean checkResource(Locale locale) throws Exception Overrides org. Doc from org. Check whether the underlying resource that the configured URL points to actually exists. | |
| getTemplate | back to summary |
|---|---|
| protected Template getTemplate(String viewUrl) throws Exception Return a template compiled by the configured Groovy Markup template engine for the given view URL. | |
| initApplicationContext | back to summary |
|---|---|
| protected void initApplicationContext(ApplicationContext context) Overrides org. Invoked at startup.
If no
| |
| renderMergedTemplateModel | back to summary |
|---|---|
| protected void renderMergedTemplateModel(Map<String, Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception Implements abstract org. Doc from org. Subclasses must implement this method to actually render the view.
| |
| setTemplateEngine | back to summary |
|---|---|
| public void setTemplateEngine(MarkupTemplateEngine engine) Set the MarkupTemplateEngine to use in this view. If not set, the engine is auto-detected by looking up a single
| |