public class IgnoreOriginalXmlDocumentAggregator extends XmlDocumentAggregator
MessageAggregator
implementation that creates single XML using each message that needs to be joined up.
The original pre-split document is completely ignored; you should specify in the template the XML document that will be used to merge split documents.
Use XmlDocumentAggregator.setDocumentEncoding(String)
to force the encoding of the resulting XML document to the required value; if not set,
then either the original AdaptrisMessage.getCharEncoding()
(if set) or UTF-8
will be used in that order.
In the adapter configuration file this class is aliased as ignore-original-xml-document-aggregator which is the preferred alternative to the fully qualified classname when building your configuration.
log
Constructor and Description |
---|
IgnoreOriginalXmlDocumentAggregator() |
IgnoreOriginalXmlDocumentAggregator(java.lang.String template) |
IgnoreOriginalXmlDocumentAggregator(java.lang.String template,
DocumentMerge merge) |
Modifier and Type | Method and Description |
---|---|
void |
aggregate(AdaptrisMessage original,
java.lang.Iterable<AdaptrisMessage> messages)
Joins multiple
AdaptrisMessage s into a single AdaptrisMessage
objects. |
java.lang.String |
getTemplate() |
void |
setTemplate(java.lang.String s)
Set the template for the resulting XML document
|
documentFactoryBuilder, getDocumentEncoding, getMergeImplementation, getXmlDocumentFactoryConfig, joinMessage, setDocumentEncoding, setMergeImplementation, setXmlDocumentFactoryConfig
filter, filter, getFilterCondition, getOverwriteMetadata, getRetainFilterExceptionsMessages, overwriteMetadata, overwriteMetadata, setFilterCondition, setOverwriteMetadata, setRetainFilterExceptionsMessages, withOverwriteMetadata
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
collect
public IgnoreOriginalXmlDocumentAggregator()
public IgnoreOriginalXmlDocumentAggregator(java.lang.String template)
public IgnoreOriginalXmlDocumentAggregator(java.lang.String template, DocumentMerge merge)
public void aggregate(AdaptrisMessage original, java.lang.Iterable<AdaptrisMessage> messages) throws CoreException
MessageAggregator
Joins multiple AdaptrisMessage
s into a single AdaptrisMessage
objects. Preservation of metadata is down to the implementation.
aggregate
in interface MessageAggregator
aggregate
in class XmlDocumentAggregator
original
- the original messagemessages
- the list of messages to join.CoreException
public java.lang.String getTemplate()
public void setTemplate(java.lang.String s)
s
- the template to set; wrapped in CDATA tags as appropriate.