|
||||||||
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,
java.lang.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. |
java.lang.String |
getConversationTopic()
* Gets the conversation topic of the e-mail message. |
EmailAddress |
getFrom()
* Gets the "on behalf" sender of the e-mail message. |
java.lang.String |
getInternetMessageId()
* Gets the Internat Message Id of the e-mail message. |
boolean |
getIsAssociated()
* Gets a value indicating whether this is an associated message. |
java.lang.Boolean |
getIsDeliveryReceiptRequested()
* Gets a value indicating whether a read receipt is requested for the e-mail message. |
java.lang.Boolean |
getIsRead()
* Gets a value indicating whether the e-mail message is read. |
java.lang.Boolean |
getIsReadReceiptRequested()
* Gets a value indicating whether a read receipt is requested for the e-mail message. |
java.lang.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. |
java.lang.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(java.lang.Boolean value)
Sets the checks if is delivery receipt requested. |
void |
setIsRead(java.lang.Boolean value)
Sets the checks if is read. |
void |
setIsReadReceiptRequested(java.lang.Boolean value)
Sets the checks if is read receipt requested. |
void |
setIsResponseRequested(java.lang.Boolean value)
Sets the checks if is response requested. |
void |
setReferences(java.lang.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 java.lang.Exception
service
- The ExchangeService object to which the e-mail message will be
bound.
java.lang.Exception
- the exceptionprotected EmailMessage(ItemAttachment parentAttachment) throws java.lang.Exception
parentAttachment
- The parent attachment.
java.lang.Exception
- the exceptionMethod Detail |
---|
public static EmailMessage bind(ExchangeService service, ItemId id, PropertySet propertySet) throws java.lang.Exception
service
- the serviceid
- the idpropertySet
- the property set
java.lang.Exception
- the exceptionpublic static EmailMessage bind(ExchangeService service, ItemId id) throws java.lang.Exception
service
- the serviceid
- the id
java.lang.Exception
- the exceptionprotected ServiceObjectSchema getSchema()
getSchema
in class Item
protected ExchangeVersion getMinimumRequiredServerVersion()
getMinimumRequiredServerVersion
in class Item
public ResponseMessage createReply(boolean replyAll) throws java.lang.Exception
replyAll
- the reply all
java.lang.Exception
- the exceptionpublic ResponseMessage createForward() throws java.lang.Exception
java.lang.Exception
- the exceptionpublic void reply(MessageBody bodyPrefix, boolean replyAll) throws java.lang.Exception
bodyPrefix
- the body prefixreplyAll
- the reply all
java.lang.Exception
- the exceptionpublic void forward(MessageBody bodyPrefix, EmailAddress... toRecipients) throws java.lang.Exception
bodyPrefix
- the body prefixtoRecipients
- the to recipients
java.lang.Exception
- the exceptionpublic void forward(MessageBody bodyPrefix, java.lang.Iterable<EmailAddress> toRecipients) throws java.lang.Exception
bodyPrefix
- the body prefixtoRecipients
- the to recipients
java.lang.Exception
- the exceptionpublic void send() throws java.lang.Exception
java.lang.Exception
- the exceptionpublic void sendAndSaveCopy(FolderId destinationFolderId) throws java.lang.Exception
destinationFolderId
- the destination folder id
java.lang.Exception
- the exceptionpublic void sendAndSaveCopy(WellKnownFolderName destinationFolderName) throws java.lang.Exception
destinationFolderName
- the destination folder name
java.lang.Exception
- the exceptionpublic void sendAndSaveCopy() throws java.lang.Exception
java.lang.Exception
- the exceptionpublic void suppressReadReceipt() throws java.lang.Exception
java.lang.Exception
- the exceptionpublic EmailAddressCollection getToRecipients() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic EmailAddressCollection getBccRecipients() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic EmailAddressCollection getCcRecipients() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic java.lang.String getConversationTopic() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic byte[] getConversationIndex() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic EmailAddress getFrom() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setFrom(EmailAddress value) throws java.lang.Exception
value
- the new from
java.lang.Exception
- the exceptionpublic boolean getIsAssociated() throws ServiceLocalException
getIsAssociated
in class Item
ServiceLocalException
- the service local exceptionpublic void setIsAssociated(boolean value) throws java.lang.Exception
value
- the new checks if is associated
java.lang.Exception
- the exceptionpublic java.lang.Boolean getIsDeliveryReceiptRequested() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setIsDeliveryReceiptRequested(java.lang.Boolean value) throws java.lang.Exception
value
- the new checks if is delivery receipt requested
java.lang.Exception
- the exceptionpublic java.lang.Boolean getIsRead() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setIsRead(java.lang.Boolean value) throws java.lang.Exception
value
- the new checks if is read
java.lang.Exception
- the exceptionpublic java.lang.Boolean getIsReadReceiptRequested() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setIsReadReceiptRequested(java.lang.Boolean value) throws java.lang.Exception
value
- the new checks if is read receipt requested
java.lang.Exception
- the exceptionpublic java.lang.Boolean getIsResponseRequested() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setIsResponseRequested(java.lang.Boolean value) throws java.lang.Exception
value
- the new checks if is response requested
java.lang.Exception
- the exceptionpublic java.lang.String getInternetMessageId() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic java.lang.String getReferences() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setReferences(java.lang.String value) throws java.lang.Exception
value
- the new references
java.lang.Exception
- the exceptionpublic EmailAddressCollection getReplyTo() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic EmailAddress getSender() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setSender(EmailAddress value) throws java.lang.Exception
value
- the new sender
java.lang.Exception
- the exceptionpublic EmailAddress getReceivedBy() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic 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 |