public class HtmlSaveOptions extends HeadersFormattingOptions
Allows to specify additional options when saving MailMessage to Html format.
| Constructor and Description |
|---|
HtmlSaveOptions()
Initializes a new instance of this class that can be used to save a MailMessage in the Html format.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getCheckBodyContentEncoding()
Defines whether need check message body content encoding when saving.
|
int |
getHtmlFormatOptions()
Gets or sets additional options when saving in HTML format.
|
ResourceHtmlRenderingHandler |
getResourceHtmlRenderingHandler()
Provides customization of rendering resources in html.
|
int |
getResourceRenderingMode()
Provides set various modes of rendering resources in html.
|
boolean |
getUseRelativePathToResources()
Default value is false.
|
void |
setCheckBodyContentEncoding(boolean value)
Defines whether need check message body content encoding when saving.
|
void |
setHtmlFormatOptions(int value)
Gets or sets additional options when saving in HTML format.
|
void |
setResourceHtmlRenderingHandler(ResourceHtmlRenderingHandler value)
Provides customization of rendering resources in html.
|
void |
setResourceRenderingMode(int value)
Provides set various modes of rendering resources in html.
|
void |
setUseRelativePathToResources(boolean value)
Default value is false.
|
getAfterHeadersFormat, getBeforeHeadersFormat, getCssStyles, getDefaultHeaderFormat, getDefaultPageHeaderFormat, getFormatTemplates, getRenderedContactFields, getRenderingHeaders, setAfterHeadersFormat, setBeforeHeadersFormat, setCssStyles, setDefaultHeaderFormat, setDefaultPageHeaderFormat, setRenderedContactFieldscreateSaveOptions, getCustomProgressHandler, getDefaultEml, getDefaultEmlx, getDefaultHtml, getDefaultMhtml, getDefaultMsg, getDefaultMsgUnicode, getDefaultOft, getMailMessageSaveType, setCustomProgressHandler, setMailMessageSaveTypepublic HtmlSaveOptions()
Initializes a new instance of this class that can be used to save a MailMessage in the Html format.
public final int getHtmlFormatOptions()
Gets or sets additional options when saving in HTML format. Default value is HtmlFormatOptions.None.
public final void setHtmlFormatOptions(int value)
Gets or sets additional options when saving in HTML format. Default value is HtmlFormatOptions.None.
public final boolean getCheckBodyContentEncoding()
Defines whether need check message body content encoding when saving. By default the value is false.
MailMessage.HtmlBody(MailMessage.getHtmlBody()/MailMessage.setHtmlBody(String)) content encoding matches
to the encoding specified by the MailMessage.BodyEncoding(MailMessage.getBodyEncoding()/MailMessage#setBodyEncoding(Encoding)) property.
If the HtmlBody content encoding doesn't match BodyEncoding property,
the MailMessage.BodyEncoding(MailMessage.getBodyEncoding()/MailMessage#setBodyEncoding(Encoding)) and MailMessage.PreferredTextEncoding(MailMessage.getPreferredTextEncoding()/MailMessage#setPreferredTextEncoding(Encoding)) properties will be changed to default System.Text.Encoding.UTF8(java.nio.charset.Charset#getUTF8).
public final void setCheckBodyContentEncoding(boolean value)
Defines whether need check message body content encoding when saving. By default the value is false.
MailMessage.HtmlBody(MailMessage.getHtmlBody()/MailMessage.setHtmlBody(String)) content encoding matches
to the encoding specified by the MailMessage.BodyEncoding(MailMessage.getBodyEncoding()/MailMessage#setBodyEncoding(Encoding)) property.
If the HtmlBody content encoding doesn't match BodyEncoding property,
the MailMessage.BodyEncoding(MailMessage.getBodyEncoding()/MailMessage#setBodyEncoding(Encoding)) and MailMessage.PreferredTextEncoding(MailMessage.getPreferredTextEncoding()/MailMessage#setPreferredTextEncoding(Encoding)) properties will be changed to default System.Text.Encoding.UTF8(java.nio.charset.Charset#getUTF8).
public final ResourceHtmlRenderingHandler getResourceHtmlRenderingHandler()
Provides customization of rendering resources in html.
public final void setResourceHtmlRenderingHandler(ResourceHtmlRenderingHandler value)
Provides customization of rendering resources in html.
public final int getResourceRenderingMode()
Provides set various modes of rendering resources in html. Default value EmbedIntoHtml.
public final void setResourceRenderingMode(int value)
Provides set various modes of rendering resources in html. Default value EmbedIntoHtml.
public final boolean getUseRelativePathToResources()
Default value is false.
public final void setUseRelativePathToResources(boolean value)
Default value is false.
Copyright (c) 2008-2024 Aspose Pty Ltd. All Rights Reserved.