Class StringPayloadSplitter
java.lang.Object
com.adaptris.core.services.splitter.MessageSplitterImp
com.adaptris.core.services.splitter.StringPayloadSplitter
- All Implemented Interfaces:
MessageSplitter
- Direct Known Subclasses:
SimpleRegexpMessageSplitter
Partial implementation of MessageSplitter that splits Strings based payloads.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.adaptris.core.services.splitter.MessageSplitterImp
MessageSplitterImp.SplitMessageIterator
-
Field Summary
Fields inherited from class com.adaptris.core.services.splitter.MessageSplitterImp
logR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault split operation.Splits anAdaptrisMessage
into some number of AdaptrisMessage objects.Methods inherited from class com.adaptris.core.services.splitter.MessageSplitterImp
copyMetadata, getCopyMetadata, getCopyObjectMetadata, getMessageFactory, selectFactory, setCopyMetadata, setCopyObjectMetadata, setMessageFactory
-
Constructor Details
-
StringPayloadSplitter
public StringPayloadSplitter()
-
-
Method Details
-
splitMessage
Description copied from interface: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.- Parameters:
msg
- the msg to split- Returns:
- an
Iterable
ofAdaptrisMessage
- Throws:
CoreException
- wrapping any other exception- See Also:
-
split
default split operation.- Parameters:
messagePayload
- the string payload derived from theAdaptrisMessage
- Returns:
- a list of strings that make up the split messages.
- Throws:
Exception
-