1 7 package com.inversoft.verge.mvc.controller.form.config; 8 9 10 import java.net.URISyntaxException ; 11 12 import javax.servlet.http.HttpServletRequest ; 13 14 import com.inversoft.verge.mvc.config.BaseConfig; 15 import com.inversoft.verge.mvc.controller.GenericResult; 16 import com.inversoft.verge.mvc.controller.Result; 17 18 19 26 public class MappingConfig extends BaseConfig implements Result { 27 28 private GenericResult result; 29 30 31 41 public MappingConfig(String name, String url, boolean forward, String category) { 42 super(name); 43 44 assert (url != null) : "url == null"; 45 result = new GenericResult(url, category, forward); 46 } 47 48 49 54 public String getURL() { 55 return result.getURL(); 56 } 57 58 63 public boolean isForward() { 64 return result.isForward(); 65 } 66 67 74 public String getCategory() { 75 return result.getCategory(); 76 } 77 78 85 public String getGeneratedURL(HttpServletRequest request) 86 throws URISyntaxException { 87 return result.getGeneratedURL(request); 88 } 89 } | Popular Tags |