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
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.camel.Exchange
aggregate
(org.apache.camel.Exchange oldExchange, org.apache.camel.Exchange newExchange) Set delimiter used for joining aggregated Stringvoid
onCompletion
(org.apache.camel.Exchange exchange) pick
(org.apache.camel.Expression expression) Set an expression to extract the element to be aggregated from the incomingExchange
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.camel.AggregationStrategy
aggregate, canPreComplete, onCompletion, onOptimisticLockFailure, preComplete, timeout
-
Constructor Details
-
StringAggregationStrategy
public StringAggregationStrategy()
-
-
Method Details
-
delimiter
Set delimiter used for joining aggregated String- Parameters:
delimiter
- The delimiter to join with. Default empty String
-
pick
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
-