1 16 package org.apache.commons.chain.generic; 17 18 19 import org.apache.commons.chain.Command; 20 import org.apache.commons.chain.Context; 21 22 23 29 30 public class RemoveCommand implements Command { 31 32 33 35 36 private String fromKey = null; 37 38 39 42 public String getFromKey() { 43 44 return (this.fromKey); 45 46 } 47 48 49 54 public void setFromKey(String fromKey) { 55 56 this.fromKey = fromKey; 57 58 } 59 60 61 63 64 72 public boolean execute(Context context) throws Exception { 73 74 context.remove(getFromKey()); 75 return (false); 76 77 } 78 79 80 } 81 | Popular Tags |