Spring Web Flow

org.springframework.webflow.mvc.builder
Class FlowResourceFlowViewResolver

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

public class FlowResourceFlowViewResolver
extends java.lang.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 Summary
FlowResourceFlowViewResolver()
           
 
Method Summary
 java.lang.String getDefaultViewSuffix()
          Returns the default view suffix when selecting views by convention.
 java.lang.String getViewIdByConvention(java.lang.String viewStateId)
          Get the default id of the view to render in the provided view state by convention.
 org.springframework.web.servlet.View resolveView(java.lang.String viewId, RequestContext context)
          Resolve the Spring MVC view with the provided id.
 void setDefaultViewSuffix(java.lang.String defaultViewSuffix)
          Sets the default suffix for view templates when selecting views by convention.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlowResourceFlowViewResolver

public FlowResourceFlowViewResolver()
Method Detail

getDefaultViewSuffix

public java.lang.String getDefaultViewSuffix()
Returns the default view suffix when selecting views by convention. Default is .jsp.

Returns:
the default view suffix

setDefaultViewSuffix

public void setDefaultViewSuffix(java.lang.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(java.lang.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 java.lang.String getViewIdByConvention(java.lang.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

Spring Web Flow