public abstract class MessageSplitterImp extends java.lang.Object implements MessageSplitter
MessageSplitter.splitMessage(AdaptrisMessage)
.Modifier and Type | Class and Description |
---|---|
protected class |
MessageSplitterImp.SplitMessageIterator |
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logR |
Constructor and Description |
---|
MessageSplitterImp() |
Modifier and Type | Method and Description |
---|---|
protected void |
copyMetadata(AdaptrisMessage parent,
AdaptrisMessage child)
Copy metadata from the parent to the child.
|
java.lang.Boolean |
getCopyMetadata()
Returns whether to copy metadata from the original message to the split
messages.
|
java.lang.Boolean |
getCopyObjectMetadata() |
AdaptrisMessageFactory |
getMessageFactory() |
protected AdaptrisMessageFactory |
selectFactory(AdaptrisMessage msg)
Select the AdaptrisMessageFactory instance to use to create new messages.
|
void |
setCopyMetadata(java.lang.Boolean b)
Sets whether to copy metadata from the original message to the split
messages.
|
void |
setCopyObjectMetadata(java.lang.Boolean b)
Whether or not to preserve object metadata to the split messages.
|
void |
setMessageFactory(AdaptrisMessageFactory f)
Set the message factory used when creating AdaptrisMessage instances.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
splitMessage
protected void copyMetadata(AdaptrisMessage parent, AdaptrisMessage child)
parent
- the parent AdaptrisMessagechild
- the child AdaptrisMessagesetCopyMetadata(Boolean)
,
setCopyObjectMetadata(Boolean)
protected AdaptrisMessageFactory selectFactory(AdaptrisMessage msg)
msg
- the AdaptrisMessage to derive the message factory from.AdaptrisMessage.getFactory()
,
setMessageFactory(AdaptrisMessageFactory)
public AdaptrisMessageFactory getMessageFactory()
public void setMessageFactory(AdaptrisMessageFactory f)
f
- the messageFactory to setpublic void setCopyMetadata(java.lang.Boolean b)
Sets whether to copy metadata from the original message to the split messages.
b
- whether to copy metadata from the original message to the split
messages (default true)public java.lang.Boolean getCopyMetadata()
Returns whether to copy metadata from the original message to the split messages.
public java.lang.Boolean getCopyObjectMetadata()
public void setCopyObjectMetadata(java.lang.Boolean b)
b
- true to preserve object metadata (default false)