|
Sun Adapter for e-Mail API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stc.connector.emailadapter.appconn.EmailMessage
public class EmailMessage
Email message class which encapsulates the message for sending and receiving email message(s).
Field Summary | |
---|---|
protected java.util.ArrayList |
_AttachmentFile
|
protected java.util.ArrayList |
_Bcc
|
protected java.util.ArrayList |
_Cc
|
protected java.lang.String |
_CharSet
|
protected EmailAddress |
_From
|
protected java.lang.String |
_MsgHTML
|
protected java.lang.String |
_MsgText
|
protected EmailAddress |
_ReplyTo
|
protected java.lang.String |
_Subject
|
protected java.util.ArrayList |
_To
|
Constructor Summary | |
---|---|
EmailMessage()
Creates new EmailMessage |
Method Summary | |
---|---|
void |
addAttachment(EmailAttachment value)
Adds an EmailAttachment to the EmailAttachment collection. |
void |
addAttachment(int index,
EmailAttachment value)
Adds an EmailAttachment to the EmailAttachment collection at index i. |
void |
addBcc(EmailAddress value)
Adds an EmailAddress to the BCC EmailAddress collection. |
void |
addBcc(int index,
EmailAddress value)
Adds an EmailAddress to the BCC EmailAddress collection at index i. |
void |
addCc(EmailAddress value)
Adds an EmailAddress to the CC EmailAddress collection. |
void |
addCc(int index,
EmailAddress value)
Adds an EmailAddress to the CC EmailAddress collection at index i. |
void |
addTo(EmailAddress value)
Adds an EmailAddress to the To EmailAddress collection. |
void |
addTo(int index,
EmailAddress value)
Adds an EmailAddress to the To EmailAddress collection at index i. |
void |
clearAttachment()
Clears the EmailAttachment collection. |
void |
clearBcc()
Clears the BCC EmailAddress collection. |
void |
clearCc()
Clears the CC EmailAddress collection. |
void |
clearTo()
Clears the To EmailAddress collection. |
int |
countAttachment()
Return the size of the EmailAttachment collection. |
int |
countBcc()
Return the size of BCC EmailAddress collection. |
int |
countCc()
Return the size of CC EmailAddress collection. |
int |
countTo()
Return the size of To EmailAddress collection. |
EmailAttachment[] |
getAttachment()
Get the EmailAttachment collection as an array of EmailAttachment. |
EmailAttachment |
getAttachment(int i)
Get the EmailAttachment at index i. |
EmailAddress[] |
getBcc()
Get the BCC EmailAddress collection as an array of EmailAddress. |
EmailAddress |
getBcc(int i)
Get the BCC EmailAddress at index i. |
EmailAddress[] |
getCc()
Get the CC EmailAddress collection as an array of EmailAddress. |
EmailAddress |
getCc(int i)
Get the CC EmailAddress at index i. |
java.lang.String |
getCharSet()
Deprecated. This method has been deprecated and exception will be thrown; Set the encoding in the configuration. |
EmailAddress |
getFrom()
Gets the EmailAddress of the sender. |
java.lang.String |
getMsgHTML()
Gets the html message of the email message body. |
java.lang.String |
getMsgText()
Gets the text message of the email message body. |
EmailAddress |
getReplyTo()
Gets the EmailAddress of the ReplyTo. |
java.lang.String |
getSubject()
Gets the subject of the email message. |
EmailAddress[] |
getTo()
Get the To EmailAddress collection as an array of EmailAddress. |
EmailAddress |
getTo(int i)
Get the To EmailAddress at index i. |
protected void |
initialize()
Initialize the internal state of the message. |
void |
persist(com.stc.connector.persistence.bpel.DataOutput dout)
Persists (serialize) this message. |
void |
removeAttachment(int index)
Removes the EmailAttachment at index i. |
void |
removeBcc(int index)
Removes the BCC EmailAddress at index i. |
void |
removeCc(int index)
Removes the CC EmailAddress at index i. |
void |
removeTo(int index)
Removes the To EmailAddress at index i. |
protected void |
reset()
|
void |
restore(com.stc.connector.persistence.bpel.DataInput din)
Restore (deserialize) this message. |
void |
setAttachment(EmailAttachment[] val)
Sets the EmailAttachment collection. |
void |
setAttachment(int i,
EmailAttachment val)
Sets the EmailAttachment at index i in the collection. |
void |
setBcc(EmailAddress[] val)
Sets the BCC EmailAddress collection. |
void |
setBcc(int i,
EmailAddress val)
Sets the BCC EmailAddress at index i in the collection. |
void |
setCc(EmailAddress[] val)
Sets the CC EmailAddress collection. |
void |
setCc(int i,
EmailAddress val)
Sets the CC EmailAddress at index i in the collection. |
void |
setCharSet(java.lang.String val)
Deprecated. This method has been deprecated and exception will be thrown; Set the encoding in the configuration. |
void |
setMsgHTML(java.lang.String val)
Sets the html message of the email message body. |
void |
setMsgText(java.lang.String val)
Sets the text message of the email message body. |
void |
setSubject(java.lang.String val)
Sets the subject of the email message. |
void |
setTo(EmailAddress[] val)
Sets the To EmailAddress collection. |
void |
setTo(int i,
EmailAddress val)
Sets the To EmailAddress at index i in the collection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.ArrayList _To
protected java.util.ArrayList _Cc
protected java.util.ArrayList _Bcc
protected EmailAddress _From
protected EmailAddress _ReplyTo
protected java.lang.String _Subject
protected java.lang.String _MsgText
protected java.lang.String _MsgHTML
protected java.lang.String _CharSet
protected java.util.ArrayList _AttachmentFile
Constructor Detail |
---|
public EmailMessage()
Method Detail |
---|
protected void initialize()
protected void reset()
public EmailAddress getTo(int i)
i
- Index.
public EmailAddress[] getTo()
public int countTo()
public void setTo(int i, EmailAddress val)
i
- Index.val
- The EmailAddress to set.public void setTo(EmailAddress[] val)
val
- An array of EmailAddress.public void removeTo(int index)
i
- Index.public void addTo(EmailAddress value)
value
- The EmailAddress to add.public void addTo(int index, EmailAddress value)
i
- The index.value
- The EmailAddress to add.public void clearTo()
public EmailAddress getCc(int i)
i
- Index.
public EmailAddress[] getCc()
public int countCc()
public void setCc(int i, EmailAddress val)
i
- Index.val
- The EmailAddress to set.public void setCc(EmailAddress[] val)
val
- An array of EmailAddress.public void removeCc(int index)
i
- Index.public void addCc(EmailAddress value)
value
- The EmailAddress to add.public void addCc(int index, EmailAddress value)
i
- The index.value
- The EmailAddress to add.public void clearCc()
public EmailAddress getBcc(int i)
i
- Index.
public EmailAddress[] getBcc()
public int countBcc()
public void setBcc(int i, EmailAddress val)
i
- Index.val
- The EmailAddress to set.public void setBcc(EmailAddress[] val)
val
- An array of EmailAddress.public void removeBcc(int index)
i
- Index.public void addBcc(EmailAddress value)
value
- The EmailAddress to add.public void addBcc(int index, EmailAddress value)
i
- The index.value
- The EmailAddress to add.public void clearBcc()
public EmailAddress getFrom()
public EmailAddress getReplyTo()
public java.lang.String getSubject()
public void setSubject(java.lang.String val)
val
- The subject of the email message.public java.lang.String getMsgText()
public void setMsgText(java.lang.String val)
val
- The text message of the email message body.public java.lang.String getMsgHTML()
public void setMsgHTML(java.lang.String val)
val
- The html message of the email message body.public java.lang.String getCharSet() throws java.lang.Exception
java.lang.Exception
public void setCharSet(java.lang.String val) throws java.lang.Exception
val
- The character set encoding.
java.lang.Exception
public EmailAttachment getAttachment(int i)
i
- Index.
public EmailAttachment[] getAttachment()
public int countAttachment()
public void setAttachment(int i, EmailAttachment val)
i
- Index.val
- The EmailAttachment to set.public void setAttachment(EmailAttachment[] val)
val
- An array of EmailAttachment.public void removeAttachment(int index)
i
- Index.public void addAttachment(EmailAttachment value)
value
- The EmailAttachment to add.public void addAttachment(int index, EmailAttachment value)
i
- The index.value
- The EmailAttachment to add.public void clearAttachment()
public void persist(com.stc.connector.persistence.bpel.DataOutput dout) throws java.lang.Exception
persist
in interface com.stc.connector.persistence.bpel.PersistableData
dout
- The DataOutput to which the Java Bean
message is persisted.
java.lang.Exception
- upon error.public void restore(com.stc.connector.persistence.bpel.DataInput din) throws java.lang.Exception
restore
in interface com.stc.connector.persistence.bpel.PersistableData
dis
- The DataInput from which the Java Bean
message is restored.
java.lang.Exception
- upon error.
|
Sun Adapter for e-Mail API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |