alt.javax.mail
Class MessageImpl
java.lang.Object
alt.javax.mail.MessageImpl
- All Implemented Interfaces:
- Message
- Direct Known Subclasses:
- MimeMessageImpl
- public class MessageImpl
- extends java.lang.Object
- implements Message
Constructor Summary |
MessageImpl(javax.mail.Message message)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageImpl
public MessageImpl(javax.mail.Message message)
getRealMessage
public javax.mail.Message getRealMessage()
- Specified by:
getRealMessage
in interface Message
getFrom
public final Address[] getFrom()
throws MessagingException
- Specified by:
getFrom
in interface Message
- Throws:
MessagingException
setFrom
public final void setFrom()
throws MessagingException
- Specified by:
setFrom
in interface Message
- Throws:
MessagingException
setFrom
public final void setFrom(Address address)
throws MessagingException
- Specified by:
setFrom
in interface Message
- Throws:
MessagingException
addFrom
public final void addFrom(Address[] addresses)
throws MessagingException
- Specified by:
addFrom
in interface Message
- Throws:
MessagingException
getRecipients
public final Address[] getRecipients(javax.mail.Message.RecipientType type)
throws MessagingException
- Specified by:
getRecipients
in interface Message
- Throws:
MessagingException
setRecipients
public final void setRecipients(javax.mail.Message.RecipientType type,
Address[] addresses)
throws MessagingException
- Specified by:
setRecipients
in interface Message
- Throws:
MessagingException
addRecipients
public final void addRecipients(javax.mail.Message.RecipientType type,
Address[] addresses)
throws MessagingException
- Specified by:
addRecipients
in interface Message
- Throws:
MessagingException
getSubject
public final java.lang.String getSubject()
throws MessagingException
- Specified by:
getSubject
in interface Message
- Throws:
MessagingException
setSubject
public final void setSubject(java.lang.String s)
throws MessagingException
- Specified by:
setSubject
in interface Message
- Throws:
MessagingException
getSentDate
public final java.util.Date getSentDate()
throws MessagingException
- Specified by:
getSentDate
in interface Message
- Throws:
MessagingException
setSentDate
public final void setSentDate(java.util.Date date)
throws MessagingException
- Specified by:
setSentDate
in interface Message
- Throws:
MessagingException
getReceivedDate
public final java.util.Date getReceivedDate()
throws MessagingException
- Specified by:
getReceivedDate
in interface Message
- Throws:
MessagingException
getFlags
public final Flags getFlags()
throws MessagingException
- Specified by:
getFlags
in interface Message
- Throws:
MessagingException
setFlags
public final void setFlags(Flags flags,
boolean b)
throws MessagingException
- Specified by:
setFlags
in interface Message
- Throws:
MessagingException
reply
public final Message reply(boolean b)
throws MessagingException
- Specified by:
reply
in interface Message
- Throws:
MessagingException
saveChanges
public final void saveChanges()
throws MessagingException
- Specified by:
saveChanges
in interface Message
- Throws:
MessagingException
getSize
public final int getSize()
throws MessagingException
- Specified by:
getSize
in interface Message
- Throws:
MessagingException
getLineCount
public final int getLineCount()
throws MessagingException
- Specified by:
getLineCount
in interface Message
- Throws:
MessagingException
getContentType
public final java.lang.String getContentType()
throws MessagingException
- Specified by:
getContentType
in interface Message
- Throws:
MessagingException
isMimeType
public final boolean isMimeType(java.lang.String s)
throws MessagingException
- Specified by:
isMimeType
in interface Message
- Throws:
MessagingException
getDisposition
public final java.lang.String getDisposition()
throws MessagingException
- Specified by:
getDisposition
in interface Message
- Throws:
MessagingException
setDisposition
public final void setDisposition(java.lang.String s)
throws MessagingException
- Specified by:
setDisposition
in interface Message
- Throws:
MessagingException
getDescription
public final java.lang.String getDescription()
throws MessagingException
- Specified by:
getDescription
in interface Message
- Throws:
MessagingException
setDescription
public final void setDescription(java.lang.String s)
throws MessagingException
- Specified by:
setDescription
in interface Message
- Throws:
MessagingException
getFileName
public final java.lang.String getFileName()
throws MessagingException
- Specified by:
getFileName
in interface Message
- Throws:
MessagingException
setFileName
public final void setFileName(java.lang.String s)
throws MessagingException
- Specified by:
setFileName
in interface Message
- Throws:
MessagingException
getInputStream
public final java.io.InputStream getInputStream()
throws java.io.IOException,
MessagingException
- Specified by:
getInputStream
in interface Message
- Throws:
java.io.IOException
MessagingException
getDataHandler
public final javax.activation.DataHandler getDataHandler()
throws MessagingException
- Specified by:
getDataHandler
in interface Message
- Throws:
MessagingException
getContent
public final java.lang.Object getContent()
throws java.io.IOException,
MessagingException
- Specified by:
getContent
in interface Message
- Throws:
java.io.IOException
MessagingException
setDataHandler
public final void setDataHandler(javax.activation.DataHandler handler)
throws MessagingException
- Specified by:
setDataHandler
in interface Message
- Throws:
MessagingException
setContent
public final void setContent(java.lang.Object o,
java.lang.String s)
throws MessagingException
- Specified by:
setContent
in interface Message
- Throws:
MessagingException
setText
public final void setText(java.lang.String s)
throws MessagingException
- Specified by:
setText
in interface Message
- Throws:
MessagingException
setContent
public final void setContent(Multipart multipart)
throws MessagingException
- Specified by:
setContent
in interface Message
- Throws:
MessagingException
writeTo
public final void writeTo(java.io.OutputStream stream)
throws java.io.IOException,
MessagingException
- Specified by:
writeTo
in interface Message
- Throws:
java.io.IOException
MessagingException
getHeader
public final java.lang.String[] getHeader(java.lang.String s)
throws MessagingException
- Specified by:
getHeader
in interface Message
- Throws:
MessagingException
setHeader
public final void setHeader(java.lang.String s,
java.lang.String s1)
throws MessagingException
- Specified by:
setHeader
in interface Message
- Throws:
MessagingException
addHeader
public final void addHeader(java.lang.String s,
java.lang.String s1)
throws MessagingException
- Specified by:
addHeader
in interface Message
- Throws:
MessagingException
removeHeader
public final void removeHeader(java.lang.String s)
throws MessagingException
- Specified by:
removeHeader
in interface Message
- Throws:
MessagingException
getAllHeaders
public final java.util.Enumeration getAllHeaders()
throws MessagingException
- Specified by:
getAllHeaders
in interface Message
- Throws:
MessagingException
getMatchingHeaders
public final java.util.Enumeration getMatchingHeaders(java.lang.String[] strings)
throws MessagingException
- Specified by:
getMatchingHeaders
in interface Message
- Throws:
MessagingException
getNonMatchingHeaders
public final java.util.Enumeration getNonMatchingHeaders(java.lang.String[] strings)
throws MessagingException
- Specified by:
getNonMatchingHeaders
in interface Message
- Throws:
MessagingException
Copyright © 2002 Mock Objects. All Rights Reserved.