2 * Copyright (C) 2016 Roland Häder
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.
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.
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/>.
17 package org.mxchange.jmailee.model.delivery.wrapper;
19 import java.util.Locale;
20 import java.util.Properties;
21 import javax.mail.Address;
24 * A wrapper class for email delivery.
26 * @author Roland Häder<roland@mxchange.org>
28 public class EmailDeliveryWrapper implements WrapableEmailDelivery {
33 private static final long serialVersionUID = 518_209_689_877_185_914L;
36 * Locale instance for language
38 private Locale locale;
41 * Recipient email address
43 private Address recipient;
48 private String subjectLine;
53 private String templateName;
58 private Properties templateVariables;
61 public Locale getLocale () {
66 public void setLocale (final Locale locale) {
71 public Address getRecipient () {
72 return this.recipient;
76 public void setRecipient (final Address recipient) {
77 this.recipient = recipient;
81 public String getSubjectLine () {
82 return this.subjectLine;
86 public void setSubjectLine (final String subjectLine) {
87 this.subjectLine = subjectLine;
91 public String getTemplateName () {
92 return this.templateName;
96 public void setTemplateName (final String templateName) {
97 this.templateName = templateName;
101 @SuppressWarnings ("ReturnOfCollectionOrArrayField")
102 public Properties getTemplateVariables () {
103 return this.templateVariables;
107 @SuppressWarnings ("AssignmentToCollectionOrArrayFieldFromParameter")
108 public void setTemplateVariables (final Properties templateVariables) {
109 this.templateVariables = templateVariables;