base class helper
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
package org.springframework.webflow.mvc;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import org.springframework.webflow.core.FlowException;
|
||||
import org.springframework.webflow.core.collection.AttributeMap;
|
||||
import org.springframework.webflow.core.collection.MutableAttributeMap;
|
||||
|
||||
/**
|
||||
* Trivial flow handler base class that simply returns null for all operations. Subclasses should extend and override
|
||||
* which operations they need.
|
||||
*
|
||||
* @author Keith Donald
|
||||
*/
|
||||
public class AbstractFlowHandler implements FlowHandler {
|
||||
|
||||
public String getFlowId() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public MutableAttributeMap createExecutionInputMap(HttpServletRequest request) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ModelAndView handleException(FlowException e, HttpServletRequest request, HttpServletResponse response) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ModelAndView handleExecutionOutcome(String outcome, AttributeMap output, HttpServletRequest request,
|
||||
HttpServletResponse response) {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user