Top Description Methods
org.springframework.web.reactive.result.view

public Interface ViewResolver

Known Direct Implementers
org.springframework.web.reactive.result.view.UrlBasedViewResolver
Imports
java.util.Locale, reactor.core.publisher.Mono

Contract to resolve a view name to a View instance. The view name may correspond to an HTML template or be generated dynamically.

The process of view resolution is driven through a ViewResolver-based HandlerResultHandler implementation called ViewResolutionResultHandler.

Author
Rossen Stoyanchev
Since
5.0
See Also
ViewResolutionResultHandler

Method Summary

Modifier and TypeMethod and Description
public Mono<View>

Returns:

the resolved view or an empty stream
resolveViewName
(String
the name of the view to resolve
viewName
,
Locale
the locale for the request
locale
)

Resolve the view name to a View instance.

Method Detail

resolveViewNameback to summary
public Mono<View> resolveViewName(String viewName, Locale locale)

Resolve the view name to a View instance.

Parameters
viewName:String

the name of the view to resolve

locale:Locale

the locale for the request

Returns:Mono<View>

the resolved view or an empty stream