org.hedwig.core
Class MimeEnvelope

java.lang.Object
  |
  +--javax.mail.Message
        |
        +--javax.mail.internet.MimeMessage
              |
              +--org.hedwig.core.MimeEnvelope
All Implemented Interfaces:
IEnvelope, javax.mail.internet.MimePart, javax.mail.Part

public class MimeEnvelope
extends javax.mail.internet.MimeMessage
implements IEnvelope

Author:
Keith Gaddis enclosing_type

Field Summary
 
Fields inherited from class javax.mail.internet.MimeMessage
content, contentStream, dh, flags, headers, modified, saved
 
Fields inherited from class javax.mail.Message
expunged, folder, msgnum, session
 
Fields inherited from interface javax.mail.Part
ATTACHMENT, INLINE
 
Constructor Summary
MimeEnvelope()
           
MimeEnvelope(javax.mail.Folder arg0, java.io.InputStream arg1, int arg2)
          Constructor for MimeEnvelope.
MimeEnvelope(javax.mail.Folder arg0, int arg1)
          Constructor for MimeEnvelope.
MimeEnvelope(javax.mail.Folder arg0, javax.mail.internet.InternetHeaders arg1, byte[] arg2, int arg3)
          Constructor for MimeEnvelope.
MimeEnvelope(javax.mail.internet.MimeMessage arg0)
          Constructor for MimeEnvelope.
MimeEnvelope(javax.mail.Session arg0)
          Constructor for MimeEnvelope.
MimeEnvelope(javax.mail.Session arg0, java.io.InputStream arg1)
          Constructor for MimeEnvelope.
 
Method Summary
 void addAttribute(java.lang.String arg0, java.lang.String arg1)
           
 java.lang.String getAttribute(java.lang.String name)
           
 java.util.Map getAttributes()
           
 java.util.List getParts()
           
 boolean isViewed()
           
 void setViewed(boolean unread)
           
 
Methods inherited from class javax.mail.internet.MimeMessage
addFrom, addHeader, addHeaderLine, addRecipients, addRecipients, createInternetHeaders, getAllHeaderLines, getAllHeaders, getAllRecipients, getContent, getContentID, getContentLanguage, getContentMD5, getContentStream, getContentType, getDataHandler, getDescription, getDisposition, getEncoding, getFileName, getFlags, getFrom, getHeader, getHeader, getInputStream, getLineCount, getMatchingHeaderLines, getMatchingHeaders, getMessageID, getNonMatchingHeaderLines, getNonMatchingHeaders, getRawInputStream, getReceivedDate, getRecipients, getReplyTo, getSender, getSentDate, getSize, getSubject, isMimeType, isSet, parse, removeHeader, reply, saveChanges, setContent, setContent, setContentID, setContentLanguage, setContentMD5, setDataHandler, setDescription, setDescription, setDisposition, setFileName, setFlags, setFrom, setFrom, setHeader, setRecipients, setRecipients, setReplyTo, setSender, setSentDate, setSubject, setSubject, setText, setText, updateHeaders, writeTo, writeTo
 
Methods inherited from class javax.mail.Message
addRecipient, getFolder, getMessageNumber, isExpunged, match, setExpunged, setFlag, setMessageNumber, setRecipient
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MimeEnvelope

public MimeEnvelope(javax.mail.Session arg0)
Constructor for MimeEnvelope.

Parameters:
arg0 -

MimeEnvelope

public MimeEnvelope(javax.mail.Session arg0,
                    java.io.InputStream arg1)
             throws javax.mail.MessagingException
Constructor for MimeEnvelope.

Parameters:
arg0 -
arg1 -
Throws:
javax.mail.MessagingException

MimeEnvelope

public MimeEnvelope(javax.mail.internet.MimeMessage arg0)
             throws javax.mail.MessagingException
Constructor for MimeEnvelope.

Parameters:
arg0 -
Throws:
javax.mail.MessagingException

MimeEnvelope

public MimeEnvelope(javax.mail.Folder arg0,
                    int arg1)
Constructor for MimeEnvelope.

Parameters:
arg0 -
arg1 -

MimeEnvelope

public MimeEnvelope(javax.mail.Folder arg0,
                    java.io.InputStream arg1,
                    int arg2)
             throws javax.mail.MessagingException
Constructor for MimeEnvelope.

Parameters:
arg0 -
arg1 -
arg2 -
Throws:
javax.mail.MessagingException

MimeEnvelope

public MimeEnvelope(javax.mail.Folder arg0,
                    javax.mail.internet.InternetHeaders arg1,
                    byte[] arg2,
                    int arg3)
             throws javax.mail.MessagingException
Constructor for MimeEnvelope.

Parameters:
arg0 -
arg1 -
arg2 -
arg3 -
Throws:
javax.mail.MessagingException

MimeEnvelope

public MimeEnvelope()
Method Detail

getAttributes

public java.util.Map getAttributes()
Specified by:
getAttributes in interface IEnvelope
See Also:
IEnvelope.getAttributes()

getParts

public java.util.List getParts()
Specified by:
getParts in interface IEnvelope
See Also:
IEnvelope.getParts()

getAttribute

public java.lang.String getAttribute(java.lang.String name)
Specified by:
getAttribute in interface IEnvelope
See Also:
IEnvelope.getAttribute(java.lang.String)

addAttribute

public void addAttribute(java.lang.String arg0,
                         java.lang.String arg1)
Specified by:
addAttribute in interface IEnvelope
See Also:
Part.addHeader(java.lang.String, java.lang.String)

isViewed

public boolean isViewed()
Specified by:
isViewed in interface IEnvelope
See Also:
IEnvelope.isViewed()

setViewed

public void setViewed(boolean unread)
Specified by:
setViewed in interface IEnvelope
See Also:
IEnvelope.setViewed(boolean)


Copyright © 2003-2003 Sourceforge. All Rights Reserved.