Software AG Products 10.7 | Integrating On-Premises and Cloud Applications | Integration Cloud | Built-In Services | Built-In Services | getEnvelopeStream
 
getEnvelopeStream
Generates an InputStream representation of a MIME message from a specified MIME object.
Input Parameters
mimeData
Document MIME object from which you want to generate the MIME message. (This IData object is produced by createMimeData.)
index
String Optional. Index number of the body part for which you want to generate the MIME message (if you want to generate the message from a specific body part). The first body part is index number zero.
contentID
String Optional. Value of the Content-ID header field of the body part from which you want to generate the MIME message (if you want to generate the message from a specific body part).
Note:
If index is specified, contentID is ignored.
suppressHeaders
String List Optional. Names of header fields that are to be omitted from message. You can use this option to exclude header fields that getEnvelopeStream generates by default, such as Content-Type and content-encoding.
createMultipart
String Optional. Specifies whether a multipart message is to be created, even if mimeData contains only one body part. Set to:
*yes to create a multipart message (Content-Type message header is set to "multipart/mixed").
*no to create a message based on the number of body parts in mimeData. This is the default.
*If the message contains only one body part, Content-Type is set according to the contenttype setting specified when that body part was added to mimeData.
*If the message contains multiple body parts, Content-Type is automatically set to "multipart/mixed."
Output Parameters
envStream
java.io.InputStream The MIME message as an InputStream.
Usage Notes
This service operates on the MIME object (mimeData) produced by createMimeData.
If you omit index or contentID, getEnvelopeStream generates the MIME message from the entire contents of the mimeData. If you use index or contentID to select a body part that does not exist in mimeData, content will be null.
getEnvelopeStream automatically inserts the MIME-Version and Message-ID message headers into the MIME message it puts into envStream.