public class ScriptTemplateViewResolver extends UrlBasedViewResolver
UrlBasedViewResolver
that supports
ScriptTemplateView
and custom subclasses of it.
The view class for all views created by this resolver can be specified
via the UrlBasedViewResolver.setViewClass(Class)
property.
Note: When chaining ViewResolvers this resolver will check for the existence of the specified template resources and only return a non-null View object if a template is actually found.
ScriptTemplateConfigurer
REDIRECT_URL_PREFIX
DEFAULT_CONTENT_TYPE
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
ScriptTemplateViewResolver()
|
ScriptTemplateViewResolver(String prefix,
String suffix)
|
Modifier and Type | Method and Description |
---|---|
protected AbstractUrlBasedView |
instantiateView()
Instantiate the specified view class.
|
protected Class<?> |
requiredViewClass()
Return the required type of view for this resolver.
|
afterPropertiesSet, applyLifecycleMethods, canHandle, createView, getApplicationContext, getPrefix, getRequestContextAttribute, getSuffix, getViewClass, getViewNames, resolveViewName, setApplicationContext, setPrefix, setRedirectViewProvider, setRequestContextAttribute, setSuffix, setViewClass, setViewNames
getDefaultCharset, getOrder, getSupportedMediaTypes, setDefaultCharset, setOrder, setSupportedMediaTypes
protected Class<?> requiredViewClass()
UrlBasedViewResolver
AbstractUrlBasedView
.requiredViewClass
in class UrlBasedViewResolver
UrlBasedViewResolver.instantiateView()
,
AbstractUrlBasedView
protected AbstractUrlBasedView instantiateView()
UrlBasedViewResolver
The default implementation uses reflection to instantiate the class.
instantiateView
in class UrlBasedViewResolver
UrlBasedViewResolver.setViewClass(java.lang.Class<?>)