org.cid.distribution.plugins.mail
Class DistributionMail

java.lang.Object
  extended by javax.mail.Message
      extended by javax.mail.internet.MimeMessage
          extended by org.cid.distribution.plugins.mail.DistributionMail
All Implemented Interfaces:
javax.mail.internet.MimePart, javax.mail.Part

public class DistributionMail
extends javax.mail.internet.MimeMessage

Represents each one of the messages received or sent by the application.

Version:
$Revision:127 $

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.mail.internet.MimeMessage
javax.mail.internet.MimeMessage.RecipientType
 
Field Summary
 
Fields inherited from interface javax.mail.Part
ATTACHMENT, INLINE
 
Constructor Summary
DistributionMail(javax.mail.Session session)
          Builds a new DistributionMessage
DistributionMail(javax.mail.Session session, javax.mail.internet.MimeMessage message)
          Builds a new DistributionMessage, which is a copy from other
 
Method Summary
 DistributionMail copy()
          Copies a message
 DistributionMail copy(javax.mail.Session session)
          Clones a mail message
 java.util.HashMap<java.lang.String,java.lang.Object> getProperties()
           
 void write(java.io.OutputStream os)
           
 
Methods inherited from class javax.mail.internet.MimeMessage
addFrom, addHeader, addHeaderLine, addRecipients, addRecipients, getAllHeaderLines, getAllHeaders, getAllRecipients, getContent, getContentID, getContentLanguage, getContentMD5, 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, 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, setText, writeTo, writeTo
 
Methods inherited from class javax.mail.Message
addRecipient, getFolder, getMessageNumber, isExpunged, match, setFlag, setRecipient
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DistributionMail

public DistributionMail(javax.mail.Session session)
Builds a new DistributionMessage


DistributionMail

public DistributionMail(javax.mail.Session session,
                        javax.mail.internet.MimeMessage message)
                 throws javax.mail.MessagingException,
                        java.io.IOException
Builds a new DistributionMessage, which is a copy from other

Throws:
javax.mail.MessagingException
java.io.IOException
Method Detail

copy

public DistributionMail copy()
                      throws DistributionMessagingException
Copies a message

Throws:
DistributionMessagingException

copy

public DistributionMail copy(javax.mail.Session session)
                      throws DistributionMessagingException
Clones a mail message

Throws:
DistributionMessagingException

write

public void write(java.io.OutputStream os)
           throws DistributionMessagingException
Throws:
DistributionMessagingException

getProperties

public java.util.HashMap<java.lang.String,java.lang.Object> getProperties()
Returns:
Returns the variables.


Copyright © 2006 null. All Rights Reserved.