public class AbstractFlowHandler extends java.lang.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.
|
java.lang.String |
getFlowId()
Returns the id of the flow handled by this handler.
|
java.lang.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.
|
java.lang.String |
handleExecutionOutcome(FlowExecutionOutcome outcome,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles a specific flow execution outcome.
|
java.lang.String |
toString() |
public java.lang.String getFlowId()
FlowHandler
getFlowId
in interface FlowHandler
public MutableAttributeMap createExecutionInputMap(javax.servlet.http.HttpServletRequest request)
FlowHandler
createExecutionInputMap
in interface FlowHandler
request
- the current requestpublic java.lang.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 java.lang.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 responsepublic java.lang.String toString()
toString
in class java.lang.Object