@Deprecated public class MhtMessageFormatter extends Object implements IMessageFormatter
Provides a default formatter for Mht conversion.
Constructor and Description |
---|
MhtMessageFormatter()
Deprecated.
Creates an instance of MhtMessageFormatter.
|
Modifier and Type | Method and Description |
---|---|
void |
format(MailMessage message)
Deprecated.
Adds information header into message body.
|
void |
format(MailMessage message,
int formatOptions)
Deprecated.
Adds information header into message body.
|
String |
getAttachmentFormat()
Deprecated.
Gets or sets the attachment format.
|
String |
getBccFormat()
Deprecated.
Gets or sets the bcc format.
|
String |
getCcFormat()
Deprecated.
Gets or sets the cc format.
|
String |
getCssStyles()
Deprecated.
Gets or sets the additional css styles for the formatter.
|
String |
getDateTimeFormat()
Deprecated.
Gets or sets the date time format.
|
static int |
getDefaultMhtFormatOptions()
Deprecated.
MhtFormatOptions that will be used for formatting by default.
|
String |
getEndFormat()
Deprecated.
Gets or sets the End format.
|
com.aspose.ms.System.Collections.Specialized.StringDictionary |
getFormatTemplates()
Deprecated.
Gets the format templates.
|
String |
getFromFormat()
Deprecated.
Gets or sets format of the 'From' field.
|
String |
getImportanceFormat()
Deprecated.
Gets or sets the importance format.
|
String |
getLocationFormat()
Deprecated.
Gets or sets the Location format.
|
String |
getOrganizerFormat()
Deprecated.
Gets or sets the Organizer format.
|
String |
getPageHeaderFormat()
Deprecated.
Gets or sets the page header format.
|
boolean |
getPreserveOriginalDate()
Deprecated.
Defines whether need keep original date in mail message when saving or not.
|
String |
getRecurrenceFormat()
Deprecated.
Gets or sets the Recurrence format.
|
String |
getRecurrencePatternFormat()
Deprecated.
Gets or sets the RecurrencePattern format.
|
String |
getRequiredAttendeesFormat()
Deprecated.
Gets or sets the RequiredAttendees format.
|
boolean |
getSaveAttachments()
Deprecated.
Gets or sets a value indicating whether to save attachments.
|
String |
getSentFormat()
Deprecated.
Gets or sets the sent format.
|
String |
getShowTimeAsFormat()
Deprecated.
Gets or sets the ShowTimeAs format.
|
String |
getStartFormat()
Deprecated.
Gets or sets the Start format.
|
String |
getSubjectFormat()
Deprecated.
Gets or sets the subject format.
|
String |
getToFormat()
Deprecated.
Gets or sets to format.
|
String |
getWhenFormat()
Deprecated.
|
void |
setAttachmentFormat(String value)
Deprecated.
Gets or sets the attachment format.
|
void |
setBccFormat(String value)
Deprecated.
Gets or sets the bcc format.
|
void |
setCcFormat(String value)
Deprecated.
Gets or sets the cc format.
|
void |
setCssStyles(String value)
Deprecated.
Gets or sets the additional css styles for the formatter.
|
void |
setDateTimeFormat(String value)
Deprecated.
Gets or sets the date time format.
|
void |
setEndFormat(String value)
Deprecated.
Gets or sets the End format.
|
void |
setFromFormat(String value)
Deprecated.
Gets or sets format of the 'From' field.
|
void |
setImportanceFormat(String value)
Deprecated.
Gets or sets the importance format.
|
void |
setLocationFormat(String value)
Deprecated.
Gets or sets the Location format.
|
void |
setOrganizerFormat(String value)
Deprecated.
Gets or sets the Organizer format.
|
void |
setPageHeaderFormat(String value)
Deprecated.
Gets or sets the page header format.
|
void |
setPreserveOriginalDate(boolean value)
Deprecated.
Defines whether need keep original date in mail message when saving or not.
|
void |
setRecurrenceFormat(String value)
Deprecated.
Gets or sets the Recurrence format.
|
void |
setRecurrencePatternFormat(String value)
Deprecated.
Gets or sets the RecurrencePattern format.
|
void |
setRequiredAttendeesFormat(String value)
Deprecated.
Gets or sets the RequiredAttendees format.
|
void |
setSaveAttachments(boolean value)
Deprecated.
Gets or sets a value indicating whether to save attachments.
|
void |
setSentFormat(String value)
Deprecated.
Gets or sets the sent format.
|
void |
setShowTimeAsFormat(String value)
Deprecated.
Gets or sets the ShowTimeAs format.
|
void |
setStartFormat(String value)
Deprecated.
Gets or sets the Start format.
|
void |
setSubjectFormat(String value)
Deprecated.
Gets or sets the subject format.
|
void |
setToFormat(String value)
Deprecated.
Gets or sets to format.
|
void |
setWhenFormat(String value)
Deprecated.
|
public MhtMessageFormatter()
Creates an instance of MhtMessageFormatter.
public boolean getSaveAttachments()
Gets or sets a value indicating whether to save attachments.
Value:true
if attachments should be saved; otherwise, false
.public void setSaveAttachments(boolean value)
Gets or sets a value indicating whether to save attachments.
Value:true
if attachments should be saved; otherwise, false
.public String getLocationFormat()
Gets or sets the Location format.
Value: The Location format.public void setLocationFormat(String value)
Gets or sets the Location format.
Value: The Location format.public String getStartFormat()
Gets or sets the Start format.
Value: The Start format.public void setStartFormat(String value)
Gets or sets the Start format.
Value: The Start format.public String getEndFormat()
Gets or sets the End format.
Value: The End format.public void setEndFormat(String value)
Gets or sets the End format.
Value: The End format.public String getShowTimeAsFormat()
Gets or sets the ShowTimeAs format.
Value: The ShowTimeAs format.public void setShowTimeAsFormat(String value)
Gets or sets the ShowTimeAs format.
Value: The ShowTimeAs format.public String getRecurrenceFormat()
Gets or sets the Recurrence format.
Value: The Recurrence format.public void setRecurrenceFormat(String value)
Gets or sets the Recurrence format.
Value: The Recurrence format.public String getRecurrencePatternFormat()
Gets or sets the RecurrencePattern format.
Value: The RecurrencePattern format.public void setRecurrencePatternFormat(String value)
Gets or sets the RecurrencePattern format.
Value: The RecurrencePattern format.public String getOrganizerFormat()
Gets or sets the Organizer format.
Value: The Organizer format.public void setOrganizerFormat(String value)
Gets or sets the Organizer format.
Value: The Organizer format.public String getRequiredAttendeesFormat()
Gets or sets the RequiredAttendees format.
Value: The RequiredAttendees format.public void setRequiredAttendeesFormat(String value)
Gets or sets the RequiredAttendees format.
Value: The RequiredAttendees format.@Deprecated public String getWhenFormat()
Gets or sets the When format.
Value: The When format.@Deprecated public void setWhenFormat(String value)
Gets or sets the When format.
Value: The When format.public boolean getPreserveOriginalDate()
Defines whether need keep original date in mail message when saving or not. Default value is true.
public void setPreserveOriginalDate(boolean value)
Defines whether need keep original date in mail message when saving or not. Default value is true.
public String getDateTimeFormat()
Gets or sets the date time format.
Value: The date time format.public void setDateTimeFormat(String value)
Gets or sets the date time format.
Value: The date time format.public String getPageHeaderFormat()
Gets or sets the page header format.
Value: The page header format.public void setPageHeaderFormat(String value)
Gets or sets the page header format.
Value: The page header format.public String getFromFormat()
Gets or sets format of the 'From' field.
Value: Format of the 'From' field.public void setFromFormat(String value)
Gets or sets format of the 'From' field.
Value: Format of the 'From' field.public String getSentFormat()
Gets or sets the sent format.
Value: The sent format.public void setSentFormat(String value)
Gets or sets the sent format.
Value: The sent format.public String getToFormat()
Gets or sets to format.
Value: To format.public void setToFormat(String value)
Gets or sets to format.
Value: To format.public String getCcFormat()
Gets or sets the cc format.
Value: The cc format.public void setCcFormat(String value)
Gets or sets the cc format.
Value: The cc format.public String getSubjectFormat()
Gets or sets the subject format.
Value: The subject format.public void setSubjectFormat(String value)
Gets or sets the subject format.
Value: The subject format.public String getAttachmentFormat()
Gets or sets the attachment format.
Value: The attachment format.public void setAttachmentFormat(String value)
Gets or sets the attachment format.
Value: The attachment format.public String getBccFormat()
Gets or sets the bcc format.
Value: The bcc format.public void setBccFormat(String value)
Gets or sets the bcc format.
Value: The bcc format.public String getCssStyles()
Gets or sets the additional css styles for the formatter.
Value: The styles to be injected into resulting html body.public void setCssStyles(String value)
Gets or sets the additional css styles for the formatter.
Value: The styles to be injected into resulting html body.public String getImportanceFormat()
Gets or sets the importance format.
Value: The importance format.public void setImportanceFormat(String value)
Gets or sets the importance format.
Value: The importance format.public static int getDefaultMhtFormatOptions()
MhtFormatOptions that will be used for formatting by default.
public com.aspose.ms.System.Collections.Specialized.StringDictionary getFormatTemplates()
Gets the format templates.
Value: The format templates.getFormatTemplates
in interface IMessageFormatter
public void format(MailMessage message)
Adds information header into message body.
format
in interface IMessageFormatter
message
- The MailMessage to be formatted.public void format(MailMessage message, int formatOptions)
Adds information header into message body.
message
- The MailMessage to be formatted.formatOptions
- Options for formattingMhtFormatOptions
.Copyright (c) 2008-2018 Aspose Pty Ltd. All Rights Reserved.