Package org.apache.camel.spi
Interface InvokeOnHeaderStrategy
-
public interface InvokeOnHeaderStrategyPluggable strategy for invokingInvokeOnHeader.Camel provides source code generated strategies via the camel maven tooling.
- See Also:
InvokeOnHeader
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Objectinvoke(Object target, String key, Exchange exchange, AsyncCallback callback)Invoke the method based on the header key
-
-
-
Method Detail
-
invoke
Object invoke(Object target, String key, Exchange exchange, AsyncCallback callback) throws Exception
Invoke the method based on the header key- Parameters:
target- the target such as a producer extending HeaderSelectorProducerkey- the header keyexchange- the exchangecallback- the async callback- Returns:
- option response from invoking the method, or null if the method is void if a value is returned, then this value is stored as result on the message body.
- Throws:
Exception- is thrown if error invoking the method.
-
-