Class MimeMultipartDataFormat


  • @Metadata(firstVersion="2.17.0",
              label="dataformat,transformation",
              title="MIME Multipart")
    public class MimeMultipartDataFormat
    extends DataFormatDefinition
    Marshal Camel messages with attachments into MIME-Multipart messages and back.
    • Constructor Detail

      • MimeMultipartDataFormat

        public MimeMultipartDataFormat()
    • Method Detail

      • getMultipartSubType

        public String getMultipartSubType()
      • setMultipartSubType

        public void setMultipartSubType​(String multipartSubType)
        Specify the subtype of the MIME Multipart.

        Default is "mixed".

      • getMultipartWithoutAttachment

        public String getMultipartWithoutAttachment()
      • setMultipartWithoutAttachment

        public void setMultipartWithoutAttachment​(String multipartWithoutAttachment)
        Defines whether a message without attachment is also marshaled into a MIME Multipart (with only one body part).

        Default is "false".

      • getHeadersInline

        public String getHeadersInline()
      • setHeadersInline

        public void setHeadersInline​(String headersInline)
        Defines whether the MIME-Multipart headers are part of the message body (true) or are set as Camel headers (false).

        Default is "false".

      • getBinaryContent

        public String getBinaryContent()
      • setIncludeHeaders

        public void setIncludeHeaders​(String includeHeaders)
        A regex that defines which Camel headers are also included as MIME headers into the MIME multipart. This will only work if headersInline is set to true.

        Default is to include no headers

      • getIncludeHeaders

        public String getIncludeHeaders()
      • setBinaryContent

        public void setBinaryContent​(String binaryContent)
        Defines whether the content of binary parts in the MIME multipart is binary (true) or Base-64 encoded (false)

        Default is "false".