public class BroadleafThymeleafViewResolver
extends org.thymeleaf.spring4.view.ThymeleafViewResolver
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AJAX_REDIRECT_URL_PREFIX
Prefix to be used in view names (returned by controllers) for specifying an
HTTP redirect with AJAX support.
|
protected java.lang.String |
fullPageLayout |
protected java.lang.String |
iframeLayout |
protected java.util.Map<java.lang.String,java.lang.String> |
layoutMap |
FORWARD_URL_PREFIX, REDIRECT_URL_PREFIX| Constructor and Description |
|---|
BroadleafThymeleafViewResolver() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canHandle(java.lang.String viewName) |
protected org.springframework.web.servlet.View |
createView(java.lang.String viewName,
java.util.Locale locale)
Determines which internal method to call for creating the appropriate view.
|
java.lang.String |
getFullPageLayout()
The default layout to use if there is no specifc entry in the layout map
|
java.lang.String |
getIframeLayout()
The layout to use for iframe requests
|
java.util.Map<java.lang.String,java.lang.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(java.lang.String redirectUrl,
java.util.Locale locale)
Performs a Broadleaf AJAX redirect.
|
protected org.springframework.web.servlet.View |
loadView(java.lang.String originalViewName,
java.util.Locale locale) |
void |
setFullPageLayout(java.lang.String fullPageLayout) |
void |
setIframeLayout(java.lang.String iframeLayout) |
void |
setLayoutMap(java.util.Map<java.lang.String,java.lang.String> layoutMap) |
addStaticVariable, canHandle, getCharacterEncoding, getContentType, getExcludedViewNames, getOrder, getStaticVariables, getTemplateEngine, getViewClass, getViewNames, isRedirectContextRelative, isRedirectHttp10Compatible, setCharacterEncoding, setContentType, setExcludedViewNames, setOrder, setRedirectContextRelative, setRedirectHttp10Compatible, setStaticVariables, setTemplateEngine, setViewClass, setViewNamesclearCache, getCacheKey, getCacheLimit, isCache, isCacheUnresolved, removeFromCache, resolveViewName, setCache, setCacheLimit, setCacheUnresolvedgetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextpublic static final java.lang.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 java.util.Map<java.lang.String,java.lang.String> layoutMap
protected java.lang.String fullPageLayout
protected java.lang.String iframeLayout
protected boolean canHandle(java.lang.String viewName)
protected org.springframework.web.servlet.View createView(java.lang.String viewName,
java.util.Locale locale)
throws java.lang.Exception
createView in class org.thymeleaf.spring4.view.ThymeleafViewResolverjava.lang.Exceptionprotected org.springframework.web.servlet.View loadAjaxRedirectView(java.lang.String redirectUrl,
java.util.Locale locale)
throws java.lang.Exception
redirectUrl - locale - java.lang.Exceptionprotected org.springframework.web.servlet.View loadView(java.lang.String originalViewName,
java.util.Locale locale)
throws java.lang.Exception
loadView in class org.thymeleaf.spring4.view.ThymeleafViewResolverjava.lang.Exceptionprotected boolean isIFrameRequest()
protected boolean isAjaxRequest()
public java.util.Map<java.lang.String,java.lang.String> getLayoutMap()
public void setLayoutMap(java.util.Map<java.lang.String,java.lang.String> layoutMap)
layoutMap - getLayoutMap()public java.lang.String getFullPageLayout()
public void setFullPageLayout(java.lang.String fullPageLayout)
fullPageLayout - getFullPageLayout()public java.lang.String getIframeLayout()
public void setIframeLayout(java.lang.String iframeLayout)
iframeLayout - getIframeLayout()Copyright © 2018. All Rights Reserved.