createParentEntity (MIMEEntity - Java)

Creates a MIME entity and establishes it as the calling entity's parent. The calling entity becomes its first child.

Note: This method is new with Release 6.

Defined in

MIMEEntity

Syntax

public MIMEEntity createParentEntity( ) 
     throws NotesException

Return value

MIMEEntity

The new MIME entity.

Usage

This method generates for the new parent a Content-Type header with "multipart/mixed" as the value, and a boundary parameter.

If the calling entity is named "Body" (is a top-level mail entity), associated envelope headers are promoted to the parent. The calling entity does retain its "Content-" headers.

Example