Class MimeMultipartDataFormat.Builder
- java.lang.Object
-
- org.apache.camel.model.dataformat.MimeMultipartDataFormat.Builder
-
- All Implemented Interfaces:
DataFormatBuilder<MimeMultipartDataFormat>
- Enclosing class:
- MimeMultipartDataFormat
public static class MimeMultipartDataFormat.Builder extends Object implements DataFormatBuilder<MimeMultipartDataFormat>
Builder
is a specific builder forMimeMultipartDataFormat
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MimeMultipartDataFormat.Builder
binaryContent(boolean binaryContent)
Defines whether the content of binary parts in the MIME multipart is binary (true) or Base-64 encoded (false)MimeMultipartDataFormat.Builder
binaryContent(String binaryContent)
Defines whether the content of binary parts in the MIME multipart is binary (true) or Base-64 encoded (false)MimeMultipartDataFormat
end()
Ends the build of the data format.MimeMultipartDataFormat.Builder
headersInline(boolean headersInline)
Defines whether the MIME-Multipart headers are part of the message body (true) or are set as Camel headers (false).MimeMultipartDataFormat.Builder
headersInline(String headersInline)
Defines whether the MIME-Multipart headers are part of the message body (true) or are set as Camel headers (false).MimeMultipartDataFormat.Builder
includeHeaders(String includeHeaders)
A regex that defines which Camel headers are also included as MIME headers into the MIME multipart.MimeMultipartDataFormat.Builder
multipartSubType(String multipartSubType)
Specify the subtype of the MIME Multipart.MimeMultipartDataFormat.Builder
multipartWithoutAttachment(boolean multipartWithoutAttachment)
Defines whether a message without attachment is also marshaled into a MIME Multipart (with only one body part).MimeMultipartDataFormat.Builder
multipartWithoutAttachment(String multipartWithoutAttachment)
Defines whether a message without attachment is also marshaled into a MIME Multipart (with only one body part).
-
-
-
Method Detail
-
multipartSubType
public MimeMultipartDataFormat.Builder multipartSubType(String multipartSubType)
Specify the subtype of the MIME Multipart.Default is mixed.
-
multipartWithoutAttachment
public MimeMultipartDataFormat.Builder multipartWithoutAttachment(String multipartWithoutAttachment)
Defines whether a message without attachment is also marshaled into a MIME Multipart (with only one body part).Default is false.
-
multipartWithoutAttachment
public MimeMultipartDataFormat.Builder multipartWithoutAttachment(boolean multipartWithoutAttachment)
Defines whether a message without attachment is also marshaled into a MIME Multipart (with only one body part).Default is false.
-
headersInline
public MimeMultipartDataFormat.Builder headersInline(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.
-
headersInline
public MimeMultipartDataFormat.Builder headersInline(boolean headersInline)
Defines whether the MIME-Multipart headers are part of the message body (true) or are set as Camel headers (false).Default is false.
-
includeHeaders
public MimeMultipartDataFormat.Builder includeHeaders(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
-
binaryContent
public MimeMultipartDataFormat.Builder binaryContent(String binaryContent)
Defines whether the content of binary parts in the MIME multipart is binary (true) or Base-64 encoded (false)Default is false.
-
binaryContent
public MimeMultipartDataFormat.Builder binaryContent(boolean binaryContent)
Defines whether the content of binary parts in the MIME multipart is binary (true) or Base-64 encoded (false)Default is false.
-
end
public MimeMultipartDataFormat end()
Description copied from interface:DataFormatBuilder
Ends the build of the data format.- Specified by:
end
in interfaceDataFormatBuilder<MimeMultipartDataFormat>
- Returns:
- the data format fully built.
-
-