public final class MailStructure
extends java.lang.Object
MailStructure - Represents a mail structure| Constructor and Description |
|---|
MailStructure()
Initializes a new
MailStructure |
MailStructure(ContentType contentType)
Initializes a new
MailStructure |
| Modifier and Type | Method and Description |
|---|---|
void |
addSubStructure(MailStructure mailStructure)
Adds a sub-structure
|
ContentType |
getContentType()
Gets the content type
|
static MailStructure |
getMailStructure(MailMessage mail)
Generates the corresponding mail structure for specified mail message.
|
MailStructure[] |
getSubStructures()
Gets this mail structure's sub-structures
|
void |
setContentType(ContentType contentType)
Sets the content type
|
java.lang.String |
toString() |
public MailStructure()
MailStructurepublic MailStructure(ContentType contentType)
MailStructurecontentType - The content typepublic ContentType getContentType()
public void setContentType(ContentType contentType)
contentType - The content typepublic void addSubStructure(MailStructure mailStructure)
mailStructure - The sub-structure to addpublic MailStructure[] getSubStructures()
public static MailStructure getMailStructure(MailMessage mail) throws com.openexchange.exception.OXException
mail - The mail messagecom.openexchange.exception.OXException - If a mail error occurspublic java.lang.String toString()
toString in class java.lang.Object