use of com.adaptris.core.MetadataCollection in project interlok by adaptris.
the class MimeAggregator method createInitialPart.
protected MultiPartOutput createInitialPart(AdaptrisMessage original) throws MessagingException, IOException {
MultiPartOutput output = new MultiPartOutput(original.getUniqueId(), mimeContentSubType(original));
MetadataCollection metadata = mimeHeaderFilter().filter(original);
metadata.forEach((e) -> {
output.setHeader(e.getKey(), e.getValue());
});
output.addPart(createBodyPart(original), contentId(original));
return output;
}
Aggregations