alt.javax.mail

Interface Message

Known Subinterfaces:
MimeMessage
Known Implementing Classes:
MessageImpl, MimeMessageImpl, MockMessage, MockMimeMessage

public interface 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)

Method Details

addFrom

public void addFrom(Address[] addresses)
            throws MessagingException

addHeader

public void addHeader(String s,
                      String s1)
            throws MessagingException

addRecipients

public void addRecipients(javax.mail.Message.RecipientType type,
                          Address[] addresses)
            throws MessagingException

getAllHeaders

public Enumeration getAllHeaders()
            throws MessagingException

getContent

public Object getContent()
            throws IOException,
                   MessagingException

getContentType

public String getContentType()
            throws MessagingException

getDataHandler

public javax.activation.DataHandler getDataHandler()
            throws MessagingException

getDescription

public String getDescription()
            throws MessagingException

getDisposition

public String getDisposition()
            throws MessagingException

getFileName

public String getFileName()
            throws MessagingException

getFlags

public Flags getFlags()
            throws MessagingException

getFrom

public Address[] getFrom()
            throws MessagingException

getHeader

public String[] getHeader(String s)
            throws MessagingException

getInputStream

public InputStream getInputStream()
            throws IOException,
                   MessagingException

getLineCount

public int getLineCount()
            throws MessagingException

getMatchingHeaders

public Enumeration getMatchingHeaders(String[] strings)
            throws MessagingException

getNonMatchingHeaders

public Enumeration getNonMatchingHeaders(String[] strings)
            throws MessagingException

getRealMessage

public javax.mail.Message getRealMessage()

getReceivedDate

public Date getReceivedDate()
            throws MessagingException

getRecipients

public Address[] getRecipients(javax.mail.Message.RecipientType type)
            throws MessagingException

getSentDate

public Date getSentDate()
            throws MessagingException

getSize

public int getSize()
            throws MessagingException

getSubject

public String getSubject()
            throws MessagingException

isMimeType

public boolean isMimeType(String s)
            throws MessagingException

removeHeader

public void removeHeader(String s)
            throws MessagingException

reply

public Message reply(boolean b)
            throws MessagingException

saveChanges

public void saveChanges()
            throws MessagingException

setContent

public void setContent(Multipart multipart)
            throws MessagingException

setContent

public void setContent(Object o,
                       String s)
            throws MessagingException

setDataHandler

public void setDataHandler(javax.activation.DataHandler handler)
            throws MessagingException

setDescription

public void setDescription(String s)
            throws MessagingException

setDisposition

public void setDisposition(String s)
            throws MessagingException

setFileName

public void setFileName(String s)
            throws MessagingException

setFlags

public void setFlags(Flags flags,
                     boolean b)
            throws MessagingException

setFrom

public void setFrom()
            throws MessagingException

setFrom

public void setFrom(Address address)
            throws MessagingException

setHeader

public void setHeader(String s,
                      String s1)
            throws MessagingException

setRecipients

public void setRecipients(javax.mail.Message.RecipientType type,
                          Address[] addresses)
            throws MessagingException

setSentDate

public void setSentDate(Date date)
            throws MessagingException

setSubject

public void setSubject(String s)
            throws MessagingException

setText

public void setText(String s)
            throws MessagingException

writeTo

public void writeTo(OutputStream stream)
            throws IOException,
                   MessagingException

Copyright © 2002 Mock Objects. All Rights Reserved.