HeadersFormattingOptions

Inheritance: java.lang.Object, com.aspose.email.SaveOptions

public abstract class HeadersFormattingOptions extends SaveOptions

Allows to specify headers formatting options when saving MailMessage to Mhtml or Html format.

Constructors

Constructor Description
HeadersFormattingOptions() Initializes a new instance of this class that can be used to save a MailMessage in the Mhtml format.

Methods

Method Description
createSaveOptions(MailMessageSaveType saveType) Creates a save options object of a class suitable for the specified save type.
equals(Object arg0)
getAfterHeadersFormat() After headers format.
getBeforeHeadersFormat() Before headers format.
getClass()
getCssStyles() Gets or sets the additional css styles for the formatter.
getCustomProgressHandler() Represents method that usually supplied by calling side and handles progress events.
getDefaultEml() Gets options with default values for saving message to Eml format.
getDefaultHeaderFormat() Default header line format.
getDefaultHtml() Gets options with default values for saving message to Html format.
getDefaultMhtml() Gets options with default values for saving message to Mhtml format.
getDefaultMsg() Gets options with default values for saving message to Msg(ASCII) format.
getDefaultMsgUnicode() Gets options with default values for saving message to Msg(Unicode) format.
getDefaultPageHeaderFormat() Default page header format.
getFormatTemplates() Gets the format templates.
getMailMessageSaveType() Represents the mail message save type.It can be in eml,msg(ASCII or Unicode),mhtml or html format.
getRenderedContactFields() Defines groups of Contact fields which will be included in output mhtml.
getRenderingHeaders() Gets list of headers for rendering.
hashCode()
notify()
notifyAll()
setAfterHeadersFormat(String value) After headers format.
setBeforeHeadersFormat(String value) Before headers format.
setCssStyles(String value) Gets or sets the additional css styles for the formatter.
setCustomProgressHandler(ConversionProgressEventHandler value) Represents method that usually supplied by calling side and handles progress events.
setDefaultHeaderFormat(String value) Default header line format.
setDefaultPageHeaderFormat(String value) Default page header format.
setMailMessageSaveType(MailMessageSaveType value) Represents the mail message save type.It can be in eml,msg(ASCII or Unicode),mhtml or html format.
setRenderedContactFields(int value) Defines groups of Contact fields which will be included in output mhtml.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

HeadersFormattingOptions()

public HeadersFormattingOptions()

Initializes a new instance of this class that can be used to save a MailMessage in the Mhtml format.

createSaveOptions(MailMessageSaveType saveType)

public static SaveOptions createSaveOptions(MailMessageSaveType saveType)

Creates a save options object of a class suitable for the specified save type.

Parameters:

Parameter Type Description
saveType MailMessageSaveType The MailMessageSaveTypesave type (#getMailMessageSaveType.getMailMessageSaveType/#setMailMessageSaveType(MailMessageSaveType).setMailMessageSaveType(MailMessageSaveType)) for which to create a save options object.

Returns: SaveOptions - An object of a class that derives from SaveOptions.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

Parameter Type Description
arg0 java.lang.Object

Returns: boolean

getAfterHeadersFormat()

public final String getAfterHeadersFormat()

After headers format.

Value: The styles to be injected into resulting html body.

Returns: java.lang.String

getBeforeHeadersFormat()

public final String getBeforeHeadersFormat()

Before headers format.

Value: The styles to be injected into resulting html body.

Returns: java.lang.String

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getCssStyles()

public final String getCssStyles()

Gets or sets the additional css styles for the formatter.

Value: The styles to be injected into resulting html body.

Returns: java.lang.String

getCustomProgressHandler()

public final ConversionProgressEventHandler getCustomProgressHandler()

Represents method that usually supplied by calling side and handles progress events.

Returns: ConversionProgressEventHandler

getDefaultEml()

public static EmlSaveOptions getDefaultEml()

Gets options with default values for saving message to Eml format.

Returns: EmlSaveOptions

getDefaultHeaderFormat()

public final String getDefaultHeaderFormat()

Default header line format.

Value: The styles to be injected into resulting html body.

Returns: java.lang.String

getDefaultHtml()

public static HtmlSaveOptions getDefaultHtml()

Gets options with default values for saving message to Html format.

Returns: HtmlSaveOptions

getDefaultMhtml()

public static MhtSaveOptions getDefaultMhtml()

Gets options with default values for saving message to Mhtml format.

Returns: MhtSaveOptions

getDefaultMsg()

public static MsgSaveOptions getDefaultMsg()

Gets options with default values for saving message to Msg(ASCII) format.

Returns: MsgSaveOptions

getDefaultMsgUnicode()

public static MsgSaveOptions getDefaultMsgUnicode()

Gets options with default values for saving message to Msg(Unicode) format.

Returns: MsgSaveOptions

getDefaultPageHeaderFormat()

public final String getDefaultPageHeaderFormat()

Default page header format.

Value: The styles to be injected into resulting html body.

Returns: java.lang.String

getFormatTemplates()

public final System.Collections.Specialized.StringDictionary getFormatTemplates()

Gets the format templates.

Value: The format templates.

Returns: com.aspose.ms.System.Collections.Specialized.StringDictionary

getMailMessageSaveType()

public final MailMessageSaveType getMailMessageSaveType()

Represents the mail message save type.It can be in eml,msg(ASCII or Unicode),mhtml or html format. The default value is Eml.

Returns: MailMessageSaveType

getRenderedContactFields()

public final int getRenderedContactFields()

Defines groups of Contact fields which will be included in output mhtml. Default value is ContactFieldsSet.AllExisting.

Returns: int

getRenderingHeaders()

public final List<String> getRenderingHeaders()

Gets list of headers for rendering.

Returns: java.util.List<java.lang.String>

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setAfterHeadersFormat(String value)

public final void setAfterHeadersFormat(String value)

After headers format.

Value: The styles to be injected into resulting html body.

Parameters:

Parameter Type Description
value java.lang.String

setBeforeHeadersFormat(String value)

public final void setBeforeHeadersFormat(String value)

Before headers format.

Value: The styles to be injected into resulting html body.

Parameters:

Parameter Type Description
value java.lang.String

setCssStyles(String value)

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.

Parameters:

Parameter Type Description
value java.lang.String

setCustomProgressHandler(ConversionProgressEventHandler value)

public final void setCustomProgressHandler(ConversionProgressEventHandler value)

Represents method that usually supplied by calling side and handles progress events.

Parameters:

Parameter Type Description
value ConversionProgressEventHandler

setDefaultHeaderFormat(String value)

public final void setDefaultHeaderFormat(String value)

Default header line format.

Value: The styles to be injected into resulting html body.

Parameters:

Parameter Type Description
value java.lang.String

setDefaultPageHeaderFormat(String value)

public final void setDefaultPageHeaderFormat(String value)

Default page header format.

Value: The styles to be injected into resulting html body.

Parameters:

Parameter Type Description
value java.lang.String

setMailMessageSaveType(MailMessageSaveType value)

public final void setMailMessageSaveType(MailMessageSaveType value)

Represents the mail message save type.It can be in eml,msg(ASCII or Unicode),mhtml or html format. The default value is Eml.

Parameters:

Parameter Type Description
value MailMessageSaveType

setRenderedContactFields(int value)

public final void setRenderedContactFields(int value)

Defines groups of Contact fields which will be included in output mhtml. Default value is ContactFieldsSet.AllExisting.

Parameters:

Parameter Type Description
value int

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

Parameter Type Description
arg0 long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

Parameter Type Description
arg0 long
arg1 int