Package alt.javax.mail
Interface Message
-
- All Known Subinterfaces:
MimeMessage
- All Known Implementing Classes:
MessageImpl,MimeMessageImpl,MockMessage,MockMimeMessage
public interface Message
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddFrom(Address[] addresses)voidaddHeader(java.lang.String s, java.lang.String s1)voidaddRecipients(javax.mail.Message.RecipientType type, Address[] addresses)java.util.EnumerationgetAllHeaders()java.lang.ObjectgetContent()java.lang.StringgetContentType()javax.activation.DataHandlergetDataHandler()java.lang.StringgetDescription()java.lang.StringgetDisposition()java.lang.StringgetFileName()FlagsgetFlags()Address[]getFrom()java.lang.String[]getHeader(java.lang.String s)java.io.InputStreamgetInputStream()intgetLineCount()java.util.EnumerationgetMatchingHeaders(java.lang.String[] strings)java.util.EnumerationgetNonMatchingHeaders(java.lang.String[] strings)javax.mail.MessagegetRealMessage()java.util.DategetReceivedDate()Address[]getRecipients(javax.mail.Message.RecipientType type)java.util.DategetSentDate()intgetSize()java.lang.StringgetSubject()booleanisMimeType(java.lang.String s)voidremoveHeader(java.lang.String s)Messagereply(boolean b)voidsaveChanges()voidsetContent(java.lang.Object o, java.lang.String s)voidsetContent(Multipart multipart)voidsetDataHandler(javax.activation.DataHandler handler)voidsetDescription(java.lang.String s)voidsetDisposition(java.lang.String s)voidsetFileName(java.lang.String s)voidsetFlags(Flags flags, boolean b)voidsetFrom()voidsetFrom(Address address)voidsetHeader(java.lang.String s, java.lang.String s1)voidsetRecipients(javax.mail.Message.RecipientType type, Address[] addresses)voidsetSentDate(java.util.Date date)voidsetSubject(java.lang.String s)voidsetText(java.lang.String s)voidwriteTo(java.io.OutputStream stream)
-
-
-
Method Detail
-
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
java.lang.String getSubject() throws MessagingException- Throws:
MessagingException
-
setSubject
void setSubject(java.lang.String s) throws MessagingException- Throws:
MessagingException
-
getSentDate
java.util.Date getSentDate() throws MessagingException- Throws:
MessagingException
-
setSentDate
void setSentDate(java.util.Date date) throws MessagingException- Throws:
MessagingException
-
getReceivedDate
java.util.Date getReceivedDate() throws MessagingException- Throws:
MessagingException
-
getFlags
Flags getFlags() throws MessagingException- Throws:
MessagingException
-
setFlags
void setFlags(Flags flags, boolean b) throws MessagingException- Throws:
MessagingException
-
reply
Message reply(boolean b) throws MessagingException
- Throws:
MessagingException
-
saveChanges
void saveChanges() throws MessagingException- Throws:
MessagingException
-
getSize
int getSize() throws MessagingException- Throws:
MessagingException
-
getLineCount
int getLineCount() throws MessagingException- Throws:
MessagingException
-
getContentType
java.lang.String getContentType() throws MessagingException- Throws:
MessagingException
-
isMimeType
boolean isMimeType(java.lang.String s) throws MessagingException- Throws:
MessagingException
-
getDisposition
java.lang.String getDisposition() throws MessagingException- Throws:
MessagingException
-
setDisposition
void setDisposition(java.lang.String s) throws MessagingException- Throws:
MessagingException
-
getDescription
java.lang.String getDescription() throws MessagingException- Throws:
MessagingException
-
setDescription
void setDescription(java.lang.String s) throws MessagingException- Throws:
MessagingException
-
getFileName
java.lang.String getFileName() throws MessagingException- Throws:
MessagingException
-
setFileName
void setFileName(java.lang.String s) throws MessagingException- Throws:
MessagingException
-
getInputStream
java.io.InputStream getInputStream() throws java.io.IOException, MessagingException- Throws:
java.io.IOExceptionMessagingException
-
getDataHandler
javax.activation.DataHandler getDataHandler() throws MessagingException- Throws:
MessagingException
-
getContent
java.lang.Object getContent() throws java.io.IOException, MessagingException- Throws:
java.io.IOExceptionMessagingException
-
setDataHandler
void setDataHandler(javax.activation.DataHandler handler) throws MessagingException- Throws:
MessagingException
-
setContent
void setContent(java.lang.Object o, java.lang.String s) throws MessagingException- Throws:
MessagingException
-
setText
void setText(java.lang.String s) throws MessagingException- Throws:
MessagingException
-
setContent
void setContent(Multipart multipart) throws MessagingException- Throws:
MessagingException
-
writeTo
void writeTo(java.io.OutputStream stream) throws java.io.IOException, MessagingException- Throws:
java.io.IOExceptionMessagingException
-
getHeader
java.lang.String[] getHeader(java.lang.String s) throws MessagingException- Throws:
MessagingException
-
setHeader
void setHeader(java.lang.String s, java.lang.String s1) throws MessagingException- Throws:
MessagingException
-
addHeader
void addHeader(java.lang.String s, java.lang.String s1) throws MessagingException- Throws:
MessagingException
-
removeHeader
void removeHeader(java.lang.String s) throws MessagingException- Throws:
MessagingException
-
getAllHeaders
java.util.Enumeration getAllHeaders() throws MessagingException- Throws:
MessagingException
-
getMatchingHeaders
java.util.Enumeration getMatchingHeaders(java.lang.String[] strings) throws MessagingException- Throws:
MessagingException
-
getNonMatchingHeaders
java.util.Enumeration getNonMatchingHeaders(java.lang.String[] strings) throws MessagingException- Throws:
MessagingException
-
-