1 16 17 package org.apache.jetspeed.om.registry.base; 18 19 import org.apache.jetspeed.om.registry.ContentURL; 20 21 29 public class BaseContentURL implements ContentURL 30 { 31 private String url; 32 private boolean cacheKey = true; 33 34 38 public boolean equals(Object object) 39 { 40 if (object==null) 41 { 42 return false; 43 } 44 45 BaseContentURL obj = (BaseContentURL)object; 46 47 if (cacheKey != obj.cacheKey) 48 { 49 return false; 50 } 51 52 if (url!=null) 53 { 54 if(!url.equals(obj.url)) 55 { 56 return false; 57 } 58 } 59 else 60 { 61 if (obj.url!=null) 62 { 63 return false; 64 } 65 } 66 67 return true; 68 } 69 70 71 public String getURL() 72 { 73 return url; 74 } 75 76 80 public void setURL(String value) 81 { 82 this.url = value; 83 } 84 85 public boolean isCacheKey() 86 { 87 return cacheKey; 88 } 89 90 public void setCachedOnURL(boolean cacheKey) 91 { 92 this.cacheKey = cacheKey; 93 } 94 95 public boolean getCachedOnURL() 96 { 97 return this.cacheKey; 98 } 99 100 } | Popular Tags |