public class MhtMessageFormatter extends Object
Provides a default formatter for Mht conversion.
Constructor and Description |
---|
MhtMessageFormatter()
Creates an instance of MhtMessageFormatter.
|
Modifier and Type | Method and Description |
---|---|
void |
format(MailMessage message)
Adds information header into message body.
|
void |
format(MailMessage message,
boolean writeCompleteEmailAddress)
Adds information header into message body.
|
String |
getAttachmentFormat()
Gets or sets the attachment format.
|
String |
getBccFormat()
Gets or sets the bcc format.
|
String |
getCcFormat()
Gets or sets the cc format.
|
String |
getCssStyles()
Gets or sets the additional css styles for the formatter.
|
String |
getDateTimeFormat()
Gets or sets the date time format.
|
HashMap<String,String> |
getFormatTemplates()
Gets the format templates.
|
String |
getFormFormat()
Deprecated.
|
String |
getFromFormat()
Gets or sets format of the "From" field.
|
String |
getImportanceFormat()
Gets or sets the importance format.
|
String |
getPageHeaderFormat()
Gets or sets the page header format.
|
boolean |
getSaveAttachments()
Gets or sets a value indicating whether to save attachments.
|
String |
getSentFormat()
Gets or sets the sent format.
|
String |
getSubjectFormat()
Gets or sets the subject format.
|
String |
getToFormat()
Gets or sets to format.
|
void |
setAttachmentFormat(String value) |
void |
setBccFormat(String value) |
void |
setCcFormat(String value) |
void |
setCssStyles(String value) |
void |
setDateTimeFormat(String value) |
void |
setFormFormat(String value)
Deprecated.
|
void |
setFromFormat(String value) |
void |
setImportanceFormat(String value) |
void |
setPageHeaderFormat(String value) |
void |
setSaveAttachments(boolean value) |
void |
setSentFormat(String value) |
void |
setSubjectFormat(String value) |
void |
setToFormat(String value) |
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)
public String getDateTimeFormat()
Gets or sets the date time format.
Value: The date time format.public void setDateTimeFormat(String value)
public String getPageHeaderFormat()
Gets or sets the page header format.
Value: The page header format.public void setPageHeaderFormat(String value)
@Deprecated public String getFormFormat()
Gets or sets the from format.
Value: The from format.@Deprecated public void setFormFormat(String value)
public String getFromFormat()
Gets or sets format of the "From" field.
Value: Format of the "From" field.public void setFromFormat(String value)
public String getSentFormat()
Gets or sets the sent format.
Value: The sent format.public void setSentFormat(String value)
public String getToFormat()
Gets or sets to format.
Value: To format.public void setToFormat(String value)
public String getCcFormat()
Gets or sets the cc format.
Value: The cc format.public void setCcFormat(String value)
public String getSubjectFormat()
Gets or sets the subject format.
Value: The subject format.public void setSubjectFormat(String value)
public String getAttachmentFormat()
Gets or sets the attachment format.
Value: The attachment format.public void setAttachmentFormat(String value)
public String getBccFormat()
Gets or sets the bcc format.
Value: The bcc format.public void setBccFormat(String value)
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)
public String getImportanceFormat()
Gets or sets the importance format.
Value: The importance format.public void setImportanceFormat(String value)
public HashMap<String,String> getFormatTemplates()
Gets the format templates.
Value: The format templates.public void format(MailMessage message)
Adds information header into message body.
message
- The MailMessage to be formatted.public void format(MailMessage message, boolean writeCompleteEmailAddress)
Adds information header into message body.
message
- The MailMessage to be formatted.writeCompleteEmailAddress
- if set to true
[write complete email address].Copyright (c) 2008-2013 Aspose Pty Ltd. All Rights Reserved.