org.apache.camel.impl
Class DefaultExchangeConverter

java.lang.Object
  extended by org.apache.camel.impl.DefaultExchangeConverter
All Implemented Interfaces:
ExchangeConverter

public class DefaultExchangeConverter
extends Object
implements ExchangeConverter

Default implementation of ExchangeConverter.

Version:
$Revision: 659798 $

Constructor Summary
DefaultExchangeConverter()
           
 
Method Summary
<T> T
convertTo(Class<T> type, Exchange exchange)
          Converts the given exchange to the new type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultExchangeConverter

public DefaultExchangeConverter()
Method Detail

convertTo

public <T> T convertTo(Class<T> type,
                       Exchange exchange)
Description copied from interface: ExchangeConverter
Converts the given exchange to the new type

Specified by:
convertTo in interface ExchangeConverter
Type Parameters:
T - the new type
Parameters:
type - the new class type
exchange - the exchange to converter
Returns:
the converted exchange


Apache CAMEL