1 15 package org.apache.tapestry.link; 16 17 import org.apache.tapestry.engine.ILink; 18 19 27 public class StaticLink implements ILink 28 { 29 private String _url; 30 31 public StaticLink(String url) 32 { 33 _url = url; 34 } 35 36 public String getURL() 37 { 38 return _url; 39 } 40 41 public String getURL(String anchor, boolean includeParameters) 42 { 43 if (anchor == null) 44 return _url; 45 46 return _url + "#" + anchor; 47 } 48 49 public String getAbsoluteURL() 50 { 51 return _url; 52 } 53 54 public String getAbsoluteURL( 55 String scheme, 56 String server, 57 int port, 58 String anchor, 59 boolean includeParameters) 60 { 61 return getURL(anchor, false); 62 } 63 64 public String [] getParameterNames() 65 { 66 return null; 67 } 68 69 public String [] getParameterValues(String name) 70 { 71 throw new IllegalArgumentException (); 72 } 73 74 } 75 | Popular Tags |