|Constructor and Description
|Modifier and Type
|Method and Description
Resolve the given view by name.
private final View view
public StandaloneMockMvcBuilder.StaticViewResolver(View view)
public View resolveViewName(java.lang.String viewName, java.util.Locale locale) throws java.lang.Exception
Note: To allow for ViewResolver chaining, a ViewResolver should
null if a view with the given name is not defined in it.
However, this is not required: Some ViewResolvers will always attempt
to build View objects with the given name, unable to return
(rather throwing an exception when View creation failed).
resolveViewName in interface
viewName - name of the view to resolve
locale - Locale in which to resolve the view.
ViewResolvers that support internationalization should respect this.
null if not found
(optional, to allow for ViewResolver chaining)
java.lang.Exception - if the view cannot be resolved
(typically in case of problems creating an actual View object)