Software AG Products 10.7 | Integrating On-Premises and Cloud Applications | Integration Server Built-In Services | MIME Folder | Summary of Elements in this Folder | pub.mime:getPrimaryContentType
 
pub.mime:getPrimaryContentType
WmPublic. Returns the top-level portion of a MIME object's Content-Type value.
Input Parameters
mimeData
Document MIME object whose Content-Type you want to discover. (This IData object is produced by pub.mime:createMimeData.)
Output Parameters
primContentType
String Message's top-level Content-Type. For example, if the message's Content-Type header were:
Content-Type: multipart/mixed
primContentType would contain:
multipart
Usage Notes
This service operates on the MIME object (mimeData) produced by pub.mime:createMimeData.
For general information about MIME messages and using the MIME services, see the MIME-S/MIME Developer’s Guide.
See Also
pub.mime:createMimeData
pub.mime:getContentType
pub.mime:addMimeHeader
pub.mime:getBodyPartHeader