2 * Copyright (C) 2016 Roland Haeder
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.io.Serializable;
20 import java.util.Locale;
21 import java.util.Properties;
22 import javax.mail.Address;
25 * A generic wrapper interface for mail delivery.
27 * @author Roland Haeder<roland@mxchange.org>
29 public interface WrapableEmailDelivery extends Serializable {
32 * Getter fo template name
34 * @return Template name
36 String getTemplateName ();
39 * Setter fo template name
41 * @param templateName Template name
43 void setTemplateName (final String templateName);
46 * Getter for recipient email address
48 * @return Email address recipient
50 Address getRecipient ();
53 * Setter for recipient email address
55 * @param recipient Email address recipient
57 void setRecipient (final Address recipient);
60 * Getter for optional properties
62 * @return Optional properties
64 Properties getTemplateVariables ();
67 * Setter for optional properties
69 * @param properties Optional properties
71 void setTemplateVariables (final Properties properties);
74 * Getter for subject line
76 * @return Subject line
78 String getSubjectLine ();
81 * Setter for subject line
83 * @param subjectLine Subject line
85 void setSubjectLine (final String subjectLine);
90 * @return Locale instance
97 * @param locale Locale instance
99 void setLocale (final Locale locale);