alt.javax.mail

Class MessageImpl

Implemented Interfaces:
Message
Known Direct Subclasses:
MimeMessageImpl

public class MessageImpl
extends java.lang.Object
implements Message

Constructor Summary

MessageImpl(javax.mail.Message message)

Method Summary

void
addFrom(Address[] addresses)
void
addHeader(String s, String s1)
void
addRecipients(javax.mail.Message.RecipientType type, Address[] addresses)
Enumeration
getAllHeaders()
Object
getContent()
String
getContentType()
javax.activation.DataHandler
getDataHandler()
String
getDescription()
String
getDisposition()
String
getFileName()
Flags
getFlags()
Address[]
getFrom()
String[]
getHeader(String s)
InputStream
getInputStream()
int
getLineCount()
Enumeration
getMatchingHeaders(String[] strings)
Enumeration
getNonMatchingHeaders(String[] strings)
javax.mail.Message
getRealMessage()
Date
getReceivedDate()
Address[]
getRecipients(javax.mail.Message.RecipientType type)
Date
getSentDate()
int
getSize()
String
getSubject()
boolean
isMimeType(String s)
void
removeHeader(String s)
Message
reply(boolean b)
void
saveChanges()
void
setContent(Multipart multipart)
void
setContent(Object o, String s)
void
setDataHandler(javax.activation.DataHandler handler)
void
setDescription(String s)
void
setDisposition(String s)
void
setFileName(String s)
void
setFlags(Flags flags, boolean b)
void
setFrom()
void
setFrom(Address address)
void
setHeader(String s, String s1)
void
setRecipients(javax.mail.Message.RecipientType type, Address[] addresses)
void
setSentDate(Date date)
void
setSubject(String s)
void
setText(String s)
void
writeTo(OutputStream stream)

Constructor Details

MessageImpl

public MessageImpl(javax.mail.Message message)

Method Details

addFrom

public final void addFrom(Address[] addresses)
            throws MessagingException
Specified by:
addFrom in interface Message

addHeader

public final void addHeader(String s,
                            String s1)
            throws MessagingException
Specified by:
addHeader in interface Message

addRecipients

public final void addRecipients(javax.mail.Message.RecipientType type,
                                Address[] addresses)
            throws MessagingException
Specified by:
addRecipients in interface Message

getAllHeaders

public final Enumeration getAllHeaders()
            throws MessagingException
Specified by:
getAllHeaders in interface Message

getContent

public final Object getContent()
            throws IOException,
                   MessagingException
Specified by:
getContent in interface Message

getContentType

public final String getContentType()
            throws MessagingException
Specified by:
getContentType in interface Message

getDataHandler

public final javax.activation.DataHandler getDataHandler()
            throws MessagingException
Specified by:
getDataHandler in interface Message

getDescription

public final String getDescription()
            throws MessagingException
Specified by:
getDescription in interface Message

getDisposition

public final String getDisposition()
            throws MessagingException
Specified by:
getDisposition in interface Message

getFileName

public final String getFileName()
            throws MessagingException
Specified by:
getFileName in interface Message

getFlags

public final Flags getFlags()
            throws MessagingException
Specified by:
getFlags in interface Message

getFrom

public final Address[] getFrom()
            throws MessagingException
Specified by:
getFrom in interface Message

getHeader

public final String[] getHeader(String s)
            throws MessagingException
Specified by:
getHeader in interface Message

getInputStream

public final InputStream getInputStream()
            throws IOException,
                   MessagingException
Specified by:
getInputStream in interface Message

getLineCount

public final int getLineCount()
            throws MessagingException
Specified by:
getLineCount in interface Message

getMatchingHeaders

public final Enumeration getMatchingHeaders(String[] strings)
            throws MessagingException
Specified by:
getMatchingHeaders in interface Message

getNonMatchingHeaders

public final Enumeration getNonMatchingHeaders(String[] strings)
            throws MessagingException
Specified by:
getNonMatchingHeaders in interface Message

getRealMessage

public javax.mail.Message getRealMessage()
Specified by:
getRealMessage in interface Message

getReceivedDate

public final Date getReceivedDate()
            throws MessagingException
Specified by:
getReceivedDate in interface Message

getRecipients

public final Address[] getRecipients(javax.mail.Message.RecipientType type)
            throws MessagingException
Specified by:
getRecipients in interface Message

getSentDate

public final Date getSentDate()
            throws MessagingException
Specified by:
getSentDate in interface Message

getSize

public final int getSize()
            throws MessagingException
Specified by:
getSize in interface Message

getSubject

public final String getSubject()
            throws MessagingException
Specified by:
getSubject in interface Message

isMimeType

public final boolean isMimeType(String s)
            throws MessagingException
Specified by:
isMimeType in interface Message

removeHeader

public final void removeHeader(String s)
            throws MessagingException
Specified by:
removeHeader in interface Message

reply

public final Message reply(boolean b)
            throws MessagingException
Specified by:
reply in interface Message

saveChanges

public final void saveChanges()
            throws MessagingException
Specified by:
saveChanges in interface Message

setContent

public final void setContent(Multipart multipart)
            throws MessagingException
Specified by:
setContent in interface Message

setContent

public final void setContent(Object o,
                             String s)
            throws MessagingException
Specified by:
setContent in interface Message

setDataHandler

public final void setDataHandler(javax.activation.DataHandler handler)
            throws MessagingException
Specified by:
setDataHandler in interface Message

setDescription

public final void setDescription(String s)
            throws MessagingException
Specified by:
setDescription in interface Message

setDisposition

public final void setDisposition(String s)
            throws MessagingException
Specified by:
setDisposition in interface Message

setFileName

public final void setFileName(String s)
            throws MessagingException
Specified by:
setFileName in interface Message

setFlags

public final void setFlags(Flags flags,
                           boolean b)
            throws MessagingException
Specified by:
setFlags in interface Message

setFrom

public final void setFrom()
            throws MessagingException
Specified by:
setFrom in interface Message

setFrom

public final void setFrom(Address address)
            throws MessagingException
Specified by:
setFrom in interface Message

setHeader

public final void setHeader(String s,
                            String s1)
            throws MessagingException
Specified by:
setHeader in interface Message

setRecipients

public final void setRecipients(javax.mail.Message.RecipientType type,
                                Address[] addresses)
            throws MessagingException
Specified by:
setRecipients in interface Message

setSentDate

public final void setSentDate(Date date)
            throws MessagingException
Specified by:
setSentDate in interface Message

setSubject

public final void setSubject(String s)
            throws MessagingException
Specified by:
setSubject in interface Message

setText

public final void setText(String s)
            throws MessagingException
Specified by:
setText in interface Message

writeTo

public final void writeTo(OutputStream stream)
            throws IOException,
                   MessagingException
Specified by:
writeTo in interface Message

Copyright © 2002 Mock Objects. All Rights Reserved.