Class IgnoreOriginalMimeAggregator
- java.lang.Object
-
- com.adaptris.core.services.aggregator.MessageAggregatorImpl
-
- com.adaptris.core.services.aggregator.MimeAggregator
-
- com.adaptris.core.services.aggregator.IgnoreOriginalMimeAggregator
-
- All Implemented Interfaces:
MessageAggregator
@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 sameContent-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.- See Also:
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.
-
-
Field Summary
-
Fields inherited from class com.adaptris.core.services.aggregator.MessageAggregatorImpl
log
-
-
Constructor Summary
Constructors Constructor Description IgnoreOriginalMimeAggregator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MultiPartOutput
createInitialPart(AdaptrisMessage original)
-
Methods inherited from class com.adaptris.core.services.aggregator.MimeAggregator
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
-
Methods inherited from class com.adaptris.core.services.aggregator.MessageAggregatorImpl
filter, filter, getFilterCondition, getOverwriteMetadata, getRetainFilterExceptionsMessages, overwriteMetadata, overwriteMetadata, setFilterCondition, setOverwriteMetadata, setRetainFilterExceptionsMessages, withOverwriteMetadata
-
-
-
-
Method Detail
-
createInitialPart
protected MultiPartOutput createInitialPart(AdaptrisMessage original) throws javax.mail.MessagingException, java.io.IOException
- Overrides:
createInitialPart
in classMimeAggregator
- Throws:
javax.mail.MessagingException
java.io.IOException
-
-