@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 |
---|---|
protected void |
configureDataFormat(DataFormat dataFormat,
CamelContext camelContext)
Allows derived classes to customize the data format
|
Boolean |
getBinaryContent() |
Boolean |
getHeadersInline() |
String |
getIncludeHeaders() |
String |
getMultipartSubType() |
Boolean |
getMultipartWithoutAttachment() |
void |
setBinaryContent(Boolean binaryContent)
Defines whether the content of binary parts in the MIME multipart is
binary (true) or Base-64 encoded (false)
|
void |
setHeadersInline(Boolean 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(Boolean multipartWithoutAttachment)
Defines whether a message without attachment is also marshaled into a
MIME Multipart (with only one body part).
|
configureDataFormat, createDataFormat, getContentTypeHeader, getDataFormat, getDataFormat, getDataFormat, getDataFormatName, getOtherAttributes, getShortName, setContentTypeHeader, setDataFormat, setDataFormatName, setOtherAttributes, setProperty, setProperty
getId, setId
public MimeMultipartDataFormat()
protected void configureDataFormat(DataFormat dataFormat, CamelContext camelContext)
DataFormatDefinition
configureDataFormat
in class DataFormatDefinition
public String getMultipartSubType()
public void setMultipartSubType(String multipartSubType)
Default is "mixed".
public Boolean getMultipartWithoutAttachment()
public void setMultipartWithoutAttachment(Boolean multipartWithoutAttachment)
Default is "false".
public Boolean getHeadersInline()
public void setHeadersInline(Boolean headersInline)
Default is "false".
public Boolean getBinaryContent()
public void setIncludeHeaders(String includeHeaders)
Default is to include no headers
public String getIncludeHeaders()
public void setBinaryContent(Boolean binaryContent)
Default is "false".
Apache Camel