|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.webflow.executor.support.FlowRequestHandler
public class FlowRequestHandler
An immutable helper for flow controllers that encapsulates reusable workflow required to launch and resume flow
executions using a FlowExecutor.
The handleFlowRequest(ExternalContext) method is the central helper operation and implements the following
algorithm:
FlowExecutorArgumentExtractor.extractFlowExecutionKey(ExternalContext).
FlowExecutorArgumentExtractor.extractEventId(ExternalContext) method.
If no event can be extracted, the existing execution will be refreshed.
FlowExecutorArgumentExtractor.extractFlowId(ExternalContext). If no valid flow id can be determined, an
exception is thrown.
| Constructor Summary | |
|---|---|
FlowRequestHandler(FlowExecutor flowExecutor)
Creates a new flow controller helper. |
|
FlowRequestHandler(FlowExecutor flowExecutor,
FlowExecutorArgumentExtractor argumentExtractor)
Creates a new flow controller helper. |
|
| Method Summary | |
|---|---|
FlowExecutorArgumentExtractor |
getArgumentExtractor()
Returns the flow executor argument extractor used by this helper. |
FlowExecutor |
getFlowExecutor()
Returns the flow executor used by this helper. |
ResponseInstruction |
handleFlowRequest(ExternalContext context)
Handle a request into the Spring Web Flow system from an external system. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FlowRequestHandler(FlowExecutor flowExecutor)
RequestParameterFlowExecutorArgumentHandler.
flowExecutor - the flow execution manager to delegate to
public FlowRequestHandler(FlowExecutor flowExecutor,
FlowExecutorArgumentExtractor argumentExtractor)
flowExecutor - the flow executor to delegate toargumentExtractor - the flow executor argument extractor to use| Method Detail |
|---|
public FlowExecutor getFlowExecutor()
public FlowExecutorArgumentExtractor getArgumentExtractor()
public ResponseInstruction handleFlowRequest(ExternalContext context)
throws FlowException
context - the external context in which the request occured
FlowException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||