org.apache.camel.processor.binding
Class DataFormatBinding

java.lang.Object
  extended by org.apache.camel.processor.binding.DataFormatBinding
All Implemented Interfaces:
Binding

public class DataFormatBinding
extends Object
implements Binding

Represents a Binding which Marshals the message in the ProduceProcessor and Unmarshals the message in the ConsumeProcessor


Constructor Summary
DataFormatBinding()
           
DataFormatBinding(DataFormat dataFormat)
           
DataFormatBinding(DataFormat consumerDataFormat, DataFormat producerDataFormat)
           
 
Method Summary
 Processor createConsumeProcessor()
          Returns a new Processor which is used by a consumer on an endpoint to process the message with the binding before its passed to the endpoint consumer producer.
 Processor createProduceProcessor()
          Returns a new Processor which is used by a producer on an endpoint to implement the producer side binding before the message is sent to the underlying endpoint.
 DataFormat getConsumerDataFormat()
           
 DataFormat getProducerDataFormat()
           
 void setConsumerDataFormat(DataFormat consumerDataFormat)
           
 void setDataFormat(DataFormat dataFormat)
          Sets the data format for both producer and consumer sides
 void setProducerDataFormat(DataFormat producerDataFormat)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataFormatBinding

public DataFormatBinding()

DataFormatBinding

public DataFormatBinding(DataFormat dataFormat)

DataFormatBinding

public DataFormatBinding(DataFormat consumerDataFormat,
                         DataFormat producerDataFormat)
Method Detail

createProduceProcessor

public Processor createProduceProcessor()
Description copied from interface: Binding
Returns a new Processor which is used by a producer on an endpoint to implement the producer side binding before the message is sent to the underlying endpoint.

Specified by:
createProduceProcessor in interface Binding

createConsumeProcessor

public Processor createConsumeProcessor()
Description copied from interface: Binding
Returns a new Processor which is used by a consumer on an endpoint to process the message with the binding before its passed to the endpoint consumer producer.

Specified by:
createConsumeProcessor in interface Binding

setDataFormat

public void setDataFormat(DataFormat dataFormat)
Sets the data format for both producer and consumer sides


getConsumerDataFormat

public DataFormat getConsumerDataFormat()

setConsumerDataFormat

public void setConsumerDataFormat(DataFormat consumerDataFormat)

getProducerDataFormat

public DataFormat getProducerDataFormat()

setProducerDataFormat

public void setProducerDataFormat(DataFormat producerDataFormat)


Apache Camel