org.apache.camel.impl
Class DefaultExchangeConverter
java.lang.Object
org.apache.camel.impl.DefaultExchangeConverter
- All Implemented Interfaces:
- ExchangeConverter
public class DefaultExchangeConverter
- extends Object
- implements ExchangeConverter
Default implementation of ExchangeConverter
.
- Version:
- $Revision: 659798 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultExchangeConverter
public DefaultExchangeConverter()
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 typeexchange
- the exchange to converter
- Returns:
- the converted exchange
Apache CAMEL