Class MimeMultipartDataFormat.Builder

java.lang.Object
org.apache.camel.model.dataformat.MimeMultipartDataFormat.Builder
All Implemented Interfaces:
DataFormatBuilder<MimeMultipartDataFormat>
Enclosing class:
MimeMultipartDataFormat

public static class MimeMultipartDataFormat.Builder extends Object implements DataFormatBuilder<MimeMultipartDataFormat>
Builder is a specific builder for MimeMultipartDataFormat.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • multipartSubType

      public MimeMultipartDataFormat.Builder multipartSubType(String multipartSubType)
      Specify the subtype of the MIME Multipart.

      Default is mixed.

    • 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.

    • end

      Description copied from interface: DataFormatBuilder
      Ends the build of the data format.
      Specified by:
      end in interface DataFormatBuilder<MimeMultipartDataFormat>
      Returns:
      the data format fully built.