public class BroadleafThymeleafViewResolver
extends org.thymeleaf.spring4.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.
|
static String |
EXTENSION_TEMPLATE_ATTR_NAME |
protected BroadleafThymeleafViewResolverExtensionManager |
extensionManager |
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) |
org.springframework.web.servlet.View |
resolveViewName(String viewName,
Locale locale) |
void |
setFullPageLayout(String fullPageLayout) |
void |
setIframeLayout(String iframeLayout) |
void |
setLayoutMap(Map<String,String> layoutMap) |
protected boolean |
useThymeleafLayoutDialect() |
addStaticVariable, canHandle, getCharacterEncoding, getContentType, getExcludedViewNames, getOrder, getStaticVariables, getTemplateEngine, getViewClass, getViewNames, isRedirectContextRelative, isRedirectHttp10Compatible, setCharacterEncoding, setContentType, setExcludedViewNames, setOrder, setRedirectContextRelative, setRedirectHttp10Compatible, setStaticVariables, setTemplateEngine, setViewClass, setViewNamesclearCache, getCacheLimit, isCache, isCacheUnresolved, removeFromCache, setCache, setCacheLimit, setCacheUnresolvedgetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextprotected BroadleafThymeleafViewResolverExtensionManager extensionManager
public static final String EXTENSION_TEMPLATE_ATTR_NAME
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 useThymeleafLayoutDialect()
protected boolean canHandle(String viewName)
public org.springframework.web.servlet.View resolveViewName(String viewName, Locale locale) throws Exception
resolveViewName in interface org.springframework.web.servlet.ViewResolverresolveViewName in class org.springframework.web.servlet.view.AbstractCachingViewResolverExceptionprotected org.springframework.web.servlet.View createView(String viewName, Locale locale) throws Exception
createView in class org.thymeleaf.spring4.view.ThymeleafViewResolverExceptionprotected org.springframework.web.servlet.View loadAjaxRedirectView(String redirectUrl, Locale locale) throws Exception
redirectUrl - locale - Exceptionprotected org.springframework.web.servlet.View loadView(String originalViewName, Locale locale) throws Exception
loadView in class org.thymeleaf.spring4.view.ThymeleafViewResolverExceptionprotected Object getCacheKey(String viewName, Locale locale)
getCacheKey in class org.springframework.web.servlet.view.AbstractCachingViewResolverprotected 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 © 2017. All rights reserved.