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 Classes Modifier and Type Class Description static class
MimeMultipartDataFormat.Builder
Builder
is a specific builder forMimeMultipartDataFormat
.
-
Constructor Summary
Constructors Constructor Description MimeMultipartDataFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBinaryContent()
String
getHeadersInline()
String
getIncludeHeaders()
String
getMultipartSubType()
String
getMultipartWithoutAttachment()
void
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
-
-
-
-
Method Detail
-
getMultipartSubType
public String getMultipartSubType()
-
setMultipartSubType
public void setMultipartSubType(String multipartSubType)
Specify the subtype of the MIME Multipart.Default is mixed.
-
getMultipartWithoutAttachment
public String getMultipartWithoutAttachment()
-
setMultipartWithoutAttachment
public void setMultipartWithoutAttachment(String multipartWithoutAttachment)
Defines whether a message without attachment is also marshaled into a MIME Multipart (with only one body part).Default is false.
-
getHeadersInline
public String getHeadersInline()
-
setHeadersInline
public void setHeadersInline(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.
-
getBinaryContent
public String getBinaryContent()
-
setIncludeHeaders
public void setIncludeHeaders(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
-
getIncludeHeaders
public String getIncludeHeaders()
-
setBinaryContent
public void setBinaryContent(String binaryContent)
Defines whether the content of binary parts in the MIME multipart is binary (true) or Base-64 encoded (false)Default is false.
-
-