Class MimeMultipartDataFormat
java.lang.Object
org.apache.camel.model.IdentifiedType
org.apache.camel.model.DataFormatDefinition
org.apache.camel.model.dataformat.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.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder
is a specific builder forMimeMultipartDataFormat
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setBinaryContent
(String binaryContent) Defines whether the content of binary parts in the MIME multipart is binary (true) or Base-64 encoded (false)void
setHeadersInline
(String headersInline) Defines whether the MIME-Multipart headers are part of the message body (true) or are set as Camel headers (false).void
setIncludeHeaders
(String includeHeaders) A regex that defines which Camel headers are also included as MIME headers into the MIME multipart.void
setMultipartSubType
(String multipartSubType) Specify the subtype of the MIME Multipart.void
setMultipartWithoutAttachment
(String multipartWithoutAttachment) Defines whether a message without attachment is also marshaled into a MIME Multipart (with only one body part).Methods inherited from class org.apache.camel.model.DataFormatDefinition
getDataFormat, getDataFormatName, getShortName, setDataFormat, setDataFormatName
Methods inherited from class org.apache.camel.model.IdentifiedType
getId, setId
-
Constructor Details
-
MimeMultipartDataFormat
public MimeMultipartDataFormat()
-
-
Method Details
-
getMultipartSubType
-
setMultipartSubType
Specify the subtype of the MIME Multipart.Default is mixed.
-
getMultipartWithoutAttachment
-
setMultipartWithoutAttachment
Defines whether a message without attachment is also marshaled into a MIME Multipart (with only one body part).Default is false.
-
getHeadersInline
-
setHeadersInline
Defines whether the MIME-Multipart headers are part of the message body (true) or are set as Camel headers (false).Default is false.
-
getBinaryContent
-
setIncludeHeaders
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
-
setBinaryContent
Defines whether the content of binary parts in the MIME multipart is binary (true) or Base-64 encoded (false)Default is false.
-