@Metadata(firstVersion="2.17.0",
label="dataformat,transformation",
title="MIME Multipart")
public class MimeMultipartDataFormat
extends DataFormatDefinition
| Constructor and Description |
|---|
MimeMultipartDataFormat() |
| Modifier and Type | Method and 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).
|
getContentTypeHeader, getDataFormat, getDataFormatName, getShortName, setContentTypeHeader, setDataFormat, setDataFormatNamegetId, setIdpublic MimeMultipartDataFormat()
public String getMultipartSubType()
public void setMultipartSubType(String multipartSubType)
Default is "mixed".
public String getMultipartWithoutAttachment()
public void setMultipartWithoutAttachment(String multipartWithoutAttachment)
Default is "false".
public String getHeadersInline()
public void setHeadersInline(String headersInline)
Default is "false".
public String getBinaryContent()
public void setIncludeHeaders(String includeHeaders)
Default is to include no headers
public String getIncludeHeaders()
public void setBinaryContent(String binaryContent)
Default is "false".
Apache Camel