Package org.thymeleaf.spring3.view
Class AjaxThymeleafViewResolver
- Object
-
- org.springframework.context.support.ApplicationObjectSupport
-
- org.springframework.web.context.support.WebApplicationObjectSupport
-
- org.springframework.web.servlet.view.AbstractCachingViewResolver
-
- org.thymeleaf.spring3.view.ThymeleafViewResolver
-
- org.thymeleaf.spring3.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
@Deprecated public class AjaxThymeleafViewResolver extends ThymeleafViewResolver
Deprecated.Deprecated in 3.0.0. Moved to theorg.thymeleaf.spring3.webflow.viewpackage. Will be removed from this package in Thymeleaf 3.1.Subclass of
ThymeleafViewResolveradding 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
ThymeleafViewResolverdirectly.- Since:
- 2.0.11
- Author:
- Daniel Fernández
-
-
Field Summary
-
Fields inherited from class org.thymeleaf.spring3.view.ThymeleafViewResolver
FORWARD_URL_PREFIX, REDIRECT_URL_PREFIX
-
-
Constructor Summary
Constructors Constructor Description AjaxThymeleafViewResolver()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected org.springframework.web.servlet.ViewcreateView(String viewName, Locale locale)Deprecated.org.springframework.js.ajax.AjaxHandlergetAjaxHandler()Deprecated.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.voidsetAjaxHandler(org.springframework.js.ajax.AjaxHandler ajaxHandler)Deprecated.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.spring3.view.ThymeleafViewResolver
addStaticVariable, 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, setViewNames
-
Methods inherited from class org.springframework.web.servlet.view.AbstractCachingViewResolver
clearCache, getCacheKey, isCache, isCacheUnresolved, removeFromCache, resolveViewName, setCache, setCacheUnresolved
-
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
-
-
-
-
Method Detail
-
getAjaxHandler
public org.springframework.js.ajax.AjaxHandler getAjaxHandler()
Deprecated.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
SpringJavascriptAjaxHandleris set by default.- Returns:
- the AJAX handler.
-
setAjaxHandler
public void setAjaxHandler(org.springframework.js.ajax.AjaxHandler ajaxHandler)
Deprecated.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
SpringJavascriptAjaxHandleris set by default.- Parameters:
ajaxHandler- the AJAX handler.
-
createView
protected org.springframework.web.servlet.View createView(String viewName, Locale locale) throws Exception
Deprecated.- Overrides:
createViewin classThymeleafViewResolver- Throws:
Exception
-
-