|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmicrosoft.exchange.webservices.data.ServiceObject
microsoft.exchange.webservices.data.Item
microsoft.exchange.webservices.data.EmailMessage
public class EmailMessage
Represents an e-mail message. Properties available on e-mail messages are defined in the EmailMessageSchema class.
| Constructor Summary | |
|---|---|
|
EmailMessage(ExchangeService service)
* Initializes an unsaved local instance of EmailMessage. |
protected |
EmailMessage(ItemAttachment parentAttachment)
Initializes a new instance of the "EmailMessage" class. |
| Method Summary | |
|---|---|
static EmailMessage |
bind(ExchangeService service,
ItemId id)
* Binds to an existing e-mail message and loads its first class properties.Calling this method results in a call to EWS. |
static EmailMessage |
bind(ExchangeService service,
ItemId id,
PropertySet propertySet)
* Binds to an existing e-mail message and loads the specified set of properties.Calling this method results in a call to EWS. |
ResponseMessage |
createForward()
* Creates a forward response to the message. |
ResponseMessage |
createReply(boolean replyAll)
* Creates a reply response to the message. |
void |
forward(MessageBody bodyPrefix,
EmailAddress... toRecipients)
* Forwards the message. |
void |
forward(MessageBody bodyPrefix,
Iterable<EmailAddress> toRecipients)
* Forwards the message. |
EmailAddressCollection |
getBccRecipients()
* Gets the list of Bcc recipients for the e-mail message. |
EmailAddressCollection |
getCcRecipients()
* Gets the list of Cc recipients for the e-mail message. |
byte[] |
getConversationIndex()
* Gets the conversation index of the e-mail message. |
String |
getConversationTopic()
* Gets the conversation topic of the e-mail message. |
EmailAddress |
getFrom()
* Gets the "on behalf" sender of the e-mail message. |
String |
getInternetMessageId()
* Gets the Internat Message Id of the e-mail message. |
boolean |
getIsAssociated()
* Gets a value indicating whether this is an associated message. |
Boolean |
getIsDeliveryReceiptRequested()
* Gets a value indicating whether a read receipt is requested for the e-mail message. |
Boolean |
getIsRead()
* Gets a value indicating whether the e-mail message is read. |
Boolean |
getIsReadReceiptRequested()
* Gets a value indicating whether a read receipt is requested for the e-mail message. |
Boolean |
getIsResponseRequested()
* Gets a value indicating whether a response is requested for the e-mail message. |
protected ExchangeVersion |
getMinimumRequiredServerVersion()
Gets the minimum required server version. |
EmailAddress |
getReceivedBy()
* Gets the ReceivedBy property of the e-mail message. |
EmailAddress |
getReceivedRepresenting()
* Gets the ReceivedRepresenting property of the e-mail message. |
String |
getReferences()
* Gets the references of the e-mail message. |
EmailAddressCollection |
getReplyTo()
* Gets a list of e-mail addresses to which replies should be addressed. |
protected ServiceObjectSchema |
getSchema()
Method to return the schema associated with this type of object. |
EmailAddress |
getSender()
* Gets the sender of the e-mail message. |
EmailAddressCollection |
getToRecipients()
Gets the list of To recipients for the e-mail message. |
void |
reply(MessageBody bodyPrefix,
boolean replyAll)
* Replies to the message. |
void |
send()
Sends this e-mail message. |
void |
sendAndSaveCopy()
* Sends this e-mail message and saves a copy of it in the Sent Items folder. |
void |
sendAndSaveCopy(FolderId destinationFolderId)
* Sends this e-mail message and saves a copy of it in the specified folder. |
void |
sendAndSaveCopy(WellKnownFolderName destinationFolderName)
* Sends this e-mail message and saves a copy of it in the specified folder. |
void |
setFrom(EmailAddress value)
Sets the from. |
void |
setIsAssociated(boolean value)
Sets the checks if is associated. |
void |
setIsDeliveryReceiptRequested(Boolean value)
Sets the checks if is delivery receipt requested. |
void |
setIsRead(Boolean value)
Sets the checks if is read. |
void |
setIsReadReceiptRequested(Boolean value)
Sets the checks if is read receipt requested. |
void |
setIsResponseRequested(Boolean value)
Sets the checks if is response requested. |
void |
setReferences(String value)
Sets the references. |
void |
setSender(EmailAddress value)
Sets the sender. |
void |
suppressReadReceipt()
* Suppresses the read receipt on the message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EmailMessage(ExchangeService service)
throws Exception
service - The ExchangeService object to which the e-mail message will be
bound.
Exception - the exception
protected EmailMessage(ItemAttachment parentAttachment)
throws Exception
parentAttachment - The parent attachment.
Exception - the exception| Method Detail |
|---|
public static EmailMessage bind(ExchangeService service,
ItemId id,
PropertySet propertySet)
throws Exception
service - the serviceid - the idpropertySet - the property set
Exception - the exception
public static EmailMessage bind(ExchangeService service,
ItemId id)
throws Exception
service - the serviceid - the id
Exception - the exceptionprotected ServiceObjectSchema getSchema()
getSchema in class Itemprotected ExchangeVersion getMinimumRequiredServerVersion()
getMinimumRequiredServerVersion in class Item
public ResponseMessage createReply(boolean replyAll)
throws Exception
replyAll - the reply all
Exception - the exception
public ResponseMessage createForward()
throws Exception
Exception - the exception
public void reply(MessageBody bodyPrefix,
boolean replyAll)
throws Exception
bodyPrefix - the body prefixreplyAll - the reply all
Exception - the exception
public void forward(MessageBody bodyPrefix,
EmailAddress... toRecipients)
throws Exception
bodyPrefix - the body prefixtoRecipients - the to recipients
Exception - the exception
public void forward(MessageBody bodyPrefix,
Iterable<EmailAddress> toRecipients)
throws Exception
bodyPrefix - the body prefixtoRecipients - the to recipients
Exception - the exception
public void send()
throws Exception
Exception - the exception
public void sendAndSaveCopy(FolderId destinationFolderId)
throws Exception
destinationFolderId - the destination folder id
Exception - the exception
public void sendAndSaveCopy(WellKnownFolderName destinationFolderName)
throws Exception
destinationFolderName - the destination folder name
Exception - the exception
public void sendAndSaveCopy()
throws Exception
Exception - the exception
public void suppressReadReceipt()
throws Exception
Exception - the exception
public EmailAddressCollection getToRecipients()
throws ServiceLocalException
ServiceLocalException - the service local exception
public EmailAddressCollection getBccRecipients()
throws ServiceLocalException
ServiceLocalException - the service local exception
public EmailAddressCollection getCcRecipients()
throws ServiceLocalException
ServiceLocalException - the service local exception
public String getConversationTopic()
throws ServiceLocalException
ServiceLocalException - the service local exception
public byte[] getConversationIndex()
throws ServiceLocalException
ServiceLocalException - the service local exception
public EmailAddress getFrom()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setFrom(EmailAddress value)
throws Exception
value - the new from
Exception - the exception
public boolean getIsAssociated()
throws ServiceLocalException
getIsAssociated in class ItemServiceLocalException - the service local exception
public void setIsAssociated(boolean value)
throws Exception
value - the new checks if is associated
Exception - the exception
public Boolean getIsDeliveryReceiptRequested()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setIsDeliveryReceiptRequested(Boolean value)
throws Exception
value - the new checks if is delivery receipt requested
Exception - the exception
public Boolean getIsRead()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setIsRead(Boolean value)
throws Exception
value - the new checks if is read
Exception - the exception
public Boolean getIsReadReceiptRequested()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setIsReadReceiptRequested(Boolean value)
throws Exception
value - the new checks if is read receipt requested
Exception - the exception
public Boolean getIsResponseRequested()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setIsResponseRequested(Boolean value)
throws Exception
value - the new checks if is response requested
Exception - the exception
public String getInternetMessageId()
throws ServiceLocalException
ServiceLocalException - the service local exception
public String getReferences()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setReferences(String value)
throws Exception
value - the new references
Exception - the exception
public EmailAddressCollection getReplyTo()
throws ServiceLocalException
ServiceLocalException - the service local exception
public EmailAddress getSender()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setSender(EmailAddress value)
throws Exception
value - the new sender
Exception - the exception
public EmailAddress getReceivedBy()
throws ServiceLocalException
ServiceLocalException - the service local exception
public EmailAddress getReceivedRepresenting()
throws ServiceLocalException
ServiceLocalException - the service local exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||