public interface ResultInterceptor
| Modifier and Type | Method and Description |
|---|---|
void |
interceptResult(Object result,
Exchange resultExchange)
Do additional result exchange processing, for example, adding custom headers.
|
Object |
splitResult(Object result)
Split a complex result into result elements.
|
Object splitResult(Object result)
result - API method invocation resultvoid interceptResult(Object result, Exchange resultExchange)
result - result of API method invocation.resultExchange - result as a Camel exchange, may be a split result from Arrays or Collections.Apache Camel