@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 an explicit Content-Id (expression or otherwise) has been
specified then this will be resolved and used as that parts Content-ID
otherwise the
split message's unique-id will be used. If the same Content-ID
is re-used 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.
log
Constructor and Description |
---|
IgnoreOriginalMimeAggregator() |
Modifier and Type | Method and Description |
---|---|
protected MultiPartOutput |
createInitialPart(AdaptrisMessage original) |
aggregate, contentId, contentType, createBodyPart, getEncoding, getMimeContentSubType, getMimeHeaderFilter, getPartContentId, getPartContentType, getPartHeaderFilter, joinMessage, mimeContentSubType, mimeHeaderFilter, partHeaderFilter, setEncoding, setMimeContentSubType, setMimeHeaderFilter, setPartContentId, setPartContentType, setPartHeaderFilter, withEncoding, withMimeContentSubType, withMimeHeaderFilter, withPartContentId, withPartContentType, withPartHeaderFilter
filter, filter, getFilterCondition, getOverwriteMetadata, getRetainFilterExceptionsMessages, overwriteMetadata, overwriteMetadata, setFilterCondition, setOverwriteMetadata, setRetainFilterExceptionsMessages, withOverwriteMetadata
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
collect
protected MultiPartOutput createInitialPart(AdaptrisMessage original) throws javax.mail.MessagingException, java.io.IOException
createInitialPart
in class MimeAggregator
javax.mail.MessagingException
java.io.IOException