Class FlowResourceFlowViewResolver
java.lang.Object
org.springframework.webflow.mvc.builder.FlowResourceFlowViewResolver
- All Implemented Interfaces:
FlowViewResolver
Creates Spring-MVC Internal Resource view to render a flow-relative view resource such as a JSP template.
- Author:
- Keith Donald
- See Also:
-
JstlView
InternalResourceView
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the default view suffix when selecting views by convention.getViewIdByConvention
(String viewStateId) Get the default id of the view to render in the provided view state by convention.org.springframework.web.servlet.View
resolveView
(String viewId, RequestContext context) Resolve the Spring MVC view with the provided id.void
setDefaultViewSuffix
(String defaultViewSuffix) Sets the default suffix for view templates when selecting views by convention.
-
Constructor Details
-
FlowResourceFlowViewResolver
public FlowResourceFlowViewResolver()
-
-
Method Details
-
getDefaultViewSuffix
Returns the default view suffix when selecting views by convention. Default is .jsp.- Returns:
- the default view suffix
-
setDefaultViewSuffix
Sets the default suffix for view templates when selecting views by convention. Default is .jsp. Respected when aFlowResourceFlowViewResolver
is configured.- Parameters:
defaultViewSuffix
- the default view suffix
-
resolveView
Description copied from interface:FlowViewResolver
Resolve the Spring MVC view with the provided id.- Specified by:
resolveView
in interfaceFlowViewResolver
- Parameters:
viewId
- the view id, typically treated as a Spring MVC view namecontext
- the current flow request- Returns:
- the resolved Spring MVC view
-
getViewIdByConvention
Description copied from interface:FlowViewResolver
Get the default id of the view to render in the provided view state by convention.- Specified by:
getViewIdByConvention
in interfaceFlowViewResolver
- Parameters:
viewStateId
- the view state id- Returns:
- the default view id
-