spring-framework / org.springframework.web.reactive.config / UrlBasedViewResolverRegistration

UrlBasedViewResolverRegistration

open class UrlBasedViewResolverRegistration

Assist with configuring properties of a UrlBasedViewResolver.

Author
Rossen Stoyanchev

Since
5.0

Constructors

<init>

UrlBasedViewResolverRegistration(viewResolver: UrlBasedViewResolver)

Functions

prefix

open fun prefix(prefix: String): UrlBasedViewResolverRegistration

Set the prefix that gets prepended to view names when building a URL.

suffix

open fun suffix(suffix: String): UrlBasedViewResolverRegistration

Set the suffix that gets appended to view names when building a URL.

viewClass

open fun viewClass(viewClass: Class<*>): UrlBasedViewResolverRegistration

Set the view class that should be used to create views.

viewNames

open fun viewNames(vararg viewNames: String): UrlBasedViewResolverRegistration

Set the view names (or name patterns) that can be handled by this view resolver. View names can contain simple wildcards such that 'my*', '*Report' and '*Repo*' will all match the view name 'myReport'.