Class MimeMultipartDataFormat.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • multipartWithoutAttachment

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

        Default is false.

      • multipartWithoutAttachment

        public MimeMultipartDataFormat.Builder multipartWithoutAttachment​(boolean multipartWithoutAttachment)
        Defines whether a message without attachment is also marshaled into a MIME Multipart (with only one body part).

        Default is false.

      • headersInline

        public MimeMultipartDataFormat.Builder headersInline​(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.

      • headersInline

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

        Default is false.

      • includeHeaders

        public MimeMultipartDataFormat.Builder includeHeaders​(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

      • binaryContent

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

        Default is false.

      • binaryContent

        public MimeMultipartDataFormat.Builder binaryContent​(boolean binaryContent)
        Defines whether the content of binary parts in the MIME multipart is binary (true) or Base-64 encoded (false)

        Default is false.