Class AjaxThymeleafViewResolver
Object
org.springframework.context.support.ApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
org.springframework.web.servlet.view.AbstractCachingViewResolver
org.thymeleaf.spring5.view.ThymeleafViewResolver
org.thymeleaf.spring5.webflow.view.AjaxThymeleafViewResolver
- All Implemented Interfaces:
- org.springframework.beans.factory.Aware,- org.springframework.context.ApplicationContextAware,- org.springframework.core.Ordered,- org.springframework.web.context.ServletContextAware,- org.springframework.web.servlet.ViewResolver
   Subclass of ThymeleafViewResolver adding compatibility with AJAX-based events
   (redirects) in Spring WebFlow.
 
   Important: Spring WebFlow dependencies are OPTIONAL. If you are not using WebFlow
   in your application, then you should be using ThymeleafViewResolver directly.
 
- Since:
- 3.0.3
- Author:
- Daniel Fernández
- 
Nested Class SummaryNested classes/interfaces inherited from class org.springframework.web.servlet.view.AbstractCachingViewResolverorg.springframework.web.servlet.view.AbstractCachingViewResolver.CacheFilter
- 
Field SummaryFields inherited from class org.thymeleaf.spring5.view.ThymeleafViewResolverFORWARD_URL_PREFIX, REDIRECT_URL_PREFIXFields inherited from class org.springframework.web.servlet.view.AbstractCachingViewResolverDEFAULT_CACHE_LIMITFields inherited from class org.springframework.context.support.ApplicationObjectSupportloggerFields inherited from interface org.springframework.core.OrderedHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected org.springframework.web.servlet.ViewcreateView(String viewName, Locale locale) org.springframework.webflow.context.servlet.AjaxHandlerReturn the AJAX handler (from Spring Javascript) used to determine whether a request is an AJAX request or not in views resolved by this resolver.voidsetAjaxHandler(org.springframework.webflow.context.servlet.AjaxHandler ajaxHandler) Sets the AJAX handler (from Spring Javascript) used to determine whether a request is an AJAX request or not in views resolved by this resolver.Methods inherited from class org.thymeleaf.spring5.view.ThymeleafViewResolveraddStaticVariable, canHandle, getAlwaysProcessRedirectAndForward, getCharacterEncoding, getContentType, getExcludedViewNames, getForceContentType, getOrder, getProducePartialOutputWhileProcessing, getStaticVariables, getTemplateEngine, getViewClass, getViewNames, isRedirectContextRelative, isRedirectHttp10Compatible, loadView, setAlwaysProcessRedirectAndForward, setCharacterEncoding, setContentType, setExcludedViewNames, setForceContentType, setOrder, setProducePartialOutputWhileProcessing, setRedirectContextRelative, setRedirectHttp10Compatible, setStaticVariables, setTemplateEngine, setViewClass, setViewNamesMethods inherited from class org.springframework.web.servlet.view.AbstractCachingViewResolverclearCache, getCacheFilter, getCacheKey, getCacheLimit, isCache, isCacheUnresolved, removeFromCache, resolveViewName, setCache, setCacheFilter, setCacheLimit, setCacheUnresolvedMethods inherited from class org.springframework.web.context.support.WebApplicationObjectSupportgetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextMethods inherited from class org.springframework.context.support.ApplicationObjectSupportgetApplicationContext, getMessageSourceAccessor, initApplicationContext, obtainApplicationContext, requiredContextClass, setApplicationContext
- 
Constructor Details- 
AjaxThymeleafViewResolverpublic AjaxThymeleafViewResolver()
 
- 
- 
Method Details- 
getAjaxHandlerpublic org.springframework.webflow.context.servlet.AjaxHandler getAjaxHandler()Return the AJAX handler (from Spring Javascript) used to determine whether a request is an AJAX request or not in views resolved by this resolver. An instance of DefaultAjaxHandleris set by default.- Returns:
- the AJAX handler.
 
- 
setAjaxHandlerpublic void setAjaxHandler(org.springframework.webflow.context.servlet.AjaxHandler ajaxHandler) Sets the AJAX handler (from Spring Javascript) used to determine whether a request is an AJAX request or not in views resolved by this resolver. An instance of DefaultAjaxHandleris set by default.- Parameters:
- ajaxHandler- the AJAX handler.
 
- 
createViewprotected org.springframework.web.servlet.View createView(String viewName, Locale locale) throws Exception - Overrides:
- createViewin class- ThymeleafViewResolver
- Throws:
- Exception
 
 
-