public class FreeMarkerViewResolver extends UrlBasedViewResolver
ViewResolver
for resolving FreeMarkerView
instances, i.e.
FreeMarker templates and custom subclasses of it.
The view class for all views generated by this resolver can be specified
via the "viewClass" property. See UrlBasedViewResolver
for details.
REDIRECT_URL_PREFIX
DEFAULT_CONTENT_TYPE
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
FreeMarkerViewResolver()
Simple constructor.
|
FreeMarkerViewResolver(String prefix,
String suffix)
Convenience constructor with a prefix and suffix.
|
Modifier and Type | Method and Description |
---|---|
protected AbstractUrlBasedView |
instantiateView()
Instantiate the specified view class.
|
protected Class<?> |
requiredViewClass()
Requires
FreeMarkerView . |
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()
FreeMarkerView
.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<?>)