public class UrlBasedViewResolverRegistration extends Object
UrlBasedViewResolver
.Constructor and Description |
---|
UrlBasedViewResolverRegistration(UrlBasedViewResolver viewResolver) |
Modifier and Type | Method and Description |
---|---|
protected UrlBasedViewResolver |
getViewResolver() |
UrlBasedViewResolverRegistration |
prefix(String prefix)
Set the prefix that gets prepended to view names when building a URL.
|
UrlBasedViewResolverRegistration |
suffix(String suffix)
Set the suffix that gets appended to view names when building a URL.
|
UrlBasedViewResolverRegistration |
viewClass(Class<?> viewClass)
Set the view class that should be used to create views.
|
UrlBasedViewResolverRegistration |
viewNames(String... viewNames)
Set the view names (or name patterns) that can be handled by this view
resolver.
|
public UrlBasedViewResolverRegistration(UrlBasedViewResolver viewResolver)
public UrlBasedViewResolverRegistration prefix(String prefix)
public UrlBasedViewResolverRegistration suffix(String suffix)
public UrlBasedViewResolverRegistration viewClass(Class<?> viewClass)
public UrlBasedViewResolverRegistration viewNames(String... viewNames)
protected UrlBasedViewResolver getViewResolver()