@ComponentProfile(summary="Aggregator implementation that creates a new mime part for each message that needs to be joined up") public class IgnoreOriginalMimeAggregator extends MimeAggregator
MessageAggregator
implementation that creates a new mime part for each message that needs to be joined up.
The original pre-split document is ignored, the unique ID of the message is used as the Content-ID of the new multipart; the
payloads from the split messages are used to form the resulting multipart message. If the split message contains a specific
metadata key (as configured by MimeAggregator.setPartContentIdMetadataKey(String)
) then the corresponding value will be used as that
parts Content-Id
. If the metadata key does not exist, or is not configured, then the split message's unique-id will
be used. If the same Content-Id
is observed for multiple split messages then results are undefined. The most likely
situation is that parts will be lost and only one preserved.
As a result of this join operation, the message will be marked as MIME encoded using CoreConstants.MSG_MIME_ENCODED
metadata.
CoreConstants.MSG_MIME_ENCODED
In the adapter configuration file this class is aliased as ignore-original-mime-aggregator which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
IgnoreOriginalMimeAggregator() |
Modifier and Type | Method and Description |
---|---|
protected MultiPartOutput |
createInitialPart(AdaptrisMessage original) |
contentId, contentType, createBodyPart, getEncoding, getMimeContentSubType, getMimeHeaderFilter, getPartContentId, getPartContentIdMetadataKey, getPartContentType, getPartContentTypeMetadataKey, getPartHeaderFilter, joinMessage, mimeContentSubType, mimeHeaderFilter, partHeaderFilter, setEncoding, setMimeContentSubType, setMimeHeaderFilter, setPartContentId, setPartContentIdMetadataKey, setPartContentType, setPartContentTypeMetadataKey, setPartHeaderFilter, withEncoding, withMimeContentSubType, withMimeHeaderFilter, withPartContentId, withPartContentType, withPartHeaderFilter
getOverwriteMetadata, overwriteMetadata, overwriteMetadata, setOverwriteMetadata
protected MultiPartOutput createInitialPart(AdaptrisMessage original) throws javax.mail.MessagingException, java.io.IOException
createInitialPart
in class MimeAggregator
javax.mail.MessagingException
java.io.IOException