1 23 package com.scalagent.joram.mom.dest.mail; 24 25 import org.objectweb.joram.shared.messages.Message; 26 27 28 32 public class MailMessage { 33 private Message sharedMsg; 34 35 38 public MailMessage() { 39 sharedMsg = new Message(); 40 } 41 42 48 public MailMessage(org.objectweb.joram.shared.messages.Message momMsg) { 49 this.sharedMsg = momMsg; 50 } 51 52 56 public Message getSharedMessage() { 57 return sharedMsg; 58 } 59 60 66 public int getType() { 67 return sharedMsg.type; 68 } 69 70 74 public String getIdentifier() { 75 return sharedMsg.id; 76 } 77 78 82 public boolean getPersistent() { 83 return sharedMsg.persistent; 84 } 85 86 92 public int getJMSPriority() { 93 return sharedMsg.priority; 94 } 95 96 100 public long getJMSExpiration() { 101 return sharedMsg.expiration; 102 } 103 104 108 public long getTimestamp() { 109 return sharedMsg.timestamp; 110 } 111 112 116 public String getDestinationId() { 117 return sharedMsg.toId; 118 } 119 120 124 public String getToType() { 125 return sharedMsg.toType; 126 } 127 128 132 public String getCorrelationId() { 133 return sharedMsg.correlationId; 134 } 135 136 140 public String getReplyToId() { 141 return sharedMsg.replyToId; 142 } 143 144 148 public String replyToType() { 149 return sharedMsg.replyToType; 150 } 151 152 156 public int getDeliveryCount() { 157 return sharedMsg.deliveryCount; 158 } 159 160 165 public boolean getDenied() { 166 return sharedMsg.redelivered; 167 } 168 169 173 public boolean getDeletedDest() { 174 return sharedMsg.deletedDest; 175 } 176 177 181 public boolean getExpired() { 182 return sharedMsg.expired; 183 } 184 185 189 public boolean getNotWriteable() { 190 return sharedMsg.notWriteable; 191 } 192 193 public boolean getUndeliverable() { 194 return sharedMsg.undeliverable; 195 } 196 197 202 public Object getProperty(String name) { 203 return sharedMsg.getProperty(name); 204 } 205 206 210 public String getText() { 211 return sharedMsg.getText(); 212 } 213 214 218 public void setIdentifier(String id) { 219 sharedMsg.id = id; 220 } 221 222 226 public void setPersistent(boolean persistent) { 227 sharedMsg.persistent = persistent; 228 } 229 230 235 public void setPriority(int priority) { 236 sharedMsg.priority = priority; 237 } 238 239 243 public void setExpiration(long expiration) { 244 sharedMsg.expiration = expiration; 245 } 246 247 251 public void setTimestamp(long timestamp) { 252 sharedMsg.timestamp = timestamp; 253 } 254 255 261 public void setDestination(String id, String type) { 262 sharedMsg.setDestination(id, type); 263 } 264 265 269 public void setCorrelationId(String correlationId) { 270 sharedMsg.correlationId = correlationId; 271 } 272 273 279 public void setReplyTo(String id, String type) { 280 sharedMsg.setReplyTo(id, type); 281 } 282 283 287 public void setDeliveryCount(int deliveryCount) { 288 sharedMsg.deliveryCount = deliveryCount; 289 } 290 291 296 public void setDenied(boolean redelivered) { 297 sharedMsg.redelivered = redelivered; 298 } 299 300 304 public void setDeletedDest(boolean deletedDest) { 305 sharedMsg.deletedDest = deletedDest; 306 } 307 308 312 public void setExpired(boolean expired) { 313 sharedMsg.expired = expired; 314 } 315 316 320 public void setNotWriteable(boolean notWriteable) { 321 sharedMsg.notWriteable = notWriteable; 322 } 323 324 328 public void setUndeliverable(boolean undeliverable) { 329 sharedMsg.undeliverable = undeliverable; 330 } 331 332 336 public void setText(String text) { 337 sharedMsg.setText(text); 338 } 339 } 340 | Popular Tags |