public class SimpleMailMessageItemWriterBuilder
extends java.lang.Object
Constructor and Description |
---|
SimpleMailMessageItemWriterBuilder() |
Modifier and Type | Method and Description |
---|---|
SimpleMailMessageItemWriter |
build()
Returns a fully constructed
SimpleMailMessageItemWriter . |
SimpleMailMessageItemWriterBuilder |
mailErrorHandler(MailErrorHandler mailErrorHandler)
The handler for failed messages.
|
SimpleMailMessageItemWriterBuilder |
mailSender(org.springframework.mail.MailSender mailSender)
A
MailSender to be used to send messages in
SimpleMailMessageItemWriter.write(List) . |
public SimpleMailMessageItemWriterBuilder mailSender(org.springframework.mail.MailSender mailSender)
MailSender
to be used to send messages in
SimpleMailMessageItemWriter.write(List)
.mailSender
- strategy for sending simple mails.SimpleMailMessageItemWriter.setMailSender(MailSender)
public SimpleMailMessageItemWriterBuilder mailErrorHandler(MailErrorHandler mailErrorHandler)
DefaultMailErrorHandler
.mailErrorHandler
- the mail error handler to set.SimpleMailMessageItemWriter.setMailErrorHandler(MailErrorHandler)
public SimpleMailMessageItemWriter build()
SimpleMailMessageItemWriter
.SimpleMailMessageItemWriter