org.mule.routing
Class MapSplitter

java.lang.Object
  extended by org.mule.processor.AbstractInterceptingMessageProcessor
      extended by org.mule.routing.AbstractSplitter
          extended by org.mule.routing.MapSplitter
All Implemented Interfaces:
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.AbstractSplitter
enableCorrelation, messageInfoMapping, muleContext, resultsHandler
 
Fields inherited from class org.mule.processor.AbstractInterceptingMessageProcessor
logger, next, notificationHandler
 
Constructor Summary
MapSplitter()
           
 
Method Summary
protected  List<MuleMessage> splitMessage(MuleEvent event)
           
 
Methods inherited from class org.mule.routing.AbstractSplitter
isSplitRequired, process, processParts, setEnableCorrelation, setMessageInfoMapping, setMuleContext
 
Methods inherited from class org.mule.processor.AbstractInterceptingMessageProcessor
fireNotification, getMuleContext, processNext, setListener, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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-2014 MuleSoft, Inc.. All Rights Reserved.