public class BroadleafThymeleafViewResolver
extends org.thymeleaf.spring3.view.ThymeleafViewResolver
Modifier and Type | Field and Description |
---|---|
static String |
AJAX_REDIRECT_URL_PREFIX
Prefix to be used in view names (returned by controllers) for specifying an
HTTP redirect with AJAX support.
|
protected String |
fullPageLayout |
protected String |
iframeLayout |
protected Map<String,String> |
layoutMap |
FORWARD_URL_PREFIX, REDIRECT_URL_PREFIX
Constructor and Description |
---|
BroadleafThymeleafViewResolver() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canHandle(String viewName) |
protected org.springframework.web.servlet.View |
createView(String viewName,
Locale locale)
Determines which internal method to call for creating the appropriate view.
|
protected Object |
getCacheKey(String viewName,
Locale locale) |
String |
getFullPageLayout()
The default layout to use if there is no specifc entry in the layout map
|
String |
getIframeLayout()
The layout to use for iframe requests
|
Map<String,String> |
getLayoutMap()
Gets the map of prefix : layout for use in determining which layout
to dispatch the request to in non-AJAX calls
|
protected boolean |
isAjaxRequest() |
protected boolean |
isIFrameRequest() |
protected org.springframework.web.servlet.View |
loadAjaxRedirectView(String redirectUrl,
Locale locale)
Performs a Broadleaf AJAX redirect.
|
protected org.springframework.web.servlet.View |
loadView(String originalViewName,
Locale locale) |
void |
setFullPageLayout(String fullPageLayout) |
void |
setIframeLayout(String iframeLayout) |
void |
setLayoutMap(Map<String,String> layoutMap) |
addStaticVariable, canHandle, getCharacterEncoding, getContentType, getExcludedViewNames, getOrder, getStaticVariables, getTemplateEngine, getViewClass, getViewNames, isRedirectContextRelative, isRedirectHttp10Compatible, setCharacterEncoding, setContentType, setExcludedViewNames, setOrder, setRedirectContextRelative, setRedirectHttp10Compatible, setStaticVariables, setTemplateEngine, setViewClass, setViewNames
clearCache, getCacheLimit, isCache, isCacheUnresolved, removeFromCache, resolveViewName, setCache, setCacheLimit, setCacheUnresolved
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
public static final String AJAX_REDIRECT_URL_PREFIX
Prefix to be used in view names (returned by controllers) for specifying an HTTP redirect with AJAX support. That is, if you want a redirect to be followed by the browser as the result of an AJAX call or within an iFrame at the parent window, you can utilize this prefix. Note that this requires a JavaScript component, which is provided as part of BLC.js If the request was not performed in an AJAX / iFrame context, this method will delegate to the normal "redirect:" prefix.
Value: ajaxredirect:
protected String fullPageLayout
protected String iframeLayout
protected boolean canHandle(String viewName)
protected org.springframework.web.servlet.View createView(String viewName, Locale locale) throws Exception
createView
in class org.thymeleaf.spring3.view.ThymeleafViewResolver
Exception
protected org.springframework.web.servlet.View loadAjaxRedirectView(String redirectUrl, Locale locale) throws Exception
redirectUrl
- locale
- Exception
protected org.springframework.web.servlet.View loadView(String originalViewName, Locale locale) throws Exception
loadView
in class org.thymeleaf.spring3.view.ThymeleafViewResolver
Exception
protected Object getCacheKey(String viewName, Locale locale)
getCacheKey
in class org.springframework.web.servlet.view.AbstractCachingViewResolver
protected boolean isIFrameRequest()
protected boolean isAjaxRequest()
public Map<String,String> getLayoutMap()
public void setLayoutMap(Map<String,String> layoutMap)
layoutMap
- getLayoutMap()
public String getFullPageLayout()
public void setFullPageLayout(String fullPageLayout)
fullPageLayout
- getFullPageLayout()
public String getIframeLayout()
public void setIframeLayout(String iframeLayout)
iframeLayout
- getIframeLayout()
Copyright © 2014. All rights reserved.