Class IgnoreOriginalXmlDocumentAggregator
java.lang.Object
com.adaptris.core.services.aggregator.MessageAggregatorImpl
com.adaptris.core.services.aggregator.XmlDocumentAggregator
com.adaptris.core.services.aggregator.IgnoreOriginalXmlDocumentAggregator
- All Implemented Interfaces:
MessageAggregator
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.
-
Field Summary
Fields inherited from class com.adaptris.core.services.aggregator.MessageAggregatorImpl
log
-
Constructor Summary
ConstructorDescriptionIgnoreOriginalXmlDocumentAggregator
(String template) IgnoreOriginalXmlDocumentAggregator
(String template, DocumentMerge merge) -
Method Summary
Modifier and TypeMethodDescriptionvoid
aggregate
(AdaptrisMessage original, Iterable<AdaptrisMessage> messages) Joins multipleAdaptrisMessage
s into a single AdaptrisMessage objects.void
Set the template for the resulting XML documentMethods inherited from class com.adaptris.core.services.aggregator.XmlDocumentAggregator
documentFactoryBuilder, getDocumentEncoding, getMergeImplementation, getXmlDocumentFactoryConfig, joinMessage, setDocumentEncoding, setMergeImplementation, setXmlDocumentFactoryConfig
Methods inherited from class com.adaptris.core.services.aggregator.MessageAggregatorImpl
filter, filter, getFilterCondition, getOverwriteMetadata, getRetainFilterExceptionsMessages, overwriteMetadata, overwriteMetadata, setFilterCondition, setOverwriteMetadata, setRetainFilterExceptionsMessages, withOverwriteMetadata
-
Constructor Details
-
IgnoreOriginalXmlDocumentAggregator
public IgnoreOriginalXmlDocumentAggregator() -
IgnoreOriginalXmlDocumentAggregator
-
IgnoreOriginalXmlDocumentAggregator
-
-
Method Details
-
aggregate
public void aggregate(AdaptrisMessage original, Iterable<AdaptrisMessage> messages) throws CoreException Description copied from interface:MessageAggregator
Joins multiple
AdaptrisMessage
s into a single AdaptrisMessage objects. Preservation of metadata is down to the implementation.- Specified by:
aggregate
in interfaceMessageAggregator
- Overrides:
aggregate
in classXmlDocumentAggregator
- Parameters:
original
- the original messagemessages
- the list of messages to join.- Throws:
CoreException
-
getTemplate
- Returns:
- the template
-
setTemplate
Set the template for the resulting XML document- Parameters:
s
- the template to set; wrapped in CDATA tags as appropriate.
-