|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.net.Email
public class Email
Container object for an email.
| Field Summary | |
|---|---|
protected File[] |
m_Attachments
the attachments. |
protected EmailAddress[] |
m_BCC
the BCC recipients. |
protected String |
m_Body
the body. |
protected EmailAddress[] |
m_CC
the CC recipients. |
protected EmailAddress |
m_From
the sender. |
protected String |
m_Subject
the subject. |
protected EmailAddress[] |
m_To
the recipients. |
static String |
NO_SUBJECT
the default subject if none provided. |
| Constructor Summary | |
|---|---|
Email(EmailAddress from,
EmailAddress[] to,
EmailAddress[] cc,
EmailAddress[] bcc,
String subject,
String body,
File[] attachments)
Initializes the email. |
|
Email(EmailAddress from,
EmailAddress[] to,
String subject,
String body,
File[] attachments)
Initializes the email. |
|
Email(EmailAddress from,
EmailAddress to,
String subject,
String body)
Initializes the email. |
|
Email(EmailAddress from,
EmailAddress to,
String subject,
String body,
File[] attachments)
Initializes the email. |
|
| Method Summary | |
|---|---|
File[] |
getAttachments()
Returns the attachments. |
EmailAddress[] |
getBCC()
Returns the BCC recipients. |
String |
getBody()
Returns the body. |
EmailAddress[] |
getCC()
Returns the CC recipients. |
EmailAddress |
getFrom()
Returns the sender. |
String |
getSubject()
Returns the subject. |
EmailAddress[] |
getTo()
Returns the TO recipients. |
String |
toPlainText()
|
String |
toString()
Simple info string for debugging purposes. |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut, sizeOf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String NO_SUBJECT
protected EmailAddress m_From
protected EmailAddress[] m_To
protected EmailAddress[] m_CC
protected EmailAddress[] m_BCC
protected String m_Subject
protected String m_Body
protected File[] m_Attachments
| Constructor Detail |
|---|
public Email(EmailAddress from,
EmailAddress to,
String subject,
String body)
from - the senderto - the recipientsubject - the subjectbody - the the content
public Email(EmailAddress from,
EmailAddress to,
String subject,
String body,
File[] attachments)
from - the senderto - the recipientsubject - the subjectbody - the the contentattachments - the attachments
public Email(EmailAddress from,
EmailAddress[] to,
String subject,
String body,
File[] attachments)
from - the senderto - the recipientssubject - the subjectbody - the the contentattachments - the attachments
public Email(EmailAddress from,
EmailAddress[] to,
EmailAddress[] cc,
EmailAddress[] bcc,
String subject,
String body,
File[] attachments)
from - the senderto - the recipientscc - the CC recipientsbcc - the BCC recipientssubject - the subjectbody - the the contentattachments - the attachments| Method Detail |
|---|
public EmailAddress getFrom()
public EmailAddress[] getTo()
public EmailAddress[] getCC()
public EmailAddress[] getBCC()
public File[] getAttachments()
public String getSubject()
public String getBody()
public String toString()
toString in class Objectpublic String toPlainText()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||