org.springframework.webflow.execution.support
Class FlowDefinitionRedirect

java.lang.Object
  extended by org.springframework.webflow.execution.ViewSelection
      extended by org.springframework.webflow.execution.support.FlowDefinitionRedirect
All Implemented Interfaces:
java.io.Serializable

public final class FlowDefinitionRedirect
extends ViewSelection

Concrete response type that requests that a new execution of a flow definition (representing the start of a new conversation) be launched.

This allows "redirect to new flow" semantics; useful for restarting a flow after completion, or starting an entirely new flow from within the end state of another flow definition.

Author:
Keith Donald, Erwin Vervaet
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.springframework.webflow.execution.ViewSelection
NULL_VIEW
 
Constructor Summary
FlowDefinitionRedirect(java.lang.String flowDefinitionId, java.util.Map executionInput)
          Creates a new flow definition redirect.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.util.Map getExecutionInput()
          Return the flow execution input map as an unmodifiable map.
 java.lang.String getFlowDefinitionId()
          Return the id of the flow definition to launch a new execution of.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FlowDefinitionRedirect

public FlowDefinitionRedirect(java.lang.String flowDefinitionId,
                              java.util.Map executionInput)
Creates a new flow definition redirect.

Parameters:
flowDefinitionId - the id of the flow definition to launch
executionInput - the input data to pass to the new flow execution on launch
Method Detail

getFlowDefinitionId

public java.lang.String getFlowDefinitionId()
Return the id of the flow definition to launch a new execution of.


getExecutionInput

public java.util.Map getExecutionInput()
Return the flow execution input map as an unmodifiable map. Never returns null.


equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2009 Spring Framework. All Rights Reserved.