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:
-
JstlViewInternalResourceView
-
Constructor Summary
Constructors -
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.ViewresolveView(String viewId, RequestContext context) Resolve the Spring MVC view with the provided id.voidsetDefaultViewSuffix(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 aFlowResourceFlowViewResolveris configured.- Parameters:
defaultViewSuffix- the default view suffix
-
resolveView
Description copied from interface:FlowViewResolverResolve the Spring MVC view with the provided id.- Specified by:
resolveViewin 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:FlowViewResolverGet the default id of the view to render in the provided view state by convention.- Specified by:
getViewIdByConventionin interfaceFlowViewResolver- Parameters:
viewStateId- the view state id- Returns:
- the default view id
-