org.apache.camel.component.dataset
Class SimpleDataSet

java.lang.Object
  extended by org.apache.camel.component.dataset.DataSetSupport
      extended by org.apache.camel.component.dataset.SimpleDataSet
All Implemented Interfaces:
DataSet

public class SimpleDataSet
extends DataSetSupport

A simple DataSet that allows a static payload to be used to create each message exchange along with using a pluggable transformer to randomize the message.

Version:
$Revision: 15567 $

Constructor Summary
SimpleDataSet()
           
SimpleDataSet(int size)
           
 
Method Summary
protected  Object createMessageBody(long messageIndex)
          Creates the message body for a given message
 Object getDefaultBody()
           
 void setDefaultBody(Object defaultBody)
           
 
Methods inherited from class org.apache.camel.component.dataset.DataSetSupport
applyHeaders, assertMessageExpected, getDefaultHeaders, getOutputTransformer, getReportCount, getSize, populateDefaultHeaders, populateMessage, setDefaultHeaders, setOutputTransformer, setReportCount, setSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleDataSet

public SimpleDataSet()

SimpleDataSet

public SimpleDataSet(int size)
Method Detail

getDefaultBody

public Object getDefaultBody()

setDefaultBody

public void setDefaultBody(Object defaultBody)

createMessageBody

protected Object createMessageBody(long messageIndex)
Creates the message body for a given message

Specified by:
createMessageBody in class DataSetSupport


Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.