|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.webflow.executor.ResponseInstruction
public class ResponseInstruction
Immutable value object that provides clients with information about a response to issue.
There are five different types of response instruction:
application view
.flow execution redirect
, showing an application view via a redirect that
refreshes an ongoing flow execution.flow definition redirect
, launching an entirely new flow execution.external redirect
, redirecting to an external URL.null view
, not showing a response at all.
Constructor Summary | |
---|---|
ResponseInstruction(FlowExecutionContext flowExecutionContext,
ViewSelection viewSelection)
Create a new response instruction for an ended flow execution. |
|
ResponseInstruction(java.lang.String flowExecutionKey,
FlowExecutionContext flowExecutionContext,
ViewSelection viewSelection)
Create a new response instruction for a paused flow execution. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
FlowExecutionContext |
getFlowExecutionContext()
Returns the flow execution context representing the current state of the execution. |
java.lang.String |
getFlowExecutionKey()
Returns the persistent identifier of the flow execution. |
ViewSelection |
getViewSelection()
Returns the view selection selected by the flow execution. |
int |
hashCode()
|
boolean |
isActiveView()
Returns true if this is an instruction to render an application view for an "active" (in progress) flow execution. |
boolean |
isApplicationView()
Returns true if this is an "application view" (forward) response instruction. |
boolean |
isEndingView()
Returns true if this is an instruction to render an application view for an "ended" (inactive) flow execution from an end state. |
boolean |
isExternalRedirect()
Returns true if this an instruction to perform a redirect to an external URL. |
boolean |
isFlowDefinitionRedirect()
Returns true if this is an instruction to launch an entirely new (independent) flow execution. |
boolean |
isFlowExecutionRedirect()
Returns true if this is an instruction to perform a redirect to the current flow execution to render an application view. |
boolean |
isNull()
Returns true if this is a "null" response instruction, e.g. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ResponseInstruction(java.lang.String flowExecutionKey, FlowExecutionContext flowExecutionContext, ViewSelection viewSelection)
flowExecutionKey
- the persistent identifier of the flow executionflowExecutionContext
- the current flow execution contextviewSelection
- the selected viewpublic ResponseInstruction(FlowExecutionContext flowExecutionContext, ViewSelection viewSelection)
flowExecutionContext
- the current flow execution context (inactive)viewSelection
- the selected viewMethod Detail |
---|
public java.lang.String getFlowExecutionKey()
public FlowExecutionContext getFlowExecutionContext()
inactive
.
public ViewSelection getViewSelection()
public boolean isActiveView()
public boolean isEndingView()
public boolean isApplicationView()
public boolean isFlowExecutionRedirect()
public boolean isFlowDefinitionRedirect()
public boolean isExternalRedirect()
public boolean isNull()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |