1 package org.apache.turbine.util.mail; 2 3 18 19 import java.net.URL ; 20 21 28 public class EmailAttachment 29 { 30 public final static String ATTACHMENT = javax.mail.Part.ATTACHMENT; 31 public final static String INLINE = javax.mail.Part.INLINE; 32 33 34 private String name = ""; 35 36 37 private String description = ""; 38 39 40 private String path = ""; 41 42 43 private URL url = null; 44 45 46 private String disposition = ATTACHMENT; 47 48 53 public String getDescription() 54 { 55 return description; 56 } 57 58 63 public String getName() 64 { 65 return name; 66 } 67 68 73 public String getPath() 74 { 75 return path; 76 } 77 78 83 public URL getURL() 84 { 85 return url; 86 } 87 88 93 public String getDisposition() 94 { 95 return disposition; 96 } 97 98 103 public void setDescription(String desc) 104 { 105 this.description = desc; 106 } 107 108 113 public void setName(String name) 114 { 115 this.name = name; 116 } 117 118 123 public void setPath(String path) 124 { 125 this.path = path; 126 } 127 128 133 public void setURL(URL url) 134 { 135 this.url = url; 136 } 137 138 143 public void setDisposition(String disposition) 144 { 145 this.disposition = disposition; 146 } 147 } 148 | Popular Tags |