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 TypeMethodDescriptionvoidaddFrom(Address[] addresses) voidvoidaddRecipients(javax.mail.Message.RecipientType type, Address[] addresses) javax.activation.DataHandlerFlagsgetFlags()Address[]getFrom()String[]intgetMatchingHeaders(String[] strings) getNonMatchingHeaders(String[] strings) javax.mail.MessageAddress[]getRecipients(javax.mail.Message.RecipientType type) intgetSize()booleanisMimeType(String s) voidreply(boolean b) voidvoidsetContent(Object o, String s) voidsetContent(Multipart multipart) voidsetDataHandler(javax.activation.DataHandler handler) voidvoidvoidvoidsetFlags(Flags flags, boolean b) voidsetFrom()voidsetFrom(Address address) voidvoidsetRecipients(javax.mail.Message.RecipientType type, Address[] addresses) voidsetSentDate(Date date) voidsetSubject(String s) voidvoidwriteTo(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:
IOExceptionMessagingException
-
getDataHandler
javax.activation.DataHandler getDataHandler() throws MessagingException- Throws:
MessagingException
-
getContent
- Throws:
IOExceptionMessagingException
-
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:
IOExceptionMessagingException
-
getHeader
- Throws:
MessagingException
-
setHeader
- Throws:
MessagingException
-
addHeader
- Throws:
MessagingException
-
removeHeader
- Throws:
MessagingException
-
getAllHeaders
- Throws:
MessagingException
-
getMatchingHeaders
- Throws:
MessagingException
-
getNonMatchingHeaders
- Throws:
MessagingException
-