|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.webflow.test.MockFlowSession
public class MockFlowSession
Mock implementation of the FlowSession
interface.
FlowSession
Constructor Summary | |
---|---|
MockFlowSession()
Creates a new mock flow session that sets a flow with id "mockFlow" as the 'active flow' in state "mockState". |
|
MockFlowSession(Flow flow)
Creates a new mock session in a created state for the specified flow definition. |
|
MockFlowSession(Flow flow,
AttributeMap input)
Creates a new mock session in FlowSessionStatus.CREATED state for the specified flow definition. |
Method Summary | |
---|---|
FlowDefinition |
getDefinition()
Returns the flow definition backing this session. |
Flow |
getDefinitionInternal()
Returns the flow definition of this session. |
MutableAttributeMap |
getFlashMap()
Returns the local "flash map". |
FlowSession |
getParent()
Returns the parent flow session in the current flow execution, or null if there is no parent flow
session. |
MutableAttributeMap |
getScope()
Return this session's local attributes; the basis for "flow scope" (flow session scope). |
StateDefinition |
getState()
Returns the current state of this flow session. |
State |
getStateInternal()
Returns the current state of this session. |
FlowSessionStatus |
getStatus()
Returns the current status of this flow session. |
boolean |
isRoot()
Returns whether this flow session is the root flow session in the ongoing flow execution. |
void |
setDefinition(Flow flow)
Set the flow associated with this flow session. |
void |
setParent(FlowSession parent)
Set the parent flow session of this flow session in the ongoing flow execution. |
void |
setScope(MutableAttributeMap scope)
Set the scope data maintained by this flow session. |
void |
setState(State state)
Set the currently active state. |
void |
setStatus(FlowSessionStatus status)
Set the status of this flow session. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MockFlowSession()
public MockFlowSession(Flow flow)
public MockFlowSession(Flow flow, AttributeMap input)
FlowSessionStatus.CREATED
state for the specified flow definition.
flow
- the flow definition for the sessioninput
- initial contents of 'flow scope'Method Detail |
---|
public FlowDefinition getDefinition()
FlowSession
getDefinition
in interface FlowSession
public StateDefinition getState()
FlowSession
getState
in interface FlowSession
public FlowSessionStatus getStatus()
FlowSession
getStatus
in interface FlowSession
public MutableAttributeMap getScope()
FlowSession
getScope
in interface FlowSession
public MutableAttributeMap getFlashMap()
FlowSession
getFlashMap
in interface FlowSession
public FlowSession getParent()
FlowSession
null
if there is no parent flow
session.
getParent
in interface FlowSession
public boolean isRoot()
FlowSession
isRoot
in interface FlowSession
public void setDefinition(Flow flow)
public void setState(State state)
public void setStatus(FlowSessionStatus status)
public void setScope(MutableAttributeMap scope)
public void setParent(FlowSession parent)
public Flow getDefinitionInternal()
public State getStateInternal()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |