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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionbinaryContent
(boolean binaryContent) Defines whether the content of binary parts in the MIME multipart is binary (true) or Base-64 encoded (false)binaryContent
(String binaryContent) Defines whether the content of binary parts in the MIME multipart is binary (true) or Base-64 encoded (false)end()
Ends the build of the data format.headersInline
(boolean headersInline) Defines whether the MIME-Multipart headers are part of the message body (true) or are set as Camel headers (false).headersInline
(String headersInline) Defines whether the MIME-Multipart headers are part of the message body (true) or are set as Camel headers (false).includeHeaders
(String includeHeaders) A regex that defines which Camel headers are also included as MIME headers into the MIME multipart.multipartSubType
(String multipartSubType) Specify the subtype of the MIME Multipart.multipartWithoutAttachment
(boolean multipartWithoutAttachment) Defines whether a message without attachment is also marshaled into a MIME Multipart (with only one body part).multipartWithoutAttachment
(String multipartWithoutAttachment) Defines whether a message without attachment is also marshaled into a MIME Multipart (with only one body part).
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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
Defines whether the MIME-Multipart headers are part of the message body (true) or are set as Camel headers (false).Default is false.
-
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
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
Defines whether the content of binary parts in the MIME multipart is binary (true) or Base-64 encoded (false)Default is false.
-
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 interfaceDataFormatBuilder<MimeMultipartDataFormat>
- Returns:
- the data format fully built.
-