public interface EmailRequest
Modifier and Type | Method and Description |
---|---|
EmailRequest |
addBcc(String bccsCommaDelimited)
Add one or many bcc recipients to the existing set of bcc recipients for
this email.
|
EmailRequest |
addBodyPart(ContentType contentType,
String content)
Add a body part to the email message.
|
EmailRequest |
addCc(String ccsCommaDelimited)
Add one or many cc recipients to the existing set of cc recipients for
this email.
|
EmailRequest |
addTo(String tosCommaDelimited)
Add one or many to recipients to the existing set of to recipients for
this email.
|
List |
getBcc()
Get the list of bcc email address for this request
|
List |
getBodyParts()
Get the list of email body parts
|
List |
getCc()
Get the list of cc email address for this request
|
String |
getFrom()
Get the from email address(e.g., "fromMe@domain.com")
|
EmailListener |
getListener()
Get the listener that was previously assigned using
EmailRequest.setListener(EmailListener) . |
String |
getReplyTo()
Get the replyTo email address(e.g., "fromMe@domain.com")
|
String |
getSubject()
Get the subject (e.g., "This is the subject of the email")
|
String |
getTextBody()
Get the email message text body as a String.
|
List |
getTo()
Get the list of to email address for this request
|
void |
send()
Send the email.
|
EmailRequest |
setFrom(String from)
Set the from.
|
EmailRequest |
setListener(EmailListener emailListener)
Responses to a
EmailRequest.send() request arrive asynchronously. |
EmailRequest |
setReplyTo(String replyTo)
Set the replyTo.
|
EmailRequest |
setSubject(String subject)
Set the subject.
|
EmailRequest |
setTextBody(String textBody)
Set the text body.
|
EmailRequest addBcc(String bccsCommaDelimited)
bccsCommaDelimited
- The comma delimited list of email address (e.g.,
"bcc@domain.com" or "bcc1@domain.com, bcc2@domain.com") of the
bcc recipients.EmailRequest addCc(String ccsCommaDelimited)
ccsCommaDelimited
- The comma delimited list of email address (e.g.,
"cc@domain.com" or "cc1@domain.com, cc2@domain.com") of the cc
recipients.EmailRequest addTo(String tosCommaDelimited)
tosCommaDelimited
- The comma delimited list of email address (e.g.,
"to@domain.com" or "to1@domain.com, to2@domain.com") of the to
recipients.String getTextBody()
List getBcc()
List getCc()
String getFrom()
EmailListener getListener()
EmailRequest.setListener(EmailListener)
.String getReplyTo()
String getSubject()
List getTo()
List getBodyParts()
void send() throws CollaborationBusException
EmailRequest.setListener(EmailListener)
CollaborationBusException
EmailRequest setFrom(String from)
from
- The email address this email request is being sent fromEmailRequest setListener(EmailListener emailListener)
EmailRequest.send()
request arrive asynchronously. There may
be more than one response for each send request. The client service will
not be notified when the listener is set to null (the default value). By
setting the listener, the responses for any send will be presented to the
listener. Changing the listener will not affect any responses to requests
already made. It will only affect where responses are notified to any
subsequent send.emailListener
- The listener which will be invoked upon receiving a response
to the EmailRequest.send()
EmailRequest setReplyTo(String replyTo)
replyTo
- The email address this email request will be replied toEmailRequest setSubject(String subject)
subject
- The text string of the subject of the emailEmailRequest setTextBody(String textBody)
textBody
- The text string of the body of the emailEmailRequest addBodyPart(ContentType contentType, String content)
contentType
- MIME type of the content. Enum of content type (e.g.,
text/plain or text/html.)content
- The content for the body partCopyright © 2016 Avaya. All Rights Reserved.