]> git.mxchange.org Git - jmailer-ee.git/blob - src/org/mxchange/jmailee/model/delivery/wrapper/EmailDeliveryWrapper.java
updated jar(s)
[jmailer-ee.git] / src / org / mxchange / jmailee / model / delivery / wrapper / EmailDeliveryWrapper.java
1 /*
2  * Copyright (C) 2016 Roland Häder
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
16  */
17 package org.mxchange.jmailee.model.delivery.wrapper;
18
19 import java.util.Locale;
20 import java.util.Properties;
21 import javax.mail.Address;
22
23 /**
24  * A wrapper class for email delivery.
25  * <p>
26  * @author Roland Häder<roland@mxchange.org>
27  */
28 public class EmailDeliveryWrapper implements WrapableEmailDelivery {
29
30         /**
31          * Serial number
32          */
33         private static final long serialVersionUID = 518_209_689_877_185_914L;
34
35         /**
36          * Locale instance for language
37          */
38         private Locale locale;
39
40         /**
41          * Recipient email address
42          */
43         private Address recipient;
44
45         /**
46          * Subject line
47          */
48         private String subjectLine;
49
50         /**
51          * Template name
52          */
53         private String templateName;
54
55         /**
56          * Template variables
57          */
58         private Properties templateVariables;
59
60         @Override
61         public Locale getLocale () {
62                 return this.locale;
63         }
64
65         @Override
66         public void setLocale (final Locale locale) {
67                 this.locale = locale;
68         }
69
70         @Override
71         public Address getRecipient () {
72                 return this.recipient;
73         }
74
75         @Override
76         public void setRecipient (final Address recipient) {
77                 this.recipient = recipient;
78         }
79
80         @Override
81         public String getSubjectLine () {
82                 return this.subjectLine;
83         }
84
85         @Override
86         public void setSubjectLine (final String subjectLine) {
87                 this.subjectLine = subjectLine;
88         }
89
90         @Override
91         public String getTemplateName () {
92                 return this.templateName;
93         }
94
95         @Override
96         public void setTemplateName (final String templateName) {
97                 this.templateName = templateName;
98         }
99
100         @Override
101         @SuppressWarnings ("ReturnOfCollectionOrArrayField")
102         public Properties getTemplateVariables () {
103                 return this.templateVariables;
104         }
105
106         @Override
107         @SuppressWarnings ("AssignmentToCollectionOrArrayFieldFromParameter")
108         public void setTemplateVariables (final Properties templateVariables) {
109                 this.templateVariables = templateVariables;
110         }
111
112 }