public class NoOpSplitter extends java.lang.Object implements MessageSplitter
MessageSplitter
implementation that doesn't actually split.
Effectively, using this splitter implementation just returns the original message as the split message on a 1:1 basis
In the adapter configuration file this class is aliased as no-op-splitter which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
NoOpSplitter() |
Modifier and Type | Method and Description |
---|---|
java.util.List<AdaptrisMessage> |
splitMessage(AdaptrisMessage msg)
Splits an
AdaptrisMessage into some number of AdaptrisMessage objects. |
public java.util.List<AdaptrisMessage> splitMessage(AdaptrisMessage msg) throws CoreException
MessageSplitter
Splits an AdaptrisMessage
into some number of AdaptrisMessage objects. Preservation of metadata is down to the
implementation.
If this method returns a CloseableIterable
, it must be closed by the caller! This contract cannot be clearly
expressed in Java code without breaking the API in uncomfortable ways for things just returning a List, which is why
this method is only declared to return Iterable.
splitMessage
in interface MessageSplitter
msg
- the msg to splitIterable
of AdaptrisMessage
CoreException
- wrapping any other exception