Class ListDataSet
java.lang.Object
org.apache.camel.component.dataset.DataSetSupport
org.apache.camel.component.dataset.ListDataSet
- All Implemented Interfaces:
DataSet
- Direct Known Subclasses:
FileDataSet
A DataSet that allows a list of static payloads to be used to create each message exchange along with using a
pluggable transformer to customize the messages.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Object
createMessageBody
(long messageIndex) Creates the message body for a given message.void
setDefaultBodies
(List<Object> defaultBodies) Methods inherited from class org.apache.camel.component.dataset.DataSetSupport
applyHeaders, assertMessageExpected, getDefaultHeaders, getOutputTransformer, getReportCount, getSize, populateDefaultHeaders, populateMessage, setDefaultHeaders, setOutputTransformer, setReportCount, setSize
-
Constructor Details
-
ListDataSet
public ListDataSet() -
ListDataSet
-
-
Method Details
-
getDefaultBodies
-
setDefaultBodies
-
createMessageBody
Creates the message body for a given message. If the messageIndex is greater than the size of the list, use the modulus.- Specified by:
createMessageBody
in classDataSetSupport
-