1 23 24 30 package org.infoglue.cms.entities.up2date; 31 32 import java.io.UnsupportedEncodingException ; 33 import java.net.URLDecoder ; 34 35 36 42 public class UpdatePackage { 43 private String packageId; 44 private String url; 45 private String detailsUrl; 46 private String description; 47 private String title; 48 private Integer binarySize; 49 private String binaryUrl; 50 51 52 55 public String getDescription() { 56 return description; 57 } 58 59 62 public String getPackageId() { 63 return packageId; 64 } 65 66 69 public String getUrl() { 70 return url; 71 } 72 73 public String getDecodedUrl() { 74 String ret = ""; 75 try { 76 ret = URLDecoder.decode(url, "UTF-8"); 77 } catch (UnsupportedEncodingException e) { 78 e.printStackTrace(); 79 } 80 return ret; 81 } 82 83 public String getDecodedDetailsUrl() { 84 String ret = ""; 85 try { 86 ret = URLDecoder.decode(detailsUrl, "UTF-8"); 87 } catch (UnsupportedEncodingException e) { 88 e.printStackTrace(); 89 } 90 return ret; 91 } 92 93 public String getDecodedBinaryUrl() { 94 String ret = ""; 95 try { 96 ret = URLDecoder.decode(binaryUrl, "UTF-8"); 97 } catch (UnsupportedEncodingException e) { 98 e.printStackTrace(); 99 } 100 return ret; 101 } 102 103 106 public void setDescription(String string) { 107 description = string; 108 } 109 110 113 public void setPackageId(String string) { 114 packageId = string; 115 } 116 117 120 public void setUrl(String string) { 121 url = string; 122 } 123 124 127 public String getDetailsUrl() { 128 return detailsUrl; 129 } 130 131 134 public void setDetailsUrl(String string) { 135 detailsUrl = string; 136 } 137 138 141 public String getTitle() { 142 return title; 143 } 144 145 148 public void setTitle(String string) { 149 title = string; 150 } 151 152 public Integer getBinarySize() 153 { 154 return binarySize; 155 } 156 public void setBinarySize(Integer binarySize) 157 { 158 this.binarySize = binarySize; 159 } 160 public String getBinaryUrl() 161 { 162 return binaryUrl; 163 } 164 public void setBinaryUrl(String binaryUrl) 165 { 166 this.binaryUrl = binaryUrl; 167 } 168 } 169 | Popular Tags |