org.apache.camel.rx.support
Class ExchangeToBodyFunc1<T>

java.lang.Object
  extended by org.apache.camel.rx.support.ExchangeToBodyFunc1<T>
All Implemented Interfaces:
rx.functions.Func1<org.apache.camel.Exchange,T>, rx.util.functions.Function

public class ExchangeToBodyFunc1<T>
extends Object
implements rx.util.functions.Func1<org.apache.camel.Exchange,T>

A simple Func1 to convert an Exchange to the given type using the IN Message's body


Constructor Summary
ExchangeToBodyFunc1(Class<T> bodyType)
           
 
Method Summary
 T call(org.apache.camel.Exchange exchange)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExchangeToBodyFunc1

public ExchangeToBodyFunc1(Class<T> bodyType)
Method Detail

call

public T call(org.apache.camel.Exchange exchange)
Specified by:
call in interface rx.functions.Func1<org.apache.camel.Exchange,T>


Apache Camel