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
Nested ClassesModifier and TypeClassDescriptionstatic classBuilderis a specific builder forMimeMultipartDataFormat. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetBinaryContent(String binaryContent) Defines whether the content of binary parts in the MIME multipart is binary (true) or Base-64 encoded (false)voidsetHeadersInline(String headersInline) Defines whether the MIME-Multipart headers are part of the message body (true) or are set as Camel headers (false).voidsetIncludeHeaders(String includeHeaders) A regex that defines which Camel headers are also included as MIME headers into the MIME multipart.voidsetMultipartSubType(String multipartSubType) Specify the subtype of the MIME Multipart.voidsetMultipartWithoutAttachment(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, setDataFormatNameMethods 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.
-