Class MimeMessageBuilder
java.lang.Object
org.apache.logging.log4j.core.net.MimeMessageBuilder
- All Implemented Interfaces:
Builder<javax.mail.internet.MimeMessage>
Builder for
MimeMessage
instances.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavax.mail.internet.MimeMessage
build()
Builds the object after all configuration has been set.javax.mail.internet.MimeMessage
Deprecated.setRecipients
(javax.mail.Message.RecipientType recipientType, String recipients) setReplyTo
(String replyTo) setSubject
(String subject) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.logging.log4j.core.util.Builder
getErrorPrefix, isValid
-
Constructor Details
-
MimeMessageBuilder
public MimeMessageBuilder(javax.mail.Session session)
-
-
Method Details
-
setFrom
- Throws:
javax.mail.MessagingException
-
setReplyTo
- Throws:
javax.mail.MessagingException
-
setRecipients
public MimeMessageBuilder setRecipients(javax.mail.Message.RecipientType recipientType, String recipients) throws javax.mail.MessagingException - Throws:
javax.mail.MessagingException
-
setSubject
- Throws:
javax.mail.MessagingException
-
getMimeMessage
Deprecated.Usebuild()
. -
build
public javax.mail.internet.MimeMessage build()Description copied from interface:Builder
Builds the object after all configuration has been set. This will use default values for any unspecified attributes for the object.
-
build()
.