1 7 package com.inversoft.verge.mvc.controller.actionflow; 8 9 10 import java.util.Map ; 11 12 import javax.servlet.http.HttpServletRequest ; 13 import javax.servlet.http.HttpServletResponse ; 14 15 import com.inversoft.verge.mvc.controller.Action; 16 import com.inversoft.verge.mvc.controller.actionflow.config.Node; 17 import com.inversoft.verge.util.RequestContext; 18 19 20 30 public class ActionFlowAction extends Action { 31 32 private Node node; 33 private Map extraParams; 34 35 36 39 public ActionFlowAction(Object action, HttpServletRequest request, 40 HttpServletResponse response, Node node, RequestContext requestContext) { 41 super(action, request, response, requestContext); 42 this.node = node; 43 } 44 45 48 public ActionFlowAction(HttpServletRequest request, HttpServletResponse response, 49 RequestContext requestContext) { 50 super(null, request, response, requestContext); 51 } 52 53 56 public ActionFlowAction(HttpServletRequest request, HttpServletResponse response) { 57 super(null, request, response); 58 } 59 60 61 67 public Node getNode() { 68 return node; 69 } 70 71 78 void setNode(Node node) { 79 this.node = node; 80 } 81 82 87 protected void setAction(Object action) { 88 super.setAction(action); 89 } 90 91 96 protected boolean isThrowable() { 97 Object action = getAction(); 98 return (action != null & action instanceof Throwable ); 99 } 100 101 106 public Map getExtraParams() { 107 return extraParams; 108 } 109 110 115 void setExtraParams(Map extraParams) { 116 this.extraParams = extraParams; 117 } 118 } | Popular Tags |