org.mule.routing
Class MapSplitter

java.lang.Object
  extended by org.mule.processor.AbstractInterceptingMessageProcessorBase
      extended by org.mule.processor.AbstractInterceptingMessageProcessor
          extended by org.mule.routing.outbound.AbstractMessageSequenceSplitter
              extended by org.mule.routing.AbstractSplitter
                  extended by org.mule.routing.MapSplitter
All Implemented Interfaces:
AnnotatedObject, MuleContextAware, InterceptingMessageProcessor, MessageProcessor, MessageSource

public class MapSplitter
extends AbstractSplitter

Splits a message that has a map payload invoking the next message processor one for each item in the map in order. The Map entry value is used as the new payload and the map key is set as a message property with the following property name 'key'.

EIP Reference: http://www .eaipatterns.com/Sequencer.html


Field Summary
static String MAP_ENTRY_KEY
           
 
Fields inherited from class org.mule.routing.outbound.AbstractMessageSequenceSplitter
batchSize, counterVariableName, enableCorrelation, messageInfoMapping, muleContext, resultsHandler
 
Fields inherited from class org.mule.processor.AbstractInterceptingMessageProcessorBase
logger, next, notificationHandler
 
Fields inherited from interface org.mule.api.AnnotatedObject
PROPERTY_NAME
 
Constructor Summary
MapSplitter()
           
 
Method Summary
protected  List<MuleMessage> splitMessage(MuleEvent event)
           
 
Methods inherited from class org.mule.routing.AbstractSplitter
splitMessageIntoSequence
 
Methods inherited from class org.mule.routing.outbound.AbstractMessageSequenceSplitter
isSplitRequired, process, processParts, setBatchSize, setCounterVariableName, setEnableCorrelation, setMessageInfoMapping, setMuleContext
 
Methods inherited from class org.mule.processor.AbstractInterceptingMessageProcessorBase
getAnnotation, getAnnotations, getListener, getMuleContext, isEventValid, processNext, setAnnotations, setListener, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mule.api.source.MessageSource
setListener
 

Field Detail

MAP_ENTRY_KEY

public static String MAP_ENTRY_KEY
Constructor Detail

MapSplitter

public MapSplitter()
Method Detail

splitMessage

protected List<MuleMessage> splitMessage(MuleEvent event)
Specified by:
splitMessage in class AbstractSplitter


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.