public class StringAggregationStrategy extends Object implements org.apache.camel.AggregationStrategy
String as the message body.
This aggregation strategy can used in combination with Splitter to batch messages| Constructor and Description |
|---|
StringAggregationStrategy() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Exchange |
aggregate(org.apache.camel.Exchange oldExchange,
org.apache.camel.Exchange newExchange) |
StringAggregationStrategy |
delimiter(String delimiter)
Set delimiter used for joining aggregated String
|
void |
onCompletion(org.apache.camel.Exchange exchange) |
StringAggregationStrategy |
pick(org.apache.camel.Expression expression)
Set an expression to extract the element to be aggregated from the incoming
Exchange. |
public StringAggregationStrategy delimiter(String delimiter)
delimiter - The delimiter to join with. Default empty Stringpublic StringAggregationStrategy pick(org.apache.camel.Expression expression)
Exchange.
By default, it picks the full IN message body of the incoming exchange.expression - The picking expression.public org.apache.camel.Exchange aggregate(org.apache.camel.Exchange oldExchange,
org.apache.camel.Exchange newExchange)
aggregate in interface org.apache.camel.AggregationStrategypublic void onCompletion(org.apache.camel.Exchange exchange)
onCompletion in interface org.apache.camel.AggregationStrategyApache Camel