Class StringAggregationStrategy
- java.lang.Object
-
- org.apache.camel.processor.aggregate.StringAggregationStrategy
-
- All Implemented Interfaces:
org.apache.camel.AggregationStrategy
public class StringAggregationStrategy extends Object implements org.apache.camel.AggregationStrategy
-
-
Constructor Summary
Constructors Constructor Description StringAggregationStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 Stringvoid
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 incomingExchange
.
-
-
-
Method Detail
-
delimiter
public StringAggregationStrategy delimiter(String delimiter)
Set delimiter used for joining aggregated String- Parameters:
delimiter
- The delimiter to join with. Default empty String
-
pick
public StringAggregationStrategy pick(org.apache.camel.Expression expression)
Set an expression to extract the element to be aggregated from the incomingExchange
. By default, it picks the full IN message body of the incoming exchange.- Parameters:
expression
- The picking expression.- Returns:
- This instance.
-
aggregate
public org.apache.camel.Exchange aggregate(org.apache.camel.Exchange oldExchange, org.apache.camel.Exchange newExchange)
- Specified by:
aggregate
in interfaceorg.apache.camel.AggregationStrategy
-
onCompletion
public void onCompletion(org.apache.camel.Exchange exchange)
- Specified by:
onCompletion
in interfaceorg.apache.camel.AggregationStrategy
-
-