...
Div |
---|
class | confluenceTableSmall |
---|
|
Property | Type | Default | Description |
---|
defaultBody
| Object
| <hello>world!</hello>
| Specifies the default message body. For SimpleDataSet it is a constant payload; though if you want to create custom payloads per message, create your own derivation of DataSetSupport . |
|
...
By default, the SimpleDataSet produces the same constant payload for each exchange. If you want to customize the payload for each exchange, create a Camel Processor and configure the SimpleDataSet to use it by setting the outputTransformer property. |
|
ListDataSet (Camel 2.17)
The ListDataSet
extends DataSetSupport
, and adds a list of default bodies.
...
Div |
---|
class | confluenceTableSmall |
---|
|
Property | Type | Default | Description |
---|
defaultBodies
| Object
| <hello>world!</hello>
| List<Object>
| empty LinkedList<Object>
| Specifies the default message body. By default, the ListDataSet selects a constant payload from the list of defaultBodies using the CamelDataSetIndex . If you want to customize the payload, create a Camel Processor and configure the ListDataSet to use it by setting the outputTransformer property. | size
| long
| 10
| |
|
...
the size of the defaultBodies list | Specifies how many messages to send/consume. This value can be different from the size of the defaultBodies list. If the value is less than the size of the defaultBodies list, some of the list elements will not be used. If the value is greater than the size of the defaultBodies list, the payload for the exchange will be selected using the modulus of the CamelDataSetIndex and the size of the defaultBodies list (i.e. CamelDataSetIndex % defaultBodies.size() ) |
|
FileDataSet (Camel 2.17)
The SimpleDataSet
extends ListDataSet
, and adds support for loading the bodies from a file.
...
Div |
---|
class | confluenceTableSmall |
---|
|
Property | Type | Default | Description |
---|
sourceFile
| String File
| null | Specifies the source file for payloads | delimiter
| String
| \z | Specifies the delimiter pattern used by a java.util.Scanner to split the file into multiple payloads. |
|
Include Page |
---|
| Endpoint See Also |
---|
| Endpoint See Also |
---|
|
...