public abstract class AbstractMailClient extends Object implements IMailClient, org.springframework.beans.factory.InitializingBean
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractMailClient.Format |
static class |
AbstractMailClient.Security |
IMailClient.MailException| Constructor and Description |
|---|
AbstractMailClient() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
AbstractMailClient.Format |
getFormat() |
javax.mail.internet.InternetAddress |
getFrom() |
javax.mail.internet.InternetAddress |
getReplyTo() |
protected abstract javax.mail.Session |
getSmtpSession(String recipient) |
AbstractMailClient |
init() |
protected boolean |
isTemporary(javax.mail.MessagingException e) |
void |
send(Dispatch dispatch) |
protected void |
send(javax.mail.internet.MimeMessage mm)
override for testing
|
AbstractMailClient |
setFormat(AbstractMailClient.Format format) |
AbstractMailClient |
setFrom(javax.mail.internet.InternetAddress from) |
AbstractMailClient |
setFrom(String address) |
AbstractMailClient |
setFrom(String address,
String personal) |
AbstractMailClient |
setReplyTo(javax.mail.internet.InternetAddress replyTo) |
AbstractMailClient |
setReplyTo(String address) |
AbstractMailClient |
setReplyTo(String address,
String personal) |
protected String |
toErrorMessage(javax.mail.MessagingException e) |
public final void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic AbstractMailClient init() throws IMailClient.MailException
IMailClient.MailExceptionpublic void send(Dispatch dispatch) throws IMailClient.MailException
send in interface IMailClientIMailClient.MailExceptionprotected void send(javax.mail.internet.MimeMessage mm)
throws javax.mail.MessagingException
javax.mail.MessagingExceptionprotected String toErrorMessage(javax.mail.MessagingException e)
protected boolean isTemporary(javax.mail.MessagingException e)
protected abstract javax.mail.Session getSmtpSession(String recipient) throws IMailClient.MailException
IMailClient.MailExceptionpublic javax.mail.internet.InternetAddress getFrom()
public AbstractMailClient setFrom(javax.mail.internet.InternetAddress from)
public AbstractMailClient setFrom(String address) throws javax.mail.internet.AddressException
javax.mail.internet.AddressExceptionpublic AbstractMailClient setFrom(String address, String personal) throws javax.mail.internet.AddressException
javax.mail.internet.AddressExceptionpublic javax.mail.internet.InternetAddress getReplyTo()
public AbstractMailClient setReplyTo(javax.mail.internet.InternetAddress replyTo)
public AbstractMailClient setReplyTo(String address) throws javax.mail.internet.AddressException
javax.mail.internet.AddressExceptionpublic AbstractMailClient setReplyTo(String address, String personal) throws javax.mail.internet.AddressException
javax.mail.internet.AddressExceptionpublic AbstractMailClient.Format getFormat()
public AbstractMailClient setFormat(AbstractMailClient.Format format)
Copyright © 2014 Molindo GmbH. All Rights Reserved.