public abstract class MailMessageInterpretor extends Object
The base class for MailMessage interpretor.
Modifier | Constructor and Description |
---|---|
protected |
MailMessageInterpretor()
Initializes a new instance
of the MailMessageInterpretor class.
|
Modifier and Type | Method and Description |
---|---|
abstract MailMessageInterpretor |
deepClone()
Creates a copy of the current instance.
|
MailMessage |
interpret(MapiMessage mapiMessage)
Imports the MapiMessage information into a MailMessage object.
|
protected void |
loadAttachment(MailMessage mailmessage,
MapiMessage mapiMessage)
Imports the attachments from to the specified MapiMessage instance.
|
protected void |
loadEachAttachment(MailMessage mailmessage,
MapiMessage mapiMessage,
int index)
Imports each attachment from to the specified MapiMessage instance.
|
protected void |
loadMessageBody(MailMessage mailmessage,
MapiMessage mapiMessage)
Creates the Body (HtmlBody and TextBody) of the MailMessage
according to the specified MapiMessage instance.
|
protected void |
loadMessageBodyHtml(MailMessage mailmessage,
MapiMessage mapiMessage)
Creates the HtmlBody property of the MailMessage
according to the specified MapiMessage instance.
|
protected void |
loadMessageBodyText(MailMessage mailmessage,
MapiMessage mapiMessage)
Creates the TextBody property of the MailMessage according to the specified MapiMessage instance.
|
protected void |
loadMessageHeader(MailMessage mailmessage,
MapiMessage mapiMessage)
Imports the headers of MIME protocol to a MailMessage from the MapiMessage instance.
|
void |
save(MapiMessage mapiMessage,
OutputStream stream,
MessageFormat messageFormat) |
protected MailMessageInterpretor()
Initializes a new instance of the MailMessageInterpretor class.
public MailMessage interpret(MapiMessage mapiMessage)
Imports the MapiMessage information into a MailMessage object.
mapiMessage
- The source MapiMessage.public void save(MapiMessage mapiMessage, OutputStream stream, MessageFormat messageFormat)
public abstract MailMessageInterpretor deepClone()
Creates a copy of the current instance.
protected void loadMessageHeader(MailMessage mailmessage, MapiMessage mapiMessage)
Imports the headers of MIME protocol to a MailMessage from the MapiMessage instance.
mailmessage
- The target MailMessage.mapiMessage
- The source MapiMessage.protected void loadMessageBodyHtml(MailMessage mailmessage, MapiMessage mapiMessage)
Creates the HtmlBody property of the MailMessage according to the specified MapiMessage instance.
mailmessage
- The target MailMessage.mapiMessage
- The source MapiMessage.protected void loadMessageBodyText(MailMessage mailmessage, MapiMessage mapiMessage)
Creates the TextBody property of the MailMessage according to the specified MapiMessage instance.
mailmessage
- The target MailMessage.mapiMessage
- The source MapiMessage.protected void loadMessageBody(MailMessage mailmessage, MapiMessage mapiMessage)
Creates the Body (HtmlBody and TextBody) of the MailMessage according to the specified MapiMessage instance.
mailmessage
- The target MailMessage.mapiMessage
- The source MapiMessage.protected void loadAttachment(MailMessage mailmessage, MapiMessage mapiMessage)
Imports the attachments from to the specified MapiMessage instance.
mailmessage
- The target MailMessage.mapiMessage
- The source MapiMessage.protected void loadEachAttachment(MailMessage mailmessage, MapiMessage mapiMessage, int index)
Imports each attachment from to the specified MapiMessage instance.
mailmessage
- The target MailMessage.mapiMessage
- The source MapiMessage.index
- The attachment index.Copyright (c) 2008-2014 Aspose Pty Ltd. All Rights Reserved.