1 24 package org.riotfamily.riot.list.command.result; 25 26 import org.riotfamily.riot.list.command.CommandContext; 27 import org.riotfamily.riot.list.command.CommandResult; 28 29 public class GotoUrlResult implements CommandResult { 30 31 public static final String ACTION = "gotoUrl"; 32 33 private String url; 34 35 private String target = "self"; 36 37 private boolean replace; 38 39 public GotoUrlResult(String url) { 40 this.url = url; 41 } 42 43 public GotoUrlResult(CommandContext context, String url) { 44 this.url = context.getRequest().getContextPath() + url; 45 } 46 47 public String getAction() { 48 return ACTION; 49 } 50 51 public boolean isReplace() { 52 return this.replace; 53 } 54 55 public void setReplace(boolean replace) { 56 this.replace = replace; 57 } 58 59 public String getTarget() { 60 return this.target; 61 } 62 63 public void setTarget(String target) { 64 this.target = target; 65 } 66 67 public String getUrl() { 68 return this.url; 69 } 70 71 } 72 | Popular Tags |