Interface PluginViewResolver
- All Superinterfaces:
org.springframework.web.servlet.ViewResolver
public interface PluginViewResolver
extends org.springframework.web.servlet.ViewResolver
Plugin request aware version of
ViewResolver
Have additional method that accept Plugin
in which context request is executed.-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.web.servlet.View
resolveViewName
(String viewName, Locale locale, Plugin plugin) Resolve the given view by name.Methods inherited from interface org.springframework.web.servlet.ViewResolver
resolveViewName
-
Method Details
-
resolveViewName
@Nullable org.springframework.web.servlet.View resolveViewName(String viewName, Locale locale, Plugin plugin) throws Exception Resolve the given view by name. SeeViewResolver.resolveViewName(String, Locale)
for more info.- Parameters:
viewName
- name of the view to resolvelocale
- the Locale in which to resolve the view. ViewResolvers that support internationalization should respect this.plugin
- plugin in which context request is executed- Returns:
- the View object, or
null
if not found (optional, to allow for ViewResolver chaining) - Throws:
Exception
- if the view cannot be resolved (typically in case of problems creating an actual View object)
-