PageRenderTime 351ms CodeModel.GetById 201ms app.highlight 3ms RepoModel.GetById 137ms app.codeStats 6ms

/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
16package com.google.ie.common.email;
17
18/**
19 * An object that represents an e-mail message.
20 * This class is used to create a mail object containing the message to be sent
21 * along with the addresses of the recipients and the sender.
22 * 
23 * 
24 * @author asirohi
25 * 
26 */
27public class MailObject {
28    /* mail id of recipient */
29    private String recipientEmail;
30    /* message send in mail */
31    private String message;
32    /* Sender email id. */
33    private String senderEmail;
34    /* Subject of mail message */
35    private String subject;
36
37    public MailObject() {
38    }
39
40    /**
41     * Initialize a new MailObject with the given recipientEmail,message and
42     * subject.
43     * 
44     * @param recipientEmail email address of the recipient.
45     * @param message the message to be sent in the mail.
46     * @param subject subject of the mail
47     */
48    public MailObject(String recipientEmail, String message, String subject) {
49        this.recipientEmail = recipientEmail;
50        this.message = message;
51        this.subject = subject;
52    }
53
54    public String getMessage() {
55        return message;
56    }
57
58    public void setMessage(String val) {
59        this.message = val;
60    }
61
62    public String getRecipientEmail() {
63        return recipientEmail;
64    }
65
66    public void setRecipientEmail(String val) {
67        this.recipientEmail = val;
68    }
69
70    public String getSenderEmail() {
71        return senderEmail;
72    }
73
74    public void setSenderEmail(String val) {
75        this.senderEmail = val;
76    }
77
78    public String getSubject() {
79        return subject;
80    }
81
82    public void setSubject(String val) {
83        this.subject = val;
84    }
85
86}
87