com.aspose.network
Class MhtMessageFormatter

java.lang.Object
  extended by com.aspose.network.MhtMessageFormatter

public class MhtMessageFormatter
extends Object

Provides a default formatter for Mht conversion.


Constructor Summary
MhtMessageFormatter()
           Creates an instance of MhtMessageFormatter.
 
Method Summary
 void format(MailMessage message)
           Adds information header into message body.
 String getAttachmentFormat()
           Gets or sets the attachment format.
 String getCcFormat()
           Gets or sets the cc format.
 String getDateTimeFormat()
           Gets or sets the date time format.
 HashMap<String,String> getFormatTemplates()
           Gets the format templates.
 String getFormFormat()
           Gets or sets the form format.
 boolean getSaveAttachments()
           Gets or sets a value indicating whether [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 setCcFormat(String value)
           
 void setDateTimeFormat(String value)
           
 void setFormFormat(String value)
           
 void setSaveAttachments(boolean value)
           
 void setSentFormat(String value)
           
 void setSubjectFormat(String value)
           
 void setToFormat(String value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MhtMessageFormatter

public MhtMessageFormatter()

Creates an instance of MhtMessageFormatter.

Method Detail

format

public void format(MailMessage message)

Adds information header into message body.

Parameters:
message - The MailMessage to be formatted.

getSaveAttachments

public boolean getSaveAttachments()

Gets or sets a value indicating whether [save attachments].

Value: true if [save attachments]; otherwise, false.


setSaveAttachments

public void setSaveAttachments(boolean value)

getDateTimeFormat

public String getDateTimeFormat()

Gets or sets the date time format.

Value: The date time format.


setDateTimeFormat

public void setDateTimeFormat(String value)

getFormFormat

public String getFormFormat()

Gets or sets the form format.

Value: The form format.


setFormFormat

public void setFormFormat(String value)

getSentFormat

public String getSentFormat()

Gets or sets the sent format.

Value: The sent format.


setSentFormat

public void setSentFormat(String value)

getToFormat

public String getToFormat()

Gets or sets to format.

Value: To format.


setToFormat

public void setToFormat(String value)

getCcFormat

public String getCcFormat()

Gets or sets the cc format.

Value: The cc format.


setCcFormat

public void setCcFormat(String value)

getSubjectFormat

public String getSubjectFormat()

Gets or sets the subject format.

Value: The subject format.


setSubjectFormat

public void setSubjectFormat(String value)

getAttachmentFormat

public String getAttachmentFormat()

Gets or sets the attachment format.

Value: The attachment format.


setAttachmentFormat

public void setAttachmentFormat(String value)

getFormatTemplates

public HashMap<String,String> getFormatTemplates()

Gets the format templates.

Value: The format templates.



Copyright (c) 2002-2011 Aspose Pty Ltd. All Rights Reserved.