Interface MailMessage
- All Known Implementing Classes:
IncaMailMessage
,SmtpMailMessage
public interface MailMessage
An abstraction that enables to use the
MessageProcessor
using different
kinds of mail representations.-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.mail.internet.InternetAddress[]
getBcc()
jakarta.mail.internet.InternetAddress[]
getCC()
jakarta.mail.internet.InternetAddress[]
getFrom()
jakarta.mail.internet.InternetAddress[]
jakarta.mail.internet.InternetAddress[]
getTo()
void
setBcc
(jakarta.mail.Address[] sender) void
setCc
(jakarta.mail.Address[] sender) void
setFrom
(jakarta.mail.Address sender) void
setReplyTo
(jakarta.mail.Address[] sender) void
setSender
(@Nullable jakarta.mail.Address sender) void
setTo
(jakarta.mail.Address[] sender) boolean
unwrap()
-
Method Details
-
supportsModifyingSender
boolean supportsModifyingSender() -
getFrom
jakarta.mail.internet.InternetAddress[] getFrom() throws jakarta.mail.MessagingException- Throws:
jakarta.mail.MessagingException
-
getTo
jakarta.mail.internet.InternetAddress[] getTo() throws jakarta.mail.MessagingException- Throws:
jakarta.mail.MessagingException
-
getCC
jakarta.mail.internet.InternetAddress[] getCC() throws jakarta.mail.MessagingException- Throws:
jakarta.mail.MessagingException
-
getBcc
jakarta.mail.internet.InternetAddress[] getBcc() throws jakarta.mail.MessagingException- Throws:
jakarta.mail.MessagingException
-
getReplyTo
jakarta.mail.internet.InternetAddress[] getReplyTo() -
unwrap
Object unwrap() -
setSender
void setSender(@Nullable @Nullable jakarta.mail.Address sender) throws jakarta.mail.MessagingException - Throws:
jakarta.mail.MessagingException
-
setFrom
void setFrom(jakarta.mail.Address sender) throws jakarta.mail.MessagingException - Throws:
jakarta.mail.MessagingException
-
setReplyTo
void setReplyTo(jakarta.mail.Address[] sender) throws jakarta.mail.MessagingException - Throws:
jakarta.mail.MessagingException
-
setTo
void setTo(jakarta.mail.Address[] sender) throws jakarta.mail.MessagingException - Throws:
jakarta.mail.MessagingException
-
setCc
void setCc(jakarta.mail.Address[] sender) throws jakarta.mail.MessagingException - Throws:
jakarta.mail.MessagingException
-
setBcc
void setBcc(jakarta.mail.Address[] sender) throws jakarta.mail.MessagingException - Throws:
jakarta.mail.MessagingException
-
getHtmlParts
- Throws:
IOException
jakarta.mail.MessagingException
-