Package alt.javax.mail
Interface Message
- All Known Subinterfaces:
MimeMessage
- All Known Implementing Classes:
MessageImpl
,MimeMessageImpl
,MockMessage
,MockMimeMessage
public interface Message
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFrom
(Address[] addresses) void
void
addRecipients
(javax.mail.Message.RecipientType type, Address[] addresses) javax.activation.DataHandler
Flags
getFlags()
Address[]
getFrom()
String[]
int
getMatchingHeaders
(String[] strings) getNonMatchingHeaders
(String[] strings) javax.mail.Message
Address[]
getRecipients
(javax.mail.Message.RecipientType type) int
getSize()
boolean
isMimeType
(String s) void
reply
(boolean b) void
void
setContent
(Object o, String s) void
setContent
(Multipart multipart) void
setDataHandler
(javax.activation.DataHandler handler) void
void
void
void
setFlags
(Flags flags, boolean b) void
setFrom()
void
setFrom
(Address address) void
void
setRecipients
(javax.mail.Message.RecipientType type, Address[] addresses) void
setSentDate
(Date date) void
setSubject
(String s) void
void
writeTo
(OutputStream stream)
-
Method Details
-
getRealMessage
javax.mail.Message getRealMessage() -
getFrom
Address[] getFrom() throws MessagingException- Throws:
MessagingException
-
setFrom
void setFrom() throws MessagingException- Throws:
MessagingException
-
setFrom
void setFrom(Address address) throws MessagingException - Throws:
MessagingException
-
addFrom
void addFrom(Address[] addresses) throws MessagingException - Throws:
MessagingException
-
getRecipients
Address[] getRecipients(javax.mail.Message.RecipientType type) throws MessagingException - Throws:
MessagingException
-
setRecipients
void setRecipients(javax.mail.Message.RecipientType type, Address[] addresses) throws MessagingException - Throws:
MessagingException
-
addRecipients
void addRecipients(javax.mail.Message.RecipientType type, Address[] addresses) throws MessagingException - Throws:
MessagingException
-
getSubject
- Throws:
MessagingException
-
setSubject
- Throws:
MessagingException
-
getSentDate
- Throws:
MessagingException
-
setSentDate
- Throws:
MessagingException
-
getReceivedDate
- Throws:
MessagingException
-
getFlags
Flags getFlags() throws MessagingException- Throws:
MessagingException
-
setFlags
void setFlags(Flags flags, boolean b) throws MessagingException - Throws:
MessagingException
-
reply
- Throws:
MessagingException
-
saveChanges
void saveChanges() throws MessagingException- Throws:
MessagingException
-
getSize
int getSize() throws MessagingException- Throws:
MessagingException
-
getLineCount
int getLineCount() throws MessagingException- Throws:
MessagingException
-
getContentType
- Throws:
MessagingException
-
isMimeType
- Throws:
MessagingException
-
getDisposition
- Throws:
MessagingException
-
setDisposition
- Throws:
MessagingException
-
getDescription
- Throws:
MessagingException
-
setDescription
- Throws:
MessagingException
-
getFileName
- Throws:
MessagingException
-
setFileName
- Throws:
MessagingException
-
getInputStream
- Throws:
IOException
MessagingException
-
getDataHandler
javax.activation.DataHandler getDataHandler() throws MessagingException- Throws:
MessagingException
-
getContent
- Throws:
IOException
MessagingException
-
setDataHandler
void setDataHandler(javax.activation.DataHandler handler) throws MessagingException - Throws:
MessagingException
-
setContent
- Throws:
MessagingException
-
setText
- Throws:
MessagingException
-
setContent
void setContent(Multipart multipart) throws MessagingException - Throws:
MessagingException
-
writeTo
- Throws:
IOException
MessagingException
-
getHeader
- Throws:
MessagingException
-
setHeader
- Throws:
MessagingException
-
addHeader
- Throws:
MessagingException
-
removeHeader
- Throws:
MessagingException
-
getAllHeaders
- Throws:
MessagingException
-
getMatchingHeaders
- Throws:
MessagingException
-
getNonMatchingHeaders
- Throws:
MessagingException
-