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