public class AbstractFlowHandler extends Object implements FlowHandler
Constructor and Description |
---|
AbstractFlowHandler() |
Modifier and Type | Method and Description |
---|---|
MutableAttributeMap |
createExecutionInputMap(javax.servlet.http.HttpServletRequest request)
Creates the flow execution input map to pass to a new instance of the flow being started.
|
String |
getFlowId()
Returns the id of the flow handled by this handler.
|
String |
handleException(FlowException e,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles a flow exception that was not handled by the Web Flow system.
|
String |
handleExecutionOutcome(FlowExecutionOutcome outcome,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles a specific flow execution outcome.
|
String |
toString() |
public String getFlowId()
FlowHandler
getFlowId
in interface FlowHandler
public MutableAttributeMap createExecutionInputMap(javax.servlet.http.HttpServletRequest request)
FlowHandler
createExecutionInputMap
in interface FlowHandler
request
- the current requestpublic String handleExecutionOutcome(FlowExecutionOutcome outcome, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
FlowHandler
The following prefixes are supported for qualifying the returned location string:
For servlet-relative, context-relative, and server-relative URLs, a leading slash is optional.
handleExecutionOutcome
in interface FlowHandler
outcome
- the outcome that was reachedrequest
- the current requestresponse
- the current responsepublic String handleException(FlowException e, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
FlowHandler
handleException
in interface FlowHandler
e
- the unhandled exception originating from Spring Web Flow. May be thrown by the flow execution itself or
the flow executor system if no execution could be restored.request
- the current requestresponse
- the current response