Package alt.javax.mail.internet
Class MimeMessageImpl
- java.lang.Object
-
- alt.javax.mail.MessageImpl
-
- alt.javax.mail.internet.MimeMessageImpl
-
- All Implemented Interfaces:
MimeMessage,Message
public class MimeMessageImpl extends MessageImpl implements MimeMessage
-
-
Constructor Summary
Constructors Constructor Description MimeMessageImpl(Session session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddHeaderLine(java.lang.String s)voidaddRecipient(javax.mail.Message.RecipientType type, Address address)voidaddRecipients(javax.mail.Message.RecipientType type, java.lang.String s)java.util.EnumerationgetAllHeaderLines()Address[]getAllRecipients()java.lang.StringgetContentID()java.lang.String[]getContentLanguage()java.lang.StringgetContentMD5()java.lang.StringgetEncoding()FoldergetFolder()java.lang.StringgetHeader(java.lang.String s, java.lang.String s1)java.util.EnumerationgetMatchingHeaderLines(java.lang.String[] strings)java.lang.StringgetMessageID()intgetMessageNumber()java.util.EnumerationgetNonMatchingHeaderLines(java.lang.String[] strings)java.io.InputStreamgetRawInputStream()Address[]getReplyTo()booleanisExpunged()booleanisSet(Flags.Flag flag)booleanmatch(SearchTerm term)voidsetContentID(java.lang.String s)voidsetContentLanguage(java.lang.String[] strings)voidsetContentMD5(java.lang.String s)voidsetDescription(java.lang.String s, java.lang.String s1)voidsetFlag(Flags.Flag flag, boolean b)voidsetRecipient(javax.mail.Message.RecipientType type, Address address)voidsetRecipients(javax.mail.Message.RecipientType type, java.lang.String s)voidsetReplyTo(Address[] addresses)voidsetSubject(java.lang.String s, java.lang.String s1)voidsetText(java.lang.String s, java.lang.String s1)voidwriteTo(java.io.OutputStream stream, java.lang.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
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface alt.javax.mail.Message
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 Detail
-
MimeMessageImpl
public MimeMessageImpl(Session session)
-
-
Method Detail
-
setRecipient
public void setRecipient(javax.mail.Message.RecipientType type, Address address) throws MessagingException- Specified by:
setRecipientin interfaceMimeMessage- Throws:
MessagingException
-
addRecipient
public void addRecipient(javax.mail.Message.RecipientType type, Address address) throws MessagingException- Specified by:
addRecipientin interfaceMimeMessage- Throws:
MessagingException
-
setFlag
public void setFlag(Flags.Flag flag, boolean b) throws MessagingException- Specified by:
setFlagin interfaceMimeMessage- Throws:
MessagingException
-
getMessageNumber
public int getMessageNumber()
- Specified by:
getMessageNumberin interfaceMimeMessage
-
getFolder
public Folder getFolder()
- Specified by:
getFolderin interfaceMimeMessage
-
isExpunged
public boolean isExpunged()
- Specified by:
isExpungedin interfaceMimeMessage
-
match
public boolean match(SearchTerm term) throws MessagingException- Specified by:
matchin interfaceMimeMessage- Throws:
MessagingException
-
getAllRecipients
public Address[] getAllRecipients() throws MessagingException- Specified by:
getAllRecipientsin interfaceMimeMessage- Throws:
MessagingException
-
setRecipients
public void setRecipients(javax.mail.Message.RecipientType type, java.lang.String s) throws MessagingException- Specified by:
setRecipientsin interfaceMimeMessage- Throws:
MessagingException
-
addRecipients
public void addRecipients(javax.mail.Message.RecipientType type, java.lang.String s) throws MessagingException- Specified by:
addRecipientsin interfaceMimeMessage- Throws:
MessagingException
-
getReplyTo
public Address[] getReplyTo() throws MessagingException- Specified by:
getReplyToin interfaceMimeMessage- Throws:
MessagingException
-
setReplyTo
public void setReplyTo(Address[] addresses) throws MessagingException- Specified by:
setReplyToin interfaceMimeMessage- Throws:
MessagingException
-
setSubject
public void setSubject(java.lang.String s, java.lang.String s1) throws MessagingException- Specified by:
setSubjectin interfaceMimeMessage- Throws:
MessagingException
-
getEncoding
public java.lang.String getEncoding() throws MessagingException- Specified by:
getEncodingin interfaceMimeMessage- Throws:
MessagingException
-
getContentID
public java.lang.String getContentID() throws MessagingException- Specified by:
getContentIDin interfaceMimeMessage- Throws:
MessagingException
-
setContentID
public void setContentID(java.lang.String s) throws MessagingException- Specified by:
setContentIDin interfaceMimeMessage- Throws:
MessagingException
-
getContentMD5
public java.lang.String getContentMD5() throws MessagingException- Specified by:
getContentMD5in interfaceMimeMessage- Throws:
MessagingException
-
setContentMD5
public void setContentMD5(java.lang.String s) throws MessagingException- Specified by:
setContentMD5in interfaceMimeMessage- Throws:
MessagingException
-
setDescription
public void setDescription(java.lang.String s, java.lang.String s1) throws MessagingException- Specified by:
setDescriptionin interfaceMimeMessage- Throws:
MessagingException
-
getContentLanguage
public java.lang.String[] getContentLanguage() throws MessagingException- Specified by:
getContentLanguagein interfaceMimeMessage- Throws:
MessagingException
-
setContentLanguage
public void setContentLanguage(java.lang.String[] strings) throws MessagingException- Specified by:
setContentLanguagein interfaceMimeMessage- Throws:
MessagingException
-
getMessageID
public java.lang.String getMessageID() throws MessagingException- Specified by:
getMessageIDin interfaceMimeMessage- Throws:
MessagingException
-
getRawInputStream
public java.io.InputStream getRawInputStream() throws MessagingException- Specified by:
getRawInputStreamin interfaceMimeMessage- Throws:
MessagingException
-
setText
public void setText(java.lang.String s, java.lang.String s1) throws MessagingException- Specified by:
setTextin interfaceMimeMessage- Throws:
MessagingException
-
writeTo
public void writeTo(java.io.OutputStream stream, java.lang.String[] strings) throws java.io.IOException, MessagingException- Specified by:
writeToin interfaceMimeMessage- Throws:
java.io.IOExceptionMessagingException
-
getHeader
public java.lang.String getHeader(java.lang.String s, java.lang.String s1) throws MessagingException- Specified by:
getHeaderin interfaceMimeMessage- Throws:
MessagingException
-
addHeaderLine
public void addHeaderLine(java.lang.String s) throws MessagingException- Specified by:
addHeaderLinein interfaceMimeMessage- Throws:
MessagingException
-
getAllHeaderLines
public java.util.Enumeration getAllHeaderLines() throws MessagingException- Specified by:
getAllHeaderLinesin interfaceMimeMessage- Throws:
MessagingException
-
getMatchingHeaderLines
public java.util.Enumeration getMatchingHeaderLines(java.lang.String[] strings) throws MessagingException- Specified by:
getMatchingHeaderLinesin interfaceMimeMessage- Throws:
MessagingException
-
getNonMatchingHeaderLines
public java.util.Enumeration getNonMatchingHeaderLines(java.lang.String[] strings) throws MessagingException- Specified by:
getNonMatchingHeaderLinesin interfaceMimeMessage- Throws:
MessagingException
-
isSet
public boolean isSet(Flags.Flag flag) throws MessagingException- Specified by:
isSetin interfaceMimeMessage- Throws:
MessagingException
-
-