Class WebFlow1FlowUrlHandler
java.lang.Object
org.springframework.webflow.context.servlet.WebFlow1FlowUrlHandler
- All Implemented Interfaces:
FlowUrlHandler
Flow URL handler that implements the default Web Flow 1.x URL format. Here for backwards compatibility.
- Author:
- Keith Donald
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateFlowDefinitionUrl
(String flowId, AttributeMap<?> input, jakarta.servlet.http.HttpServletRequest request) Create a URL that when addressed will launch a new execution of a flow.createFlowExecutionUrl
(String flowId, String flowExecutionKey, jakarta.servlet.http.HttpServletRequest request) Create a URL that when addressed will resume an existing execution of a flow.getFlowExecutionKey
(jakarta.servlet.http.HttpServletRequest request) Extract the flow execution from the request.getFlowId
(jakarta.servlet.http.HttpServletRequest request) Extract the flow id from the request.
-
Constructor Details
-
WebFlow1FlowUrlHandler
public WebFlow1FlowUrlHandler()
-
-
Method Details
-
getFlowExecutionKey
Description copied from interface:FlowUrlHandler
Extract the flow execution from the request.- Specified by:
getFlowExecutionKey
in interfaceFlowUrlHandler
- Parameters:
request
- the request- Returns:
- the flow execution key, or null if no flow execution key is present
-
getFlowId
Description copied from interface:FlowUrlHandler
Extract the flow id from the request.- Specified by:
getFlowId
in interfaceFlowUrlHandler
- Parameters:
request
- the request- Returns:
- the flow id, or null if no flow id is present
-
createFlowExecutionUrl
public String createFlowExecutionUrl(String flowId, String flowExecutionKey, jakarta.servlet.http.HttpServletRequest request) Description copied from interface:FlowUrlHandler
Create a URL that when addressed will resume an existing execution of a flow.- Specified by:
createFlowExecutionUrl
in interfaceFlowUrlHandler
flowExecutionKey
- the flow execution key that is paused and waiting to be resumedrequest
- the current request- Returns:
- the flow execution url
-
createFlowDefinitionUrl
public String createFlowDefinitionUrl(String flowId, AttributeMap<?> input, jakarta.servlet.http.HttpServletRequest request) Description copied from interface:FlowUrlHandler
Create a URL that when addressed will launch a new execution of a flow.- Specified by:
createFlowDefinitionUrl
in interfaceFlowUrlHandler
- Parameters:
flowId
- the id of the flow definitioninput
- the input to pass the new flow executionrequest
- the current request- Returns:
- the flow definition url
-