public class MessageImpl extends java.lang.Object implements Message
Constructor and Description |
---|
MessageImpl(javax.mail.Message message) |
Modifier and Type | Method and Description |
---|---|
void |
addFrom(Address[] addresses) |
void |
addHeader(java.lang.String s,
java.lang.String s1) |
void |
addRecipients(javax.mail.Message.RecipientType type,
Address[] addresses) |
java.util.Enumeration |
getAllHeaders() |
java.lang.Object |
getContent() |
java.lang.String |
getContentType() |
javax.activation.DataHandler |
getDataHandler() |
java.lang.String |
getDescription() |
java.lang.String |
getDisposition() |
java.lang.String |
getFileName() |
Flags |
getFlags() |
Address[] |
getFrom() |
java.lang.String[] |
getHeader(java.lang.String s) |
java.io.InputStream |
getInputStream() |
int |
getLineCount() |
java.util.Enumeration |
getMatchingHeaders(java.lang.String[] strings) |
java.util.Enumeration |
getNonMatchingHeaders(java.lang.String[] strings) |
javax.mail.Message |
getRealMessage() |
java.util.Date |
getReceivedDate() |
Address[] |
getRecipients(javax.mail.Message.RecipientType type) |
java.util.Date |
getSentDate() |
int |
getSize() |
java.lang.String |
getSubject() |
boolean |
isMimeType(java.lang.String s) |
void |
removeHeader(java.lang.String s) |
Message |
reply(boolean b) |
void |
saveChanges() |
void |
setContent(Multipart multipart) |
void |
setContent(java.lang.Object o,
java.lang.String s) |
void |
setDataHandler(javax.activation.DataHandler handler) |
void |
setDescription(java.lang.String s) |
void |
setDisposition(java.lang.String s) |
void |
setFileName(java.lang.String s) |
void |
setFlags(Flags flags,
boolean b) |
void |
setFrom() |
void |
setFrom(Address address) |
void |
setHeader(java.lang.String s,
java.lang.String s1) |
void |
setRecipients(javax.mail.Message.RecipientType type,
Address[] addresses) |
void |
setSentDate(java.util.Date date) |
void |
setSubject(java.lang.String s) |
void |
setText(java.lang.String s) |
void |
writeTo(java.io.OutputStream stream) |
public javax.mail.Message getRealMessage()
getRealMessage
in interface Message
public final Address[] getFrom() throws MessagingException
public final void setFrom() throws MessagingException
public final void setFrom(Address address) throws MessagingException
public final void addFrom(Address[] addresses) throws MessagingException
public final Address[] getRecipients(javax.mail.Message.RecipientType type) throws MessagingException
getRecipients
in interface Message
MessagingException
public final void setRecipients(javax.mail.Message.RecipientType type, Address[] addresses) throws MessagingException
setRecipients
in interface Message
MessagingException
public final void addRecipients(javax.mail.Message.RecipientType type, Address[] addresses) throws MessagingException
addRecipients
in interface Message
MessagingException
public final java.lang.String getSubject() throws MessagingException
getSubject
in interface Message
MessagingException
public final void setSubject(java.lang.String s) throws MessagingException
setSubject
in interface Message
MessagingException
public final java.util.Date getSentDate() throws MessagingException
getSentDate
in interface Message
MessagingException
public final void setSentDate(java.util.Date date) throws MessagingException
setSentDate
in interface Message
MessagingException
public final java.util.Date getReceivedDate() throws MessagingException
getReceivedDate
in interface Message
MessagingException
public final Flags getFlags() throws MessagingException
public final void setFlags(Flags flags, boolean b) throws MessagingException
public final Message reply(boolean b) throws MessagingException
public final void saveChanges() throws MessagingException
saveChanges
in interface Message
MessagingException
public final int getSize() throws MessagingException
public final int getLineCount() throws MessagingException
getLineCount
in interface Message
MessagingException
public final java.lang.String getContentType() throws MessagingException
getContentType
in interface Message
MessagingException
public final boolean isMimeType(java.lang.String s) throws MessagingException
isMimeType
in interface Message
MessagingException
public final java.lang.String getDisposition() throws MessagingException
getDisposition
in interface Message
MessagingException
public final void setDisposition(java.lang.String s) throws MessagingException
setDisposition
in interface Message
MessagingException
public final java.lang.String getDescription() throws MessagingException
getDescription
in interface Message
MessagingException
public final void setDescription(java.lang.String s) throws MessagingException
setDescription
in interface Message
MessagingException
public final java.lang.String getFileName() throws MessagingException
getFileName
in interface Message
MessagingException
public final void setFileName(java.lang.String s) throws MessagingException
setFileName
in interface Message
MessagingException
public final java.io.InputStream getInputStream() throws java.io.IOException, MessagingException
getInputStream
in interface Message
java.io.IOException
MessagingException
public final javax.activation.DataHandler getDataHandler() throws MessagingException
getDataHandler
in interface Message
MessagingException
public final java.lang.Object getContent() throws java.io.IOException, MessagingException
getContent
in interface Message
java.io.IOException
MessagingException
public final void setDataHandler(javax.activation.DataHandler handler) throws MessagingException
setDataHandler
in interface Message
MessagingException
public final void setContent(java.lang.Object o, java.lang.String s) throws MessagingException
setContent
in interface Message
MessagingException
public final void setText(java.lang.String s) throws MessagingException
public final void setContent(Multipart multipart) throws MessagingException
setContent
in interface Message
MessagingException
public final void writeTo(java.io.OutputStream stream) throws java.io.IOException, MessagingException
public final java.lang.String[] getHeader(java.lang.String s) throws MessagingException
public final void setHeader(java.lang.String s, java.lang.String s1) throws MessagingException
public final void addHeader(java.lang.String s, java.lang.String s1) throws MessagingException
public final void removeHeader(java.lang.String s) throws MessagingException
removeHeader
in interface Message
MessagingException
public final java.util.Enumeration getAllHeaders() throws MessagingException
getAllHeaders
in interface Message
MessagingException
public final java.util.Enumeration getMatchingHeaders(java.lang.String[] strings) throws MessagingException
getMatchingHeaders
in interface Message
MessagingException
public final java.util.Enumeration getNonMatchingHeaders(java.lang.String[] strings) throws MessagingException
getNonMatchingHeaders
in interface Message
MessagingException
Copyright © 2002 Mock Objects. All Rights Reserved.