Class UseOriginalAggregationStrategy

java.lang.Object
org.apache.camel.processor.aggregate.UseOriginalAggregationStrategy
All Implemented Interfaces:
org.apache.camel.AggregationStrategy

public class UseOriginalAggregationStrategy extends Object implements org.apache.camel.AggregationStrategy
An AggregationStrategy which just uses the original exchange which can be needed when you want to preserve the original Exchange. For example when splitting an Exchange and then you may want to keep routing using the original Exchange.
See Also:
  • Constructor Details

    • UseOriginalAggregationStrategy

      public UseOriginalAggregationStrategy()
    • UseOriginalAggregationStrategy

      public UseOriginalAggregationStrategy(boolean propagateException)
    • UseOriginalAggregationStrategy

      public UseOriginalAggregationStrategy(org.apache.camel.Exchange original, boolean propagateException)
  • Method Details

    • newInstance

      public UseOriginalAggregationStrategy newInstance(org.apache.camel.Exchange original)
      Creates a new instance as a clone of this strategy with the new given original.
    • aggregate

      public org.apache.camel.Exchange aggregate(org.apache.camel.Exchange oldExchange, org.apache.camel.Exchange newExchange)
      Specified by:
      aggregate in interface org.apache.camel.AggregationStrategy
    • checkException

      protected Exception checkException(org.apache.camel.Exchange oldExchange, org.apache.camel.Exchange newExchange)
    • getOriginal

      public org.apache.camel.Exchange getOriginal()
    • toString

      public String toString()
      Overrides:
      toString in class Object