public abstract class HeadersFormattingOptions extends SaveOptions
Allows to specify headers formatting options when saving MailMessage to Mhtml or Html format.
| Constructor and Description |
|---|
HeadersFormattingOptions()
Initializes a new instance of this class that can be used to save a MailMessage in the Mhtml format.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAfterHeadersFormat()
After headers format.
|
String |
getBeforeHeadersFormat()
Before headers format.
|
String |
getCssStyles()
Gets or sets the additional css styles for the formatter.
|
String |
getDefaultHeaderFormat()
Default header line format.
|
String |
getDefaultPageHeaderFormat()
Default page header format.
|
boolean |
getExtractHTMLBodyResourcesAsAttachments()
Defines whether extract HTML body resources as attachments or not.
|
StringDictionary |
getFormatTemplates()
Gets the format templates.
|
int |
getRenderedContactFields()
Defines groups of Contact fields which will be included in output mhtml.
|
List<String> |
getRenderingHeaders()
Gets list of headers for rendering.
|
ResourceHtmlRenderingHandler |
getResourceHtmlRenderingHandler()
Provides customization of rendering resources in html.
|
int |
getTimeout()
Limits the time in milliseconds of formatting message while saving in Mht.
|
TimeoutReachedHandler |
getTimeoutReachedHandler()
Raised if timed out while saving to Mhtml.
|
void |
setAfterHeadersFormat(String value)
After headers format.
|
void |
setBeforeHeadersFormat(String value)
Before headers format.
|
void |
setCssStyles(String value)
Gets or sets the additional css styles for the formatter.
|
void |
setDefaultHeaderFormat(String value)
Default header line format.
|
void |
setDefaultPageHeaderFormat(String value)
Default page header format.
|
void |
setExtractHTMLBodyResourcesAsAttachments(boolean value)
Defines whether extract HTML body resources as attachments or not.
|
void |
setRenderedContactFields(int value)
Defines groups of Contact fields which will be included in output mhtml.
|
void |
setResourceHtmlRenderingHandler(ResourceHtmlRenderingHandler value)
Provides customization of rendering resources in html.
|
void |
setTimeout(int value)
Limits the time in milliseconds of formatting message while saving in Mht.
|
void |
setTimeoutReachedHandler(TimeoutReachedHandler value)
Raised if timed out while saving to Mhtml.
|
createSaveOptions, getCustomProgressHandler, getDefaultEml, getDefaultEmlx, getDefaultHtml, getDefaultMhtml, getDefaultMsg, getDefaultMsgUnicode, getDefaultOft, getMailMessageSaveType, setCustomProgressHandler, setMailMessageSaveTypepublic HeadersFormattingOptions()
Initializes a new instance of this class that can be used to save a MailMessage in the Mhtml format.
public final int getRenderedContactFields()
Defines groups of Contact fields which will be included in output mhtml. Default value is ContactFieldsSet.AllExisting.
public final void setRenderedContactFields(int value)
Defines groups of Contact fields which will be included in output mhtml. Default value is ContactFieldsSet.AllExisting.
public final String getCssStyles()
Gets or sets the additional css styles for the formatter.
Value: The styles to be injected into resulting html body.public final 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 final String getDefaultPageHeaderFormat()
Default page header format.
Value: The styles to be injected into resulting html body.public final void setDefaultPageHeaderFormat(String value)
Default page header format.
Value: The styles to be injected into resulting html body.public final String getDefaultHeaderFormat()
Default header line format.
Value: The styles to be injected into resulting html body.public final void setDefaultHeaderFormat(String value)
Default header line format.
Value: The styles to be injected into resulting html body.public final String getBeforeHeadersFormat()
Before headers format.
Value: The styles to be injected into resulting html body.public final void setBeforeHeadersFormat(String value)
Before headers format.
Value: The styles to be injected into resulting html body.public final String getAfterHeadersFormat()
After headers format.
Value: The styles to be injected into resulting html body.public final void setAfterHeadersFormat(String value)
After headers format.
Value: The styles to be injected into resulting html body.public final StringDictionary getFormatTemplates()
Gets the format templates.
Value: The format templates.public final List<String> getRenderingHeaders()
Gets list of headers for rendering.
public final boolean getExtractHTMLBodyResourcesAsAttachments()
Defines whether extract HTML body resources as attachments or not. Default value is false.
public final void setExtractHTMLBodyResourcesAsAttachments(boolean value)
Defines whether extract HTML body resources as attachments or not. Default value is false.
public final TimeoutReachedHandler getTimeoutReachedHandler()
Raised if timed out while saving to Mhtml.
public final void setTimeoutReachedHandler(TimeoutReachedHandler value)
Raised if timed out while saving to Mhtml.
public final int getTimeout()
Limits the time in milliseconds of formatting message while saving in Mht. Default value 3 sec.
public final void setTimeout(int value)
Limits the time in milliseconds of formatting message while saving in Mht. Default value 3 sec.
public final ResourceHtmlRenderingHandler getResourceHtmlRenderingHandler()
Provides customization of rendering resources in html.
public final void setResourceHtmlRenderingHandler(ResourceHtmlRenderingHandler value)
Provides customization of rendering resources in html.
Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.