org.apache.camel.processor
Class Splitter

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.processor.MulticastProcessor
          extended by org.apache.camel.processor.Splitter
All Implemented Interfaces:
Processor, Service

public class Splitter
extends MulticastProcessor
implements Processor

Implements a dynamic Splitter pattern where an expression is evaluated to iterate through each of the parts of a message and then each part is then send to some endpoint.

Version:
$Revision: 747062 $

Constructor Summary
Splitter(Expression expression, Processor destination, AggregationStrategy aggregationStrategy)
           
Splitter(Expression expression, Processor destination, AggregationStrategy aggregationStrategy, boolean parallelProcessing, Executor executor, boolean streaming)
           
 
Method Summary
protected  Iterable<org.apache.camel.processor.MulticastProcessor.ProcessorExchangePair> createProcessorExchangePairs(Exchange exchange)
           
 Expression getExpression()
           
 String toString()
           
protected  void updateNewExchange(Exchange exchange, int index, Iterable<org.apache.camel.processor.MulticastProcessor.ProcessorExchangePair> allPairs)
           
 
Methods inherited from class org.apache.camel.processor.MulticastProcessor
doAggregate, doStart, doStop, getAggregationStrategy, getExecutor, getProcessors, isParallelProcessing, isStreaming, process, toProducers
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, getStatus, getThreadName, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, nextThreadCounter, notStarting, removeChildService, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Processor
process
 

Constructor Detail

Splitter

public Splitter(Expression expression,
                Processor destination,
                AggregationStrategy aggregationStrategy)

Splitter

public Splitter(Expression expression,
                Processor destination,
                AggregationStrategy aggregationStrategy,
                boolean parallelProcessing,
                Executor executor,
                boolean streaming)
Method Detail

toString

public String toString()
Overrides:
toString in class MulticastProcessor

createProcessorExchangePairs

protected Iterable<org.apache.camel.processor.MulticastProcessor.ProcessorExchangePair> createProcessorExchangePairs(Exchange exchange)
Overrides:
createProcessorExchangePairs in class MulticastProcessor

updateNewExchange

protected void updateNewExchange(Exchange exchange,
                                 int index,
                                 Iterable<org.apache.camel.processor.MulticastProcessor.ProcessorExchangePair> allPairs)
Overrides:
updateNewExchange in class MulticastProcessor

getExpression

public Expression getExpression()


Copyright © 2009 Apache Software Foundation. All Rights Reserved.