|
Compoze Software, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.compoze.exchange.webdav.AbstractItem
|
+--com.compoze.exchange.webdav.AbstractMessage
|
+--com.compoze.exchange.webdav.Message
This class extends AbstractItem to represent an item that is
a message in the Exchange store.
The following table contains the properties defined in the Exchange store schema
and mappings to their corresponding Java enumeration and methods:
MailFolder draftsFolder = m_session.getUserMailbox().getDraftsFolder();
Message message = new Message("first.last@compoze.com", "Testing WebDAV Message API");
message.setBody("Please delete message upon receiving.");
message.setImportance(Importance.HIGH);
message.setSensitivity(Sensitivity.CONFIDENTIAL);
// Add attachment
try
{
Attachment attachment = new Attachment("attachment.txt",
new ByteArrayInputStream (new String ("Here is some attachment data").getBytes()));
message.addAttachment(attachment);
}
catch (IOException ioe)
{
ioe.printStackTrace ();
}
draftsFolder.addItem(message);
message.send();
| Field Summary | |
static java.lang.String |
FORWARD_PREFIX
|
static java.lang.String |
REPLY_PREFIX
|
| Constructor Summary | |
|
Message(com.compoze.util.mail.InternetAddress[] to,
java.lang.String sSubject)
Constructor. |
|
Message(java.util.List toAddresses,
java.lang.String sSubject)
Constructor. |
|
Message(java.lang.String sSubject)
Constructor. |
protected |
Message(java.lang.String sSubject,
OutlookMessageType outlookMessageClass,
ContentClass contentClass)
|
|
Message(java.lang.String sToAddresses,
java.lang.String sSubject)
Constructor. |
protected |
Message(java.lang.String sSubject,
java.lang.String sOutlookMessageClass,
java.lang.String sContentClass)
|
| Method Summary | |
java.lang.Object |
clone()
Creates and returns a copy of this object. |
Message |
forward()
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverForward() |
Message |
forward(Folder folder)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverForward(Folder) |
java.lang.String |
getComment()
Gets the comment for the message. |
java.lang.String |
getContentBase()
Gets the base for relative Uniform Resource Identifiers (URIs) occurring in other header fields and in HTML documents that do not have any BASE element within the HTML markup. |
java.lang.String |
getContentDescription()
Gets the optional description of the message body part. |
java.lang.String |
getContentDisposition()
Gets the intended disposition of the message body part. |
java.lang.String |
getContentDispositionType()
Gets the type portion of the Content-Disposition Multipurpose Internet Mail Extensions (MIME) header for the message body part. |
java.lang.String |
getContentId()
Gets the unique identifier for the message body part. |
java.lang.String |
getContentLanguage()
Gets the language identifier for the message body part text content. |
java.lang.String |
getContentLocation()
Gets the Uniform Resource Identifier (URI) that corresponds to the content of the message body part. |
java.lang.String |
getContentMediaType()
Gets the content media type for the message body part. |
java.lang.String |
getContentTransferEncoding()
Gets the encoding mechanism used to encode the message body part content. |
java.lang.String |
getContentType()
Gets the message body part content type. |
java.util.Date |
getDateSent()
Gets the date the message was sent. |
static java.util.List |
getDefaultProperties()
Gets a list of default properties pertaining to a message. |
java.lang.String |
getDisplayCC()
Method description. |
java.lang.String |
getDisplayTo()
|
java.lang.String |
getDisposition()
Gets the Mail Delivery Notification (MDN) status indicator for the message. |
java.lang.String |
getDispositionNotificationAddress()
Gets where disposition notifications should be sent. |
java.util.LinkedList |
getDistribution()
Gets a list of newsgroups, intended to restrict the ditribution of the message. |
java.lang.String |
getDistributionString()
Gets the comma seperated list of newsgroups, intended to restrict the ditribution of the message. |
java.util.Date |
getExpires()
Gets the date the message expires. |
java.util.Date |
getExpiryDate()
Gets the expiry date of the message. |
java.util.LinkedList |
getFollowupNewsgroups()
Gets a list of newsgroups to which follow up messages are to be posted. |
java.lang.String |
getFollowupNewsgroupString()
Gets the comma seperated list of newsgroups to which follow up messages are to be posted. |
Importance |
getHeaderImportance()
Gets the level of importance of message stored in the Header: Importance field. |
java.lang.String |
getHTMLDescription()
Gets the HTML content of this message. |
Importance |
getImportance()
Gets the level of importance of this message. |
java.lang.String |
getInReplyTo()
Gets the message identifier of the message which this message is a reply. |
java.util.LinkedList |
getKeywords()
Gets a list of keywords for the message. |
java.lang.String |
getKeywordsString()
Gets the comma seperated list of keywords for the message. |
int |
getLines()
Gets the number of lines in the body of the (newsgroup) message. |
MessageFlag |
getMessageFlag()
Gets the message flag for this message. |
java.lang.String |
getMessageId()
Gets the unique identifier of message. |
java.lang.String |
getMimeVersion()
Gets the version of Multipurpose Internet Mail Extensions (MIME) used to format the message. |
java.lang.String |
getModerator()
Gets the address of the moderator that approved and posted the message. |
java.util.LinkedList |
getNewsgroups()
Gets a list of newsgroup addresses for the message. |
java.lang.String |
getNewsgroupsString()
Gets a comma seperated list of newsgroup addresses for the message. |
java.lang.String |
getOrganization()
Gets the organization of sender. |
java.lang.String |
getOriginalRecipient()
Gets the e-mail address of an original recipient of the message. |
Priority |
getPriority()
Gets the priority of the message. |
static java.util.List |
getProperties()
Gets a list of properties pertaining to a message. |
java.lang.String |
getReceived()
Gets the Simple Mail Transport Protocol (SMTP) host Received headers for a message. |
java.lang.String |
getReferences()
Gets the Usenet header used to correlate replies with their original messages. |
java.lang.String |
getRelayVersion()
Gets the version of the program responsible for transmitting an article over the immediate link. |
java.util.Date |
getReplyBy()
Gets date to reply to this message. |
java.util.LinkedList |
getReplyToAddresses()
Gets the addresses to which replies should be sent. |
java.lang.String |
getReplyToAddressString()
Gets the comma seperated addresses to which replies should be sent. |
java.lang.String |
getReturnPath()
Gets the address of the message originator. |
java.lang.String |
getReturnReceiptTo()
Gets the address to which return receipts should be sent. |
java.lang.String |
getSaveDestination()
Gets where the message should be saved after it is transmitted using the mail transmission URI. |
java.lang.String |
getSender()
Gets the sender of the message. |
java.lang.String |
getSenderEmail()
Gets the email address of the message sender. |
java.lang.String |
getSenderName()
Gets the display name of the message sender. |
java.lang.String |
getSummary()
Gets the summary of the message. |
java.lang.String |
getThreadIndex()
Gets the identifier of a particular conversation thread; computed from message references. |
java.lang.String |
getThreadTopic()
Gets the topic of discussion thread. |
java.lang.String |
getXMailer()
Gets the name of the software (X-Mailer) used to send the message. |
boolean |
isMeetingCancellation()
Determines if this message is a meeting cancellation (the result of calling AbstractMessage.getType() is IPM.Schedule.Meeting.Canceled). |
boolean |
isMeetingRequest()
Determines if this message is a meeting request (the result of calling AbstractMessage.getType() is IPM.Schedule.Meeting.Request). |
boolean |
isMeetingResponse()
Determines if this message is a meeting response (the result of calling AbstractMessage.getType() is IPM.Schedule.Meeting.Resp.Neg or
IPM.Schedule.Meeting.Resp.Pos or IPM.Schedule.Meeting.Resp.Tent). |
boolean |
isOutOfOfficeReply()
Determines if a message is an out of office reply. |
boolean |
isSaveInSent()
Gets whether the item should be saved in the Sent Items folder after it is transmitted. |
boolean |
isSubmitted()
Gets whether the message has been submitted to the Outbox. |
boolean |
isUndeliverableMessage()
Determines if a message is an undeliverable message. |
Message |
reply()
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverReply() |
Message |
reply(Folder folder,
boolean bReplyAll)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverReply(Folder, boolean) |
Message |
replyAll()
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverReplyAll() |
com.compoze.util.webdav.WebdavResponse30 |
send()
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverSend() |
com.compoze.util.webdav.WebdavResponse30 |
send(Mailbox mailbox)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverSend(Mailbox) |
com.compoze.util.webdav.WebdavResponse30 |
send(java.lang.String sMailSubmissionURI)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverSend(String) |
Message |
serverForward()
Requests the server to create a message to forward. |
Message |
serverForward(Folder folder)
Requests the server to create a message to forward. |
Message |
serverReply()
Requests the server to create a message to reply with. |
Message |
serverReply(Folder folder,
boolean bReplyAll)
Requests the server to create a message to reply with. |
Message |
serverReplyAll()
Requests the server to create a message to reply all with. |
void |
serverSend()
Requests the server to send the message using the user's mailbox. |
void |
serverSend(Mailbox mailbox)
Requests the server to send the message using the specified user mailbox. |
void |
serverSend(java.lang.String sMailSubmissionURI)
Requests the server to send the message using the specified submission URI. |
void |
serverUpdate(boolean bServerRefresh)
Requests the server to update the message of any changed properties. |
void |
setComment(java.lang.String sComment)
Sets the comment for the message. |
void |
setContentBase(java.lang.String sContentBase)
Sets the base for relative Uniform Resource Identifiers (URIs) occurring in other header fields and in HTML documents that do not have any BASE element within the HTML markup. |
void |
setContentDescription(java.lang.String sContentDescription)
Sets the optional description of the message body part. |
void |
setContentDisposition(java.lang.String sContentDisposition)
Sets the intended disposition of the message body part. |
void |
setContentId(java.lang.String sContentId)
Sets the unique identifier for the message body part. |
void |
setContentLanguage(java.lang.String sContentLanguage)
Sets the language identifier for the message body part text content. |
void |
setContentLocation(java.lang.String sContentLocation)
Sets the Uniform Resource Identifier (URI) that corresponds to the content of the message body part. |
void |
setContentLocation(java.net.URL contentLocation)
Sets the Uniform Resource Identifier (URI) that corresponds to the content of the message body part. |
void |
setContentTransferEncoding(java.lang.String sContentTransferEncoding)
Sets the encoding mechanism used to encode the message body part content. |
void |
setContentType(java.lang.String sContentType)
Sets the message body part content type. |
void |
setDateSent(java.util.Date sent)
Gets the date the message was sent. |
void |
setDisposition(java.lang.String sDispostion)
Sets the Mail Delivery Notification (MDN) status indicator for the message. |
void |
setDispositionNotificationAddress(java.lang.String sDispositionNotificationAddress)
Sets where disposition notifications should be sent. |
void |
setDistribution(java.util.List distribution)
Sets a list of newsgroups, intended to restrict the ditribution of the message. |
void |
setExpires(java.util.Date expires)
Sets the date the message expires. |
void |
setExpiryDate(java.util.Date expiryDate)
Sets the expiry date of the message. |
void |
setFollowupNewsgroups(java.util.List newsgroups)
Sets a list of newsgroups to which folloow up messages are to be posted. |
void |
setHeaderImportance(Importance importance)
Sets the level of importance of message in the Header: Importance field. |
void |
setHTMLDescription(java.lang.String sHTMLDescription)
Sets the HTML content of this message. |
void |
setImportance(Importance importance)
Sets the level of importance of this message. |
void |
setInReplyTo(java.lang.String sInReplyTo)
Sets the message identifier of the message which this message is a reply. |
void |
setKeywords(java.util.List keywords)
Sets a list of keywords for the message. |
void |
setMessageFlag(MessageFlag flag)
Sets the message flag for this message |
void |
setMessageId(java.lang.String sMessageId)
Sets the unique identifier of message. |
void |
setMimeVersion(java.lang.String sMimeVersion)
Sets the version of Multipurpose Internet Mail Extensions (MIME) used to format the message. |
void |
setModerator(java.lang.String sModerator)
Gets the address of the moderator that approved and posted the message. |
void |
setNewsgroups(java.util.List newsgroups)
Sets a list of newsgroup addresses for the message. |
void |
setOrganization(java.lang.String sOrganization)
Sets the organization of sender. |
void |
setOriginalRecipient(java.lang.String sOriginalRecipient)
Sets the e-mail address of an original recipient of the message. |
void |
setPriority(Priority priority)
Sets the priority of the message. |
void |
setReferences(java.lang.String sReferences)
Sets the Usenet header used to correlate replies with their original messages. |
void |
setRelayVersion(java.lang.String sRelayVersion)
Sets the version of the program responsible for transmitting an article over the immediate link. |
void |
setReplyBy(java.util.Date replyBy)
Sets date to reply to this message. |
void |
setReplyToAddresses(java.util.List addresses)
Sets the addresses to which replies should be sent. |
void |
setReturnPath(java.lang.String sReturnPath)
Sets the address of the message originator. |
void |
setReturnReceiptTo(java.lang.String sReturnReceiptTo)
Sets the address to which return receipts should be sent. |
void |
setSaveDestination(java.lang.String sSaveDestination)
Sets where the message should be saved after it is transmitted using the mail transmission URI. |
void |
setSaveDestination(java.net.URL saveDestination)
Sets where the message should be saved after it is transmitted using the mail transmission URI. |
void |
setSaveInSent(boolean bSaveInSent)
Sets whether the item should be saved in the Sent Items folder after it is transmitted. |
void |
setSender(java.lang.String sSender)
Sets the sender of the message. |
void |
setSenderName(java.lang.String sSenderName)
Sets the display name of the message sender. |
void |
setSubmitted(boolean bSubmitted)
Sets whether the message has been submitted to the Outbox. |
void |
setSummary(java.lang.String sSummary)
Sets the summary of the message. |
void |
setThreadIndex(java.lang.String sThreadIndex)
Sets the identifier of a particular conversation thread; computed from message references. |
void |
setThreadTopic(java.lang.String sTopic)
Sets the topic of discussion thread. |
void |
setXMailer(java.lang.String sName)
Sets the name of the software used to send the message. |
java.lang.String |
toString()
Returns a string representation of the object. |
| Methods inherited from class com.compoze.exchange.webdav.AbstractItem |
copy, copy, copy, createFilename, delete, equals, getContentClass, getCreationDate, getDateLastModified, getDisplayName, getFile, getHRef, getID, getParentFolder, getPermanentURL, getUID, isFolder, isHidden, isReadOnly, isRoot, move, move, move, serverCopyTo, serverCopyTo, serverCopyTo, serverCopyTo, serverDelete, serverGetParentFolder, serverMoveTo, serverMoveTo, serverMoveTo, serverMoveTo, serverUpdate, setContentClass, setContentClass, setHidden, setReadOnly, setReleased, setType, setUID, update, update, validate |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String FORWARD_PREFIX
public static final java.lang.String REPLY_PREFIX
| Constructor Detail |
protected Message(java.lang.String sSubject,
java.lang.String sOutlookMessageClass,
java.lang.String sContentClass)
protected Message(java.lang.String sSubject,
OutlookMessageType outlookMessageClass,
ContentClass contentClass)
public Message(java.lang.String sSubject)
sSubject - the subject of the message
public Message(java.lang.String sToAddresses,
java.lang.String sSubject)
sToAddresses - comma seperated list of addresses to send message tosSubject - the subject of the message
or empty)
public Message(java.util.List toAddresses,
java.lang.String sSubject)
toAddress - list of addresses to send message tosSubject - the subject of the message
public Message(com.compoze.util.mail.InternetAddress[] to,
java.lang.String sSubject)
array - of InternetAddress objects of recipients to send message tosSubject - the subject of the message| Method Detail |
public boolean isMeetingCancellation()
AbstractMessage.getType() is IPM.Schedule.Meeting.Canceled).true if the message is a meeting cancellationpublic boolean isMeetingRequest()
AbstractMessage.getType() is IPM.Schedule.Meeting.Request).true if the message is a meeting requestpublic boolean isMeetingResponse()
AbstractMessage.getType() is IPM.Schedule.Meeting.Resp.Neg or
IPM.Schedule.Meeting.Resp.Pos or IPM.Schedule.Meeting.Resp.Tent).true if the message is a meeting responsepublic java.lang.String getHTMLDescription()
public void setHTMLDescription(java.lang.String sHTMLDescription)
sHTMLDescription - the HTML content of the message.public MessageFlag getMessageFlag()
null if
flag is not set.MailHeaderProperty.X_MESSAGE_FLAGpublic void setMessageFlag(MessageFlag flag)
flag - the flag to set this message toMapiProperty.MESSAGE_FLAG_STATUS,
MapiProperty.MESSAGE_FLAG_CODEpublic java.util.Date getReplyBy()
getMessageFlag()).ExchangeRuntimeException - if this object has been released and can
no longer be usedHttpMailProperty.REPLY_BY,
getMessageFlag()public void setReplyBy(java.util.Date replyBy)
setMessageFlag(MessageFlag)).
.replyBy - the date to reply to the message.ExchangeRuntimeException - if this object has been released and can
no longer be usedHttpMailProperty.REPLY_BY,
setMessageFlag(MessageFlag)public boolean isOutOfOfficeReply()
true if the message is an out of office reply,
or its type is IPM.Note.Rules.OofTemplate.Microsoftpublic boolean isUndeliverableMessage()
true if the message is an undeliverable message,
or its type is REPORT.IPM.Note.NDRpublic java.lang.String getXMailer()
null if not setExchangeRuntimeException - if this object has been released and can
no longer be usedMailHeaderProperty.X_MAILERpublic void setXMailer(java.lang.String sName)
sName - the nameExchangeRuntimeException - if this object has been released and can
no longer be usedMailHeaderProperty.X_MAILERpublic java.lang.String getThreadTopic()
null if not setExchangeRuntimeException - if this object has been released and can
no longer be usedMailHeaderProperty.THREAD_TOPICpublic void setThreadTopic(java.lang.String sTopic)
sTopic - the topicExchangeRuntimeException - if this object has been released and can
no longer be usedMailHeaderProperty.THREAD_TOPICpublic java.lang.String getThreadIndex()
null if not setExchangeRuntimeException - if this object has been released and can
no longer be usedMailHeaderProperty.THREAD_INDEXpublic void setThreadIndex(java.lang.String sThreadIndex)
sThreadIndex - the thread indexExchangeRuntimeException - if this object has been released and can
no longer be usedMailHeaderProperty.THREAD_INDEXpublic java.lang.String getSummary()
null if not setExchangeRuntimeException - if this object has been released and can
no longer be usedMailHeaderProperty.SUMMARYpublic void setSummary(java.lang.String sSummary)
sSummary - the summaryExchangeRuntimeException - if this object has been released and can
no longer be usedMailHeaderProperty.SUMMARYpublic boolean isSubmitted()
true if submitted; false otherwiseExchangeRuntimeException - if this object has been released and can
no longer be usedHttpMailProperty.SUBMITTEDpublic void setSubmitted(boolean bSubmitted)
bSubmitted - true if submitted; false otherwiseExchangeRuntimeException - if this object has been released and can
no longer be usedHttpMailProperty.SUBMITTEDpublic java.lang.String getSenderEmail()
null if not setExchangeRuntimeException - if this object has been released and can
no longer be usedHttpMailProperty.SENDER_EMAILpublic java.lang.String getSenderName()
null if not setExchangeRuntimeException - if this object has been released and can
no longer be usedHttpMailProperty.SENDER_NAMEpublic void setSenderName(java.lang.String sSenderName)
sSenderName - display name of senderExchangeRuntimeException - if this object has been released and can
no longer be usedHttpMailProperty.SENDER_NAMEpublic java.lang.String getSender()
It is used to designate who actually sent a message when the From: header has multiple addresses
or when the sender is not the single addressee on the From: header.
null if not setExchangeRuntimeException - if this object has been released and can
no longer be usedMailHeaderProperty.SENDERpublic void setSender(java.lang.String sSender)
It is used to designate who actually sent a message when the From: header has multiple addresses, or when the sender is not the single addressee on the From: header.
sSender - the sender's addressExchangeRuntimeException - if this object has been released and can
no longer be usedMailHeaderProperty.SENDERpublic boolean isSaveInSent()
By default, the message will be stored in the user's Sent Items folder. To specify an alternate folder, use getSaveDestination() and setSaveDestination(URL) methods.
true to be saved in Sent Items folder; false otherwise- Throws:
ExchangeRuntimeException - if this object has been released and can
no longer be used- See Also:
HttpMailProperty.SAVE_IN_SENTpublic void setSaveInSent(boolean bSaveInSent)
By default, the message will be stored in the user's Sent Items folder. To specify an alternate folder, use getSaveDestination() and setSaveDestination(String) methods.
bSaveInSent - true to be saved in Sent Items folder; false otherwiseExchangeRuntimeException - if this object has been released and can
no longer be usedHttpMailProperty.SAVE_IN_SENTpublic java.lang.String getSaveDestination()
null if not setExchangeRuntimeException - if this object has been released and can
no longer be usedHttpMailProperty.SAVE_DESTINATIONpublic void setSaveDestination(java.net.URL saveDestination)
saveDestination - the url to the folder to save this messageExchangeRuntimeException - if this object has been released and can
no longer be usedHttpMailProperty.SAVE_DESTINATIONpublic void setSaveDestination(java.lang.String sSaveDestination)
sSaveDestination - the url to the folder to save this messageExchangeRuntimeException - if this object has been released and can
no longer be usedHttpMailProperty.SAVE_DESTINATIONpublic java.lang.String getReturnReceiptTo()
null if not setExchangeRuntimeException - if this object has been released and can
no longer be usedMailHeaderProperty.RETURN_RECEIPT_TOpublic void setReturnReceiptTo(java.lang.String sReturnReceiptTo)
sReturnReceiptTo - the return receipts addressExchangeRuntimeException - if this object has been released and can
no longer be usedMailHeaderProperty.RETURN_RECEIPT_TOpublic java.lang.String getReturnPath()
null if not setExchangeRuntimeException - if this object has been released and can
no longer be usedMailHeaderProperty.RETURN_PATHpublic void setReturnPath(java.lang.String sReturnPath)
sReturnPath - the message originator addressExchangeRuntimeException - if this object has been released and can
no longer be usedMailHeaderProperty.RETURN_PATHpublic java.lang.String getReplyToAddressString()
null if not setExchangeRuntimeException - if this object has been released and can
no longer be usedMailHeaderProperty.REPLY_TOpublic java.util.LinkedList getReplyToAddresses()
null if not setExchangeRuntimeException - if this object has been released and can
no longer be usedMailHeaderProperty.REPLY_TOpublic void setReplyToAddresses(java.util.List addresses)
addressList - list of addressesExchangeRuntimeException - if this object has been released and can
no longer be usedMailHeaderProperty.REPLY_TOpublic java.lang.String getRelayVersion()
null if not setMailHeaderProperty.RELAY_VERSIONpublic void setRelayVersion(java.lang.String sRelayVersion)
sRelayVersion - the version of the programMailHeaderProperty.RELAY_VERSIONpublic java.lang.String getReferences()
null if not setMailHeaderProperty.REFERENCESpublic void setReferences(java.lang.String sReferences)
sReferences - the Usenet headerMailHeaderProperty.REFERENCESpublic java.lang.String getReceived()
null if not setMailHeaderProperty.RECEIVEDpublic Priority getPriority()
null if not setHttpMailProperty.PRIORITY,
MailHeaderProperty.PRIORITYpublic void setPriority(Priority priority)
priority - the priorityHttpMailProperty.PRIORITY,
MailHeaderProperty.PRIORITYpublic java.lang.String getOriginalRecipient()
null if not setMailHeaderProperty.ORIGINAL_RECIPIENTpublic void setOriginalRecipient(java.lang.String sOriginalRecipient)
sAddress - the original recipient email addressMailHeaderProperty.ORIGINAL_RECIPIENTpublic java.lang.String getOrganization()
null if not setMailHeaderProperty.ORGANIZATIONpublic void setOrganization(java.lang.String sOrganization)
sOrganization - the organizationMailHeaderProperty.ORGANIZATIONpublic java.lang.String getNewsgroupsString()
null if not setExchangeRuntimeException - if this object has been released and can
no longer be usedMailHeaderProperty.NEWSGROUPSpublic java.util.LinkedList getNewsgroups()
ExchangeRuntimeException - if this object has been released and can
no longer be usedMailHeaderProperty.NEWSGROUPSpublic void setNewsgroups(java.util.List newsgroups)
newsgroups - list of newsgroup addressesExchangeRuntimeException - if this object has been released and can
no longer be usedMailHeaderProperty.NEWSGROUPSpublic java.lang.String getMessageId()
null if not setMailHeaderProperty.MESSAGE_IDpublic void setMessageId(java.lang.String sMessageId)
sMessageId - the identifierMailHeaderProperty.MESSAGE_IDpublic int getLines()
MailHeaderProperty.LINESpublic java.lang.String getKeywordsString()
null if not setExchangeRuntimeException - if this object has been released and can
no longer be usedMailHeaderProperty.KEYWORDSpublic java.util.LinkedList getKeywords()
ExchangeRuntimeException - if this object has been released and can
no longer be usedMailHeaderProperty.KEYWORDSpublic void setKeywords(java.util.List keywords)
keywords - list of keywordsExchangeRuntimeException - if this object has been released and can
no longer be usedMailHeaderProperty.KEYWORDSpublic java.lang.String getInReplyTo()
null if not setMailHeaderProperty.IN_REPLY_TOpublic void setInReplyTo(java.lang.String sInReplyTo)
sInReplyTo - the message identifierMailHeaderProperty.IN_REPLY_TOpublic Importance getImportance()
getImportance in class AbstractMessagenull if not setHttpMailProperty.IMPORTANCE,
MailHeaderProperty.IMPORTANCEpublic void setImportance(Importance importance)
setImportance in class AbstractMessageimportance - the level of importance of the messageHttpMailProperty.IMPORTANCE,
MailHeaderProperty.IMPORTANCEpublic Importance getHeaderImportance()
null if not setMailHeaderProperty.IMPORTANCEpublic void setHeaderImportance(Importance importance)
importance - the level of importanceMailHeaderProperty.IMPORTANCEpublic java.lang.String getFollowupNewsgroupString()
This property corresponds to the Followup-To: mailheader.
null if not setExchangeRuntimeException - if this object has been released and can
no longer be usedMailHeaderProperty.FOLLOWUP_TOpublic java.util.LinkedList getFollowupNewsgroups()
This property corresponds to the Followup-To: mailheader.
ExchangeRuntimeException - if this object has been released and can
no longer be usedMailHeaderProperty.FOLLOWUP_TOpublic void setFollowupNewsgroups(java.util.List newsgroups)
This property corresponds to the Followup-To: mailheader.
newsgroups - list of newsgroupsExchangeRuntimeException - if this object has been released and can
no longer be usedMailHeaderProperty.FOLLOWUP_TOpublic java.util.Date getExpiryDate()
null if not setExchangeRuntimeException - if this object has been released and can
no longer be usedMailHeaderProperty.EXPIRY_DATEpublic void setExpiryDate(java.util.Date expiryDate)
expiryDate - the expiry dateExchangeRuntimeException - if this object has been released and can
no longer be usedMailHeaderProperty.EXPIRY_DATEpublic java.util.Date getExpires()
null if not setExchangeRuntimeException - if this object has been released and can
no longer be usedMailHeaderProperty.EXPIRESpublic void setExpires(java.util.Date expires)
ExchangeRuntimeException - if this object has been released and can
no longer be usedMailHeaderProperty.EXPIRESpublic java.lang.String getDistributionString()
null if not setExchangeRuntimeException - if this object has been released and can
no longer be usedMailHeaderProperty.DISTRIBUTIONpublic java.util.LinkedList getDistribution()
ExchangeRuntimeException - if this object has been released and can
no longer be usedMailHeaderProperty.DISTRIBUTIONpublic void setDistribution(java.util.List distribution)
distribution - list of newsgroupsExchangeRuntimeException - if this object has been released and can
no longer be usedMailHeaderProperty.DISTRIBUTIONpublic java.lang.String getDispositionNotificationAddress()
null if not setMailHeaderProperty.DISPOSITION_NOTIFICATION_TOpublic void setDispositionNotificationAddress(java.lang.String sDispositionNotificationAddress)
sDispositionNotificationAddress - diposition notification addressMailHeaderProperty.DISPOSITION_NOTIFICATION_TOpublic java.lang.String getDisposition()
null if not setMailHeaderProperty.DISPOSITIONpublic void setDisposition(java.lang.String sDispostion)
sDisposition - the MDN status indicatorMailHeaderProperty.DISPOSITIONpublic java.lang.String getDisplayTo()
public java.lang.String getDisplayCC()
public java.util.Date getDateSent()
null if not setMailHeaderProperty.DATEpublic void setDateSent(java.util.Date sent)
sent - the date message was sentMailHeaderProperty.DATEpublic java.lang.String getModerator()
null if not setMailHeaderProperty.APPROVEDpublic void setModerator(java.lang.String sModerator)
sMoerator - the moderator's addressMailHeaderProperty.APPROVEDpublic java.lang.String getComment()
getComment in class AbstractItemnull if not setMailHeaderProperty.COMMENTpublic void setComment(java.lang.String sComment)
setComment in class AbstractItemsComment - the commmentMailHeaderProperty.COMMENTpublic java.lang.String getContentBase()
null if not setMailHeaderProperty.CONTENT_BASEpublic void setContentBase(java.lang.String sContentBase)
sConentBase - base for relative URIsMailHeaderProperty.CONTENT_BASEpublic java.lang.String getContentDescription()
null if not setMailHeaderProperty.CONTENT_DESCRIPTIONpublic void setContentDescription(java.lang.String sContentDescription)
sContentDescription - optional descriptionMailHeaderProperty.CONTENT_DESCRIPTIONpublic java.lang.String getContentDisposition()
null if not setMailHeaderProperty.CONTENT_DISPOSITIONpublic void setContentDisposition(java.lang.String sContentDisposition)
MailHeaderProperty.CONTENT_DISPOSITIONpublic java.lang.String getContentDispositionType()
null if not setHttpMailProperty.CONTENT_DISPOSITION_TYPEpublic java.lang.String getContentId()
null if not setMailHeaderProperty.CONTENT_IDpublic void setContentId(java.lang.String sContentId)
MailHeaderProperty.CONTENT_IDpublic java.lang.String getContentLanguage()
null if not setMailHeaderProperty.CONTENT_LANGUAGEpublic void setContentLanguage(java.lang.String sContentLanguage)
MailHeaderProperty.CONTENT_LANGUAGEpublic java.lang.String getContentLocation()
null if not setMailHeaderProperty.CONTENT_LOCATIONpublic void setContentLocation(java.net.URL contentLocation)
contentLocation - the content URIMailHeaderProperty.CONTENT_LOCATIONpublic void setContentLocation(java.lang.String sContentLocation)
sContentLocation - the content URIMailHeaderProperty.CONTENT_LOCATIONpublic java.lang.String getContentMediaType()
null if not setHttpMailProperty.CONTENT_MEDIA_TYPEpublic java.lang.String getContentTransferEncoding()
null if not setMailHeaderProperty.CONTENT_TRANSFER_ENCODINGpublic void setContentTransferEncoding(java.lang.String sContentTransferEncoding)
MailHeaderProperty.CONTENT_TRANSFER_ENCODINGpublic java.lang.String getContentType()
null if not setMailHeaderProperty.CONTENT_TYPEpublic void setContentType(java.lang.String sContentType)
MailHeaderProperty.CONTENT_TYPEpublic java.lang.String getMimeVersion()
null if not setMailHeaderProperty.MIME_VERSIONpublic void setMimeVersion(java.lang.String sMimeVersion)
sMimeVersion - the verison of MIME usedMailHeaderProperty.MIME_VERSION
public com.compoze.util.webdav.WebdavResponse30 send()
throws ExchangeException
serverSend()
ExchangeException - if a problem occurred while interacting with the Exchange storeExchangeResponseException - if not sent successfullyExchangeRuntimeException - if this object has been released and can no longer be used
public void serverSend()
throws ExchangeException
ExchangeException - if a problem occurred while interacting with the Exchange storeExchangeResponseException - if not sent successfullyExchangeRuntimeException - if this object has been released and can no longer be used
public com.compoze.util.webdav.WebdavResponse30 send(Mailbox mailbox)
throws ExchangeException
serverSend(Mailbox)
mailbox - the mailbox to send the message from.ExchangeException - if a problem occurred while interacting with the Exchange storeExchangeResponseException - if not sent successfullyExchangeRuntimeException - if this object has been released and can no longer be used
public void serverSend(Mailbox mailbox)
throws ExchangeException
ExchangeException - if a problem occurred while interacting with the Exchange storeExchangeResponseException - if not sent successfullyExchangeRuntimeException - if this object has been released and can no longer be used
public com.compoze.util.webdav.WebdavResponse30 send(java.lang.String sMailSubmissionURI)
throws ExchangeException
serverSend(String)
sMailSubmissionURI - the URI to submit the mail message to.ExchangeException - if a problem occurred while interacting with the Exchange storeExchangeResponseException - if not sent successfullyExchangeRuntimeException - if this object has been released and can no longer be usedMailbox.getMailSubmissionURI()
public void serverSend(java.lang.String sMailSubmissionURI)
throws ExchangeException
sMailSubmissionURI - the URI to submit the mail message to.ExchangeException - if a problem occurred while interacting with the Exchange storeExchangeResponseException - if not sent successfullyExchangeRuntimeException - if this object has been released and can no longer be usedMailbox.getMailSubmissionURI()
public Message forward()
throws ExchangeException
serverForward()
public Message serverForward()
throws ExchangeException
ExchangeException - if a problem occurred while interacting with the Exchange storeExchangeRuntimeException - if this object has been released and can no longer be used
public Message forward(Folder folder)
throws ExchangeException
serverForward(Folder)
folder - folder to create message in
public Message serverForward(Folder folder)
throws ExchangeException
folder - the folder to create the forward inExchangeException - if a problem occurred while interacting with the Exchange storeExchangeRuntimeException - if this object has been released and can no longer be used
public Message reply()
throws ExchangeException
serverReply()
public Message serverReply()
throws ExchangeException
folder - the folder to create the reply inbReplyAll - true reply to allExchangeException - if a problem occurred while interacting with the Exchange storeExchangeRuntimeException - if this object has been released and can no longer be used
public Message replyAll()
throws ExchangeException
serverReplyAll()
public Message serverReplyAll()
throws ExchangeException
folder - the folder to create the reply all inExchangeException - if a problem occurred while interacting with the Exchange storeExchangeRuntimeException - if this object has been released and can no longer be used
public Message reply(Folder folder,
boolean bReplyAll)
throws ExchangeException
serverReply(Folder, boolean)
true) will create a message that will reply to all members in the
From, To, Cc, and Bcc fields.folder - folder to create message inbReplyAll - true to reply to all: false otherwise
public Message serverReply(Folder folder,
boolean bReplyAll)
throws ExchangeException
folder - the folder to create the reply inbReplyAll - true reply to allExchangeException - if a problem occurred while interacting with the Exchange storeExchangeRuntimeException - if this object has been released and can no longer be used
public void serverUpdate(boolean bServerRefresh)
throws ExchangeException
If the message does not exist in the Exchange store, it is created, else the existing mesage is updated.
An AttachmentException is thrown if any conflicts occur attaching
(uploading) files to the message. The exception will state what files failed
to attach. The message is still updated and can be sent, but will exclude
the failed attachments.
serverUpdate in class AbstractMessagebServerRefresh - true requests the server to refresh
the propertiesAttachmentException - if any files failed to attached to this message.ExchangeException - if a problem occurred while connecting to or interaction with Exchange ServerExchangeRuntimeException - if this object has been released and can no longer be used
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class AbstractMessagejava.lang.CloneNotSupportedException - if the object's class does not support the Cloneable interface.public java.lang.String toString()
toString in class AbstractMessagepublic static java.util.List getDefaultProperties()
AbstractItem.getDefaultProperties()public static java.util.List getProperties()
AbstractMessage.getProperties()
|
Compoze Software, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||