alt.javax.mail.internet

Class MimeMessageImpl

Implemented Interfaces:
Message, MimeMessage

public class MimeMessageImpl
extends MessageImpl
implements MimeMessage

Constructor Summary

MimeMessageImpl(Session session)

Method Summary

void
addHeaderLine(String s)
void
addRecipient(javax.mail.Message.RecipientType type, Address address)
void
addRecipients(javax.mail.Message.RecipientType type, String s)
Enumeration
getAllHeaderLines()
Address[]
getAllRecipients()
String
getContentID()
String[]
getContentLanguage()
String
getContentMD5()
String
getEncoding()
Folder
getFolder()
String
getHeader(String s, String s1)
Enumeration
getMatchingHeaderLines(String[] strings)
String
getMessageID()
int
getMessageNumber()
Enumeration
getNonMatchingHeaderLines(String[] strings)
InputStream
getRawInputStream()
Address[]
getReplyTo()
boolean
isExpunged()
boolean
isSet(Flags.Flag flag)
boolean
match(SearchTerm term)
void
setContentID(String s)
void
setContentLanguage(String[] strings)
void
setContentMD5(String s)
void
setDescription(String s, String s1)
void
setFlag(Flags.Flag flag, boolean b)
void
setRecipient(javax.mail.Message.RecipientType type, Address address)
void
setRecipients(javax.mail.Message.RecipientType type, String s)
void
setReplyTo(Address[] addresses)
void
setSubject(String s, String s1)
void
setText(String s, String s1)
void
writeTo(OutputStream stream, String[] strings)

Methods inherited from class alt.javax.mail.MessageImpl

addFrom, addHeader, addRecipients, getAllHeaders, getContent, getContentType, getDataHandler, getDescription, getDisposition, getFileName, getFlags, getFrom, getHeader, getInputStream, getLineCount, getMatchingHeaders, getNonMatchingHeaders, getRealMessage, getReceivedDate, getRecipients, getSentDate, getSize, getSubject, isMimeType, removeHeader, reply, saveChanges, setContent, setContent, setDataHandler, setDescription, setDisposition, setFileName, setFlags, setFrom, setFrom, setHeader, setRecipients, setSentDate, setSubject, setText, writeTo

Constructor Details

MimeMessageImpl

public MimeMessageImpl(Session session)

Method Details

addHeaderLine

public void addHeaderLine(String s)
            throws MessagingException
Specified by:
addHeaderLine in interface MimeMessage

addRecipient

public void addRecipient(javax.mail.Message.RecipientType type,
                         Address address)
            throws MessagingException
Specified by:
addRecipient in interface MimeMessage

addRecipients

public void addRecipients(javax.mail.Message.RecipientType type,
                          String s)
            throws MessagingException
Specified by:
addRecipients in interface MimeMessage

getAllHeaderLines

public Enumeration getAllHeaderLines()
            throws MessagingException
Specified by:
getAllHeaderLines in interface MimeMessage

getAllRecipients

public Address[] getAllRecipients()
            throws MessagingException
Specified by:
getAllRecipients in interface MimeMessage

getContentID

public String getContentID()
            throws MessagingException
Specified by:
getContentID in interface MimeMessage

getContentLanguage

public String[] getContentLanguage()
            throws MessagingException
Specified by:
getContentLanguage in interface MimeMessage

getContentMD5

public String getContentMD5()
            throws MessagingException
Specified by:
getContentMD5 in interface MimeMessage

getEncoding

public String getEncoding()
            throws MessagingException
Specified by:
getEncoding in interface MimeMessage

getFolder

public Folder getFolder()
Specified by:
getFolder in interface MimeMessage

getHeader

public String getHeader(String s,
                        String s1)
            throws MessagingException
Specified by:
getHeader in interface MimeMessage

getMatchingHeaderLines

public Enumeration getMatchingHeaderLines(String[] strings)
            throws MessagingException
Specified by:
getMatchingHeaderLines in interface MimeMessage

getMessageID

public String getMessageID()
            throws MessagingException
Specified by:
getMessageID in interface MimeMessage

getMessageNumber

public int getMessageNumber()
Specified by:
getMessageNumber in interface MimeMessage

getNonMatchingHeaderLines

public Enumeration getNonMatchingHeaderLines(String[] strings)
            throws MessagingException
Specified by:
getNonMatchingHeaderLines in interface MimeMessage

getRawInputStream

public InputStream getRawInputStream()
            throws MessagingException
Specified by:
getRawInputStream in interface MimeMessage

getReplyTo

public Address[] getReplyTo()
            throws MessagingException
Specified by:
getReplyTo in interface MimeMessage

isExpunged

public boolean isExpunged()
Specified by:
isExpunged in interface MimeMessage

isSet

public boolean isSet(Flags.Flag flag)
            throws MessagingException
Specified by:
isSet in interface MimeMessage

match

public boolean match(SearchTerm term)
            throws MessagingException
Specified by:
match in interface MimeMessage

setContentID

public void setContentID(String s)
            throws MessagingException
Specified by:
setContentID in interface MimeMessage

setContentLanguage

public void setContentLanguage(String[] strings)
            throws MessagingException
Specified by:
setContentLanguage in interface MimeMessage

setContentMD5

public void setContentMD5(String s)
            throws MessagingException
Specified by:
setContentMD5 in interface MimeMessage

setDescription

public void setDescription(String s,
                           String s1)
            throws MessagingException
Specified by:
setDescription in interface MimeMessage

setFlag

public void setFlag(Flags.Flag flag,
                    boolean b)
            throws MessagingException
Specified by:
setFlag in interface MimeMessage

setRecipient

public void setRecipient(javax.mail.Message.RecipientType type,
                         Address address)
            throws MessagingException
Specified by:
setRecipient in interface MimeMessage

setRecipients

public void setRecipients(javax.mail.Message.RecipientType type,
                          String s)
            throws MessagingException
Specified by:
setRecipients in interface MimeMessage

setReplyTo

public void setReplyTo(Address[] addresses)
            throws MessagingException
Specified by:
setReplyTo in interface MimeMessage

setSubject

public void setSubject(String s,
                       String s1)
            throws MessagingException
Specified by:
setSubject in interface MimeMessage

setText

public void setText(String s,
                    String s1)
            throws MessagingException
Specified by:
setText in interface MimeMessage

writeTo

public void writeTo(OutputStream stream,
                    String[] strings)
            throws IOException,
                   MessagingException
Specified by:
writeTo in interface MimeMessage

Copyright © 2002 Mock Objects. All Rights Reserved.