Top Description Fields Constructors Methods
org.springframework.web.reactive.result.view.freemarker

public Class FreeMarkerViewResolver

extends UrlBasedViewResolver
Class Inheritance
Imports
org.springframework.web.reactive.result.view.AbstractUrlBasedView, .UrlBasedViewResolver

A 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.

Author
Rossen Stoyanchev
Since
5.0

Field Summary

Inherited from org.springframework.web.reactive.result.view.UrlBasedViewResolver:
REDIRECT_URL_PREFIX

Constructor Summary

AccessConstructor and Description
public
FreeMarkerViewResolver()

Simple constructor.

public
FreeMarkerViewResolver(String
the prefix to prepend view names with
prefix
,
String
the suffix to prepend view names with
suffix
)

Convenience constructor with a prefix and suffix.

Method Summary

Modifier and TypeMethod and Description
protected AbstractUrlBasedView
protected Class<?>
Inherited from org.springframework.web.reactive.result.view.UrlBasedViewResolver:
afterPropertiesSetapplyLifecycleMethodscanHandlecreateViewgetApplicationContextgetPrefixgetRequestContextAttributegetSuffixgetViewClassgetViewNamesresolveViewNamesetApplicationContextsetPrefixsetRedirectViewProvidersetRequestContextAttributesetSuffixsetViewClasssetViewNames

Constructor Detail

FreeMarkerViewResolverback to summary
public FreeMarkerViewResolver()

Simple constructor.

FreeMarkerViewResolverback to summary
public FreeMarkerViewResolver(String prefix, String suffix)

Convenience constructor with a prefix and suffix.

Parameters
prefix:String

the prefix to prepend view names with

suffix:String

the suffix to prepend view names with

Method Detail

instantiateViewback to summary
protected AbstractUrlBasedView instantiateView()

Overrides org.springframework.web.reactive.result.view.UrlBasedViewResolver.instantiateView.

Doc from org.springframework.web.reactive.result.view.UrlBasedViewResolver.instantiateView.

Instantiate the specified view class.

The default implementation uses reflection to instantiate the class.

Returns:AbstractUrlBasedView

a new instance of the view class

Annotations
@Override
requiredViewClassback to summary
protected Class<?> requiredViewClass()

Overrides org.springframework.web.reactive.result.view.UrlBasedViewResolver.requiredViewClass.

Requires FreeMarkerView.

Annotations
@Override