|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.objectxp.msg.Message
com.objectxp.msg.SmtpMessage
public class SmtpMessage
This class extends the generic Message class with SMTP specific properties. The Message may have multiple Recipients and a Subject.
SmtpService,
Serialized Form| Field Summary |
|---|
| Fields inherited from class com.objectxp.msg.Message |
|---|
ACK_TIME, MT_BINARY, MT_STATUS, MT_TEXT, SENDER_TYPE_ALPHA, SENDER_TYPE_GUESS, SENDER_TYPE_NUMBER |
| Constructor Summary | |
|---|---|
SmtpMessage()
Create a new empty SMTP message. |
|
SmtpMessage(Message message)
Create a new SMTP message based on an existing Message object. |
|
SmtpMessage(java.lang.String recipient,
java.lang.String sender,
java.lang.String subject,
java.lang.String message)
Create a new SMTP message. |
|
| Method Summary | |
|---|---|
void |
addRecipient(Recipient recipient)
Add a new recipient to the list of recipients for this message. |
void |
addRecipient(java.lang.String address)
Add a new recipient to the list of recipients for this message. |
void |
addRecipient(java.lang.String address,
int type)
Add a new recipient to the list of recipients for this message. |
void |
clearRecipients()
Clear the list of recipients for this message. |
java.lang.String[] |
getRecipients()
Get the Addresses for all recipients of this message. |
java.lang.String |
getSubject()
Get the subject for this message. |
void |
setRecipient(java.lang.String address)
Set the recipient for this message. the current list of recipients will be cleared first. |
void |
setSubject(java.lang.String subject)
set the Subject for this message. |
| Methods inherited from class com.objectxp.msg.Message |
|---|
clone, getBytes, getID, getMessage, getProperty, getRecipient, getSender, getSenderType, getTimestamp, getType, setID, setMessage, setMessage, setProperty, setSender, setSenderType, setType, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SmtpMessage()
public SmtpMessage(java.lang.String recipient,
java.lang.String sender,
java.lang.String subject,
java.lang.String message)
recipient - the mail address of the recipient for this message. The
recipient will be of type Recipient.RT_TOsender - the senders mail address.subject - the subject of this messagemessage - the message bodyRecipient.RT_TOpublic SmtpMessage(Message message)
| Method Detail |
|---|
public void addRecipient(Recipient recipient)
public void addRecipient(java.lang.String address)
Recipient.RT_TO
public void addRecipient(java.lang.String address,
int type)
address - a valid Internet mail address (user@domain)type - the Recipient typeRecipientpublic void setRecipient(java.lang.String address)
Recipient.RT_TO.
setRecipient in class Messageaddress - address of the recipientpublic void clearRecipients()
public java.lang.String[] getRecipients()
public java.lang.String getSubject()
public void setSubject(java.lang.String subject)
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||