com.aspose.network.outlook
Class AbstractMessage

java.lang.Object
  extended by com.aspose.network.outlook.MapiPropertyContainer
      extended by com.aspose.network.outlook.AbstractMessage
Direct Known Subclasses:
MapiEmbeddedMessage, MapiMessage

public abstract class AbstractMessage
extends MapiPropertyContainer

Represents Abstract MAPI Message. Used as base for MapiMessage and MapiEmbeddedMessage.


Method Summary
 MapiAttachmentCollection getAttachments()
          Gets the attachments in the message.
 String getBody()
          Gets the message text.
 String getBodyRtf()
          Gets the decompressed RTF formatted message text.
 Date getClientSubmitTime()
          Gets the client submit time of the message.
 String getConversationTopic()
          Gets the topic of the first message in a conversation thread.
 String getDisplayBcc()
          Gets a list of the display names of any blind carbon copy (BCC) message recipients, separated by semicolons (;).
 String getDisplayCc()
          Gets a list of the display names of any carbon copy (CC) message recipients, separated by semicolons (;).
 String getDisplayName()
          Gets the display name for the message.
 String getDisplayNamePrefix()
          Gets a prefix of the display name.
 String getDisplayTo()
          Gets a list of the display names of the primary (To) message recipients, separated by semicolons (;).
 String getInternetMessageId()
          Gets the message id of the message.
 void getInternetMessageId(String internetMessageId)
          Sets the message id of the message.
 String getMessageClass()
          Gets message class.
 String getNormalizedSubject()
          Gets normalized subject of the message.
 MapiPropertyCollection getProperties()
          Gets the collection of properties.
 MapiRecipientCollection getRecipients()
          Gets the recipients of the message.
 String getSenderAddressType()
          Gets the message sender's e-mail address type.
 String getSenderEmailAddress()
          Gets the message sender's e-mail address.
 String getSenderName()
          Gets the message sender's display name.
 String getSentRepresentingAddressType()
          Gets the address type for the messaging user represented by the sender.
 String getSentRepresentingEmailAddress()
          Gets the e-mail address for the messaging user represented by the sender.
 String getSentRepresentingName()
          Gets the display name for the messaging user represented by the sender.
 String getSubject()
          Gets the subject of the message.
 String getSubjectPrefix()
          Gets a subject prefix that typically indicates some action on a message, such as "FW: " for forwarding.
 String getTransportMessageHeaders()
          Gets the transport-specific message envelope information.
 boolean isStoreUnicodeOk()
          Determines if string properties are Unicode encoded or not.
 void setBody(String body)
          Sets the message text.
 void setClientSubmitTime(Date clientSubmitTime)
          Sets the client submit time of the message.
 void setCodePage(int codePage)
          Set code page.
 void setConversationTopic(String conversationTopic)
          Sets the topic of the first message in a conversation thread.
 void setDisplayBcc(String displayBcc)
          Sets the list of the display names of any blind carbon copy (BCC) message recipients, separated by semicolons (;).
 void setDisplayCc(String displayCc)
          Sets a list of the display names of any carbon copy (CC) message recipients, separated by semicolons (;).
 void setDisplayName(String displayName)
          Sets the display name for the message.
 void setDisplayNamePrefix(String displayNamePrefix)
          Sets a prefix of the display name.
 void setDisplayTo(String displayTo)
          Sets a list of the display names of the primary (To) message recipients, separated by semicolons (;).
 void setMessageClass(String messageClass)
          Sets message class.
 void setNormalizedSubject(String normalizedSubject)
          Sets normalized subject of the message.
 void setSenderAddressType(String senderAddressType)
          Sets the message sender's e-mail address type.
 void setSenderEmailAddress(String senderEmailAddress)
          Sets the message sender's e-mail address.
 void setSenderName(String senderName)
          Sets the message sender's display name.
 void setSentRepresentingAddressType(String sentRepresentingAddressType)
          Sets the address type for the messaging user represented by the sender.
 void setSentRepresentingEmailAddress(String sentRepresentingEmailAddress)
          Sets the e-mail address for the messaging user represented by the sender.
 void setSentRepresentingName(String sentRepresentingName)
          Sets the display name for the messaging user represented by the sender.
 void setSubject(String subject)
          Sets the subject of the message.
 void setSubjectPrefix(String subjectPrefix)
          Sets a subject prefix that typically indicates some action on a message, such as "FW: " for forwarding.
 void setTransportMessageHeaders(String transportMessageHeaders)
          Sets the transport-specific message envelope information.
 
Methods inherited from class com.aspose.network.outlook.MapiPropertyContainer
getCodePage, getProperty, getPropertyBinary, getPropertyBooolean, getPropertyByte, getPropertyDateTime, getPropertyDouble, getPropertyFloat, getPropertyInt, getPropertyLong, getPropertyShort, getPropertyString, getPropertyString, setProperty
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getProperties

public MapiPropertyCollection getProperties()
Gets the collection of properties.

Specified by:
getProperties in class MapiPropertyContainer
Returns:
collection of properties

getAttachments

public MapiAttachmentCollection getAttachments()
Gets the attachments in the message.

Returns:
attachments collection

getRecipients

public MapiRecipientCollection getRecipients()
Gets the recipients of the message.

Returns:
recipients collection

setCodePage

public void setCodePage(int codePage)
Set code page. See MapiPropertyTag.PR_INTERNET_CPID
Example set 65001 for UTF-8, 20127 for US-ASCII, etc.

Parameters:
codePage - code page.

getBody

public String getBody()
Gets the message text.

Returns:
message text

setBody

public void setBody(String body)
Sets the message text.

Parameters:
body - message body

getBodyRtf

public String getBodyRtf()
Gets the decompressed RTF formatted message text.

Returns:
RTF formatted message text

getClientSubmitTime

public Date getClientSubmitTime()
Gets the client submit time of the message.

Returns:
client submit time of the message

setClientSubmitTime

public void setClientSubmitTime(Date clientSubmitTime)
Sets the client submit time of the message.

Parameters:
clientSubmitTime - submit time of the message

getConversationTopic

public String getConversationTopic()
Gets the topic of the first message in a conversation thread.

Returns:
topic of the first message in a conversation thread

setConversationTopic

public void setConversationTopic(String conversationTopic)
Sets the topic of the first message in a conversation thread.

Parameters:
conversationTopic - topic of the first message in a conversation thread

getDisplayBcc

public String getDisplayBcc()
Gets a list of the display names of any blind carbon copy (BCC) message recipients, separated by semicolons (;).

Returns:
list of the display names BCC

setDisplayBcc

public void setDisplayBcc(String displayBcc)
Sets the list of the display names of any blind carbon copy (BCC) message recipients, separated by semicolons (;).

Parameters:
displayBcc - list of the display names

getDisplayCc

public String getDisplayCc()
Gets a list of the display names of any carbon copy (CC) message recipients, separated by semicolons (;).

Returns:
list of the display names TO

setDisplayCc

public void setDisplayCc(String displayCc)
Sets a list of the display names of any carbon copy (CC) message recipients, separated by semicolons (;).

Parameters:
displayCc - list of the display names

getDisplayName

public String getDisplayName()
Gets the display name for the message.

Returns:
display name for the message

setDisplayName

public void setDisplayName(String displayName)
Sets the display name for the message.

Parameters:
displayName - name for the message

getDisplayNamePrefix

public String getDisplayNamePrefix()
Gets a prefix of the display name.

Returns:
prefix of the display name

setDisplayNamePrefix

public void setDisplayNamePrefix(String displayNamePrefix)
Sets a prefix of the display name.

Parameters:
displayNamePrefix - prefix of the display name

getDisplayTo

public String getDisplayTo()
Gets a list of the display names of the primary (To) message recipients, separated by semicolons (;).

Returns:
list of the display names TO

setDisplayTo

public void setDisplayTo(String displayTo)
Sets a list of the display names of the primary (To) message recipients, separated by semicolons (;).

Parameters:
displayTo - list of the display names TO

getInternetMessageId

public String getInternetMessageId()
Gets the message id of the message.

Returns:
message id of the message.

getInternetMessageId

public void getInternetMessageId(String internetMessageId)
Sets the message id of the message.

Parameters:
internetMessageId - id of the message.

getMessageClass

public String getMessageClass()
Gets message class.

Returns:
message class.

setMessageClass

public void setMessageClass(String messageClass)
Sets message class.

Parameters:
messageClass - message class

getNormalizedSubject

public String getNormalizedSubject()
Gets normalized subject of the message.

Returns:
normalized subject of the message

setNormalizedSubject

public void setNormalizedSubject(String normalizedSubject)
Sets normalized subject of the message.

Parameters:
normalizedSubject - subject of the message

getSenderAddressType

public String getSenderAddressType()
Gets the message sender's e-mail address type.

Returns:
message sender's e-mail address type

setSenderAddressType

public void setSenderAddressType(String senderAddressType)
Sets the message sender's e-mail address type.

Parameters:
senderAddressType - sender's e-mail address type

getSenderEmailAddress

public String getSenderEmailAddress()
Gets the message sender's e-mail address.

Returns:
message sender's e-mail address

setSenderEmailAddress

public void setSenderEmailAddress(String senderEmailAddress)
Sets the message sender's e-mail address.

Parameters:
senderEmailAddress - sender's e-mail address

getSenderName

public String getSenderName()
Gets the message sender's display name.

Returns:
message sender's display name

setSenderName

public void setSenderName(String senderName)
Sets the message sender's display name.

Parameters:
senderName - message sender's display name

getSentRepresentingAddressType

public String getSentRepresentingAddressType()
Gets the address type for the messaging user represented by the sender.

Returns:
address type for the messaging user represented by the sender

setSentRepresentingAddressType

public void setSentRepresentingAddressType(String sentRepresentingAddressType)
Sets the address type for the messaging user represented by the sender.

Parameters:
sentRepresentingAddressType - address type for the messaging user represented by the sender

getSentRepresentingEmailAddress

public String getSentRepresentingEmailAddress()
Gets the e-mail address for the messaging user represented by the sender.

Returns:
e-mail address for the messaging user represented by the sender

setSentRepresentingEmailAddress

public void setSentRepresentingEmailAddress(String sentRepresentingEmailAddress)
Sets the e-mail address for the messaging user represented by the sender.

Parameters:
sentRepresentingEmailAddress - e-mail address for the messaging user represented by the sender

getSentRepresentingName

public String getSentRepresentingName()
Gets the display name for the messaging user represented by the sender.

Returns:
display name for the messaging user represented by the sender

setSentRepresentingName

public void setSentRepresentingName(String sentRepresentingName)
Sets the display name for the messaging user represented by the sender.

Parameters:
sentRepresentingName - display name for the messaging user represented by the sender

getSubject

public String getSubject()
Gets the subject of the message.

Returns:
subject of the message

setSubject

public void setSubject(String subject)
Sets the subject of the message.

Parameters:
subject - of the message

getSubjectPrefix

public String getSubjectPrefix()
Gets a subject prefix that typically indicates some action on a message, such as "FW: " for forwarding.

Returns:
subject prefix

setSubjectPrefix

public void setSubjectPrefix(String subjectPrefix)
Sets a subject prefix that typically indicates some action on a message, such as "FW: " for forwarding.

Parameters:
subjectPrefix - subject prefix

getTransportMessageHeaders

public String getTransportMessageHeaders()
Gets the transport-specific message envelope information.

Returns:
transport-specific message envelope information

setTransportMessageHeaders

public void setTransportMessageHeaders(String transportMessageHeaders)
Sets the transport-specific message envelope information.

Parameters:
transportMessageHeaders - transport-specific message envelope information

isStoreUnicodeOk

public boolean isStoreUnicodeOk()
Determines if string properties are Unicode encoded or not.

Returns:
true if string properties are Unicode encoded, false otherwise


Copyright © 2011 Aspose. All Rights Reserved.