1 48 49 package org.jpublish.action; 50 51 import com.anthonyeden.lib.config.Configuration; 52 import org.jpublish.RequestContext; 53 54 60 public class ActionWrapper { 61 62 private Action action = null; 63 private Configuration configuration = null; 64 65 71 public ActionWrapper(Action action, Configuration configuration) { 72 this.action = action; 73 this.configuration = configuration; 74 } 75 76 81 82 public Action getAction() { 83 return action; 84 } 85 86 91 92 public void execute(RequestContext context) { 93 if (context == null || context.getRedirect() == null) { 94 action.execute(context, configuration); 95 } 96 } 97 98 } 99 | Popular Tags |