|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.webflow.executor.jsf.FlowNavigationHandlerArgumentExtractor
public class FlowNavigationHandlerArgumentExtractor
An FlowExecutorArgumentExtractor
that is aware of JSF outcomes that communicate requests to launch flow
executions and signal event in existing flow executions. Designed to be used wih a FlowNavigationHandler
.
Note: this class only implements flow id and event id extraction methods. A FlowNavigationHandler is not expected to
extract a flow execution key, as flow execution restoration is fully handled by the FlowPhaseListener
and the
JSF restore view phase.
Constructor Summary | |
---|---|
FlowNavigationHandlerArgumentExtractor()
|
Method Summary | |
---|---|
java.lang.String |
extractEventId(ExternalContext context)
Extract the flow execution event id from the external context. |
java.lang.String |
extractFlowExecutionKey(ExternalContext context)
Extract the flow execution key from the external context. |
java.lang.String |
extractFlowId(ExternalContext context)
Extracts the flow id from the external context. |
java.lang.String |
getFlowIdPrefix()
Returns the configured prefix for outcome strings that indicate a new flow should be launched. |
boolean |
isEventIdPresent(ExternalContext context)
Returns true if the event id is extractable from the context. |
boolean |
isFlowExecutionKeyPresent(ExternalContext context)
Returns true if the flow execution key is extractable from the context. |
boolean |
isFlowIdPresent(ExternalContext context)
Returns true if the flow id is extractable from the context. |
void |
setFlowIdPrefix(java.lang.String flowIdPrefix)
Sets the prefix of an outcome string that indicates a new flow should be launched. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FlowNavigationHandlerArgumentExtractor()
Method Detail |
---|
public java.lang.String getFlowIdPrefix()
public void setFlowIdPrefix(java.lang.String flowIdPrefix)
public boolean isFlowIdPresent(ExternalContext context) throws FlowExecutorArgumentExtractionException
FlowExecutorArgumentExtractor
isFlowIdPresent
in interface FlowExecutorArgumentExtractor
context
- the context in which a external user event occured
FlowExecutorArgumentExtractionException
public java.lang.String extractFlowId(ExternalContext context) throws FlowExecutorArgumentExtractionException
FlowExecutorArgumentExtractor
extractFlowId
in interface FlowExecutorArgumentExtractor
context
- the context in which a external user event occured
FlowExecutorArgumentExtractionException
- if the flow id could not be extractedpublic boolean isEventIdPresent(ExternalContext context)
FlowExecutorArgumentExtractor
isEventIdPresent
in interface FlowExecutorArgumentExtractor
context
- the context in which a external user event occured
public java.lang.String extractEventId(ExternalContext context) throws FlowExecutorArgumentExtractionException
FlowExecutorArgumentExtractor
This method should only be called if a FlowExecutionKey
was successfully extracted, indicating a request
to resume a flow execution.
extractEventId
in interface FlowExecutorArgumentExtractor
context
- the context in which a external user event occured
FlowExecutorArgumentExtractionException
- if the event id could not be extractedpublic boolean isFlowExecutionKeyPresent(ExternalContext context)
FlowExecutorArgumentExtractor
isFlowExecutionKeyPresent
in interface FlowExecutorArgumentExtractor
context
- the context in which a external user event occured
public java.lang.String extractFlowExecutionKey(ExternalContext context) throws FlowExecutorArgumentExtractionException
FlowExecutorArgumentExtractor
extractFlowExecutionKey
in interface FlowExecutorArgumentExtractor
context
- the context in which the external user event occured
FlowExecutorArgumentExtractionException
- if the flow execution key could not be extracted
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |