net.sf.xbus.technical.mail
Class Email

java.lang.Object
  extended by net.sf.xbus.technical.mail.Email

public class Email
extends java.lang.Object

Description: An instance of that class will store an manupulate the email receive by the POP3XMLReceiver.

Version:
1.3
Author:
Dominique Boivin

Constructor Summary
Email(java.lang.String system)
           
 
Method Summary
 java.util.List getBCCAddresses()
           
 java.util.List getCCAddresses()
           
 java.lang.String getContent()
           
 java.lang.String getContentType()
           
 javax.mail.internet.InternetAddress getFromAddress()
           
 java.util.Date getSentDate()
           
 java.lang.String getSubject()
           
 java.util.List getToAddresses()
           
 org.w3c.dom.Document getXML()
           
 boolean isEmpty()
           
 void setBCCAddress(javax.mail.internet.InternetAddress bccAddress)
           
 void setCCAddress(javax.mail.internet.InternetAddress ccAddress)
           
 void setContent(java.lang.String content)
           
 void setContentType(java.lang.String contentType)
           
 void setFromAddress(javax.mail.internet.InternetAddress fromAddress)
           
 void setSentDate(java.util.Date sentDate)
           
 void setSubject(java.lang.String subject)
           
 void setToAddress(javax.mail.internet.InternetAddress toAddress)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Email

public Email(java.lang.String system)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getXML

public org.w3c.dom.Document getXML()
                            throws XException
Throws:
XException

isEmpty

public boolean isEmpty()

getFromAddress

public javax.mail.internet.InternetAddress getFromAddress()

setFromAddress

public void setFromAddress(javax.mail.internet.InternetAddress fromAddress)

setToAddress

public void setToAddress(javax.mail.internet.InternetAddress toAddress)

getToAddresses

public java.util.List getToAddresses()

setCCAddress

public void setCCAddress(javax.mail.internet.InternetAddress ccAddress)

getCCAddresses

public java.util.List getCCAddresses()

setBCCAddress

public void setBCCAddress(javax.mail.internet.InternetAddress bccAddress)

getBCCAddresses

public java.util.List getBCCAddresses()

setSubject

public void setSubject(java.lang.String subject)

getSubject

public java.lang.String getSubject()

setContent

public void setContent(java.lang.String content)

getContent

public java.lang.String getContent()

setSentDate

public void setSentDate(java.util.Date sentDate)

getSentDate

public java.util.Date getSentDate()

getContentType

public java.lang.String getContentType()

setContentType

public void setContentType(java.lang.String contentType)