Class FlowResourceFlowViewResolver

java.lang.Object
org.springframework.webflow.mvc.builder.FlowResourceFlowViewResolver
All Implemented Interfaces:
FlowViewResolver

public class FlowResourceFlowViewResolver extends Object implements 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 Details

    • FlowResourceFlowViewResolver

      public FlowResourceFlowViewResolver()
  • Method Details

    • getDefaultViewSuffix

      public String getDefaultViewSuffix()
      Returns the default view suffix when selecting views by convention. Default is .jsp.
      Returns:
      the default view suffix
    • setDefaultViewSuffix

      public void setDefaultViewSuffix(String defaultViewSuffix)
      Sets the default suffix for view templates when selecting views by convention. Default is .jsp. Respected when a FlowResourceFlowViewResolver is configured.
      Parameters:
      defaultViewSuffix - the default view suffix
    • resolveView

      public org.springframework.web.servlet.View resolveView(String viewId, RequestContext context)
      Description copied from interface: FlowViewResolver
      Resolve the Spring MVC view with the provided id.
      Specified by:
      resolveView in interface FlowViewResolver
      Parameters:
      viewId - the view id, typically treated as a Spring MVC view name
      context - the current flow request
      Returns:
      the resolved Spring MVC view
    • getViewIdByConvention

      public String getViewIdByConvention(String viewStateId)
      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 interface FlowViewResolver
      Parameters:
      viewStateId - the view state id
      Returns:
      the default view id