]
Mark Little updated JBESB-1166:
-------------------------------
Fix Version/s: (was: 4.2.1)
ESB Message Property setter/getter shortcut
-------------------------------------------
Key: JBESB-1166
URL:
http://jira.jboss.com/jira/browse/JBESB-1166
Project: JBoss ESB
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: Rosetta
Affects Versions: 4.2.1 IR1
Reporter: Burr Sutter
Assigned To: Mark Little
I have noticed that in my code I have a lot of this kind of usage for the properties on
the esb message object:
esbMessage.getProperties().setProperty("MAIL_SUBJECT",subject);
esbMessage.getProperties().setProperty("MAIL_MESSAGE_NUMBER",mailMessage.getMessageNumber());
esbMessage.getProperties().setProperty("MAIL_SENT_DATE",mailMessage.getSentDate());
I propose we create "shortcut" methods on the Message class itself like so:
esbMessage.setProperty("MAIL_SUBJECT",subject);
esbMessage.setProperty("MAIL_MESSAGE_NUMBER",mailMessage.getMessageNumber());
esbMessage.setProperty("MAIL_SENT_DATE",mailMessage.getSentDate());
The use of the word "property" in the setter/getter should make it obvious what
part of the message it is going into. We should also consider the same for header,
attachment, etc.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: