2 * Copyright (C) 2016, 2017 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.io.Serializable;
20 import java.util.Locale;
21 import java.util.Properties;
22 import javax.ejb.Local;
23 import javax.mail.Address;
26 * A generic wrapper interface for mail delivery.
28 * @author Roland Häder<roland@mxchange.org>
31 public interface WrapableEmailDelivery extends Serializable {
34 * Getter fo template name
36 * @return Template name
38 String getTemplateName ();
41 * Setter fo template name
43 * @param templateName Template name
45 void setTemplateName (final String templateName);
48 * Getter for recipient email address
50 * @return Email address recipient
52 Address getRecipient ();
55 * Setter for recipient email address
57 * @param recipient Email address recipient
59 void setRecipient (final Address recipient);
62 * Getter for optional properties
64 * @return Optional properties
66 Properties getTemplateVariables ();
69 * Setter for optional properties
71 * @param properties Optional properties
73 void setTemplateVariables (final Properties properties);
76 * Getter for subject line
78 * @return Subject line
80 String getSubjectLine ();
83 * Setter for subject line
85 * @param subjectLine Subject line
87 void setSubjectLine (final String subjectLine);
92 * @return Locale instance
99 * @param locale Locale instance
101 void setLocale (final Locale locale);