/src/main/java/com/google/ie/common/email/MailObject.java

http://thoughtsite.googlecode.com/ · Java · 87 lines · 38 code · 14 blank · 35 comment · 0 complexity · 6d87bd9b023eed8840c48cd2af537449 MD5 · raw file

  1. /* Copyright 2010 Google Inc.
  2. *
  3. * Licensed under the Apache License, Version 2.0 (the "License");
  4. * you may not use this file except in compliance with the License.
  5. * You may obtain a copy of the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS.
  11. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. * See the License for the specific language governing permissions and
  13. * limitations under the License
  14. */
  15. package com.google.ie.common.email;
  16. /**
  17. * An object that represents an e-mail message.
  18. * This class is used to create a mail object containing the message to be sent
  19. * along with the addresses of the recipients and the sender.
  20. *
  21. *
  22. * @author asirohi
  23. *
  24. */
  25. public class MailObject {
  26. /* mail id of recipient */
  27. private String recipientEmail;
  28. /* message send in mail */
  29. private String message;
  30. /* Sender email id. */
  31. private String senderEmail;
  32. /* Subject of mail message */
  33. private String subject;
  34. public MailObject() {
  35. }
  36. /**
  37. * Initialize a new MailObject with the given recipientEmail,message and
  38. * subject.
  39. *
  40. * @param recipientEmail email address of the recipient.
  41. * @param message the message to be sent in the mail.
  42. * @param subject subject of the mail
  43. */
  44. public MailObject(String recipientEmail, String message, String subject) {
  45. this.recipientEmail = recipientEmail;
  46. this.message = message;
  47. this.subject = subject;
  48. }
  49. public String getMessage() {
  50. return message;
  51. }
  52. public void setMessage(String val) {
  53. this.message = val;
  54. }
  55. public String getRecipientEmail() {
  56. return recipientEmail;
  57. }
  58. public void setRecipientEmail(String val) {
  59. this.recipientEmail = val;
  60. }
  61. public String getSenderEmail() {
  62. return senderEmail;
  63. }
  64. public void setSenderEmail(String val) {
  65. this.senderEmail = val;
  66. }
  67. public String getSubject() {
  68. return subject;
  69. }
  70. public void setSubject(String val) {
  71. this.subject = val;
  72. }
  73. }