public class WebFlow1FlowUrlHandler extends Object implements FlowUrlHandler
Constructor and Description |
---|
WebFlow1FlowUrlHandler() |
Modifier and Type | Method and Description |
---|---|
String |
createFlowDefinitionUrl(String flowId,
AttributeMap input,
javax.servlet.http.HttpServletRequest request)
Create a URL that when addressed will launch a new execution of a flow.
|
String |
createFlowExecutionUrl(String flowId,
String flowExecutionKey,
javax.servlet.http.HttpServletRequest request)
Create a URL that when addressed will resume an existing execution of a flow.
|
String |
getFlowExecutionKey(javax.servlet.http.HttpServletRequest request)
Extract the flow execution from the request.
|
String |
getFlowId(javax.servlet.http.HttpServletRequest request)
Extract the flow id from the request.
|
public String getFlowExecutionKey(javax.servlet.http.HttpServletRequest request)
FlowUrlHandler
getFlowExecutionKey
in interface FlowUrlHandler
request
- the requestpublic String getFlowId(javax.servlet.http.HttpServletRequest request)
FlowUrlHandler
getFlowId
in interface FlowUrlHandler
request
- the requestpublic String createFlowExecutionUrl(String flowId, String flowExecutionKey, javax.servlet.http.HttpServletRequest request)
FlowUrlHandler
createFlowExecutionUrl
in interface FlowUrlHandler
flowExecutionKey
- the flow execution key that is paused and waiting to be resumedrequest
- the current requestpublic String createFlowDefinitionUrl(String flowId, AttributeMap input, javax.servlet.http.HttpServletRequest request)
FlowUrlHandler
createFlowDefinitionUrl
in interface FlowUrlHandler
flowId
- the id of the flow definitioninput
- the input to pass the new flow executionrequest
- the current request