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:getContentType
 
pub.mime:getContentType
WmPublic. Returns the value of the Content-Type message header from the specified MIME object.
Input Parameters
mimeData
Document MIME object whose Content-Type you want to discover. (This IData object is produced by pub.mime:createMimeData.
Output Parameters
contentType
String Value of the MIME object's Content-Type header field. Note that this service returns only the media type and subtype portion of this header field's value. It does not return any parameters the value may include. For example, if the message's Content-Type header were:
Content-Type: text/plain;charset=UTF8
contentType would contain:
text/plain
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:getSubContentType
pub.mime:getPrimaryContentType
pub.mime:getMimeHeader
pub.mime:getBodyPartHeader