org.mule.routing
Class AbstractSplitter

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
All Implemented Interfaces:
AnnotatedObject, MuleContextAware, InterceptingMessageProcessor, MessageProcessor, MessageSource
Direct Known Subclasses:
ExpressionSplitter, FeedSplitter, FeedSplitter, MapSplitter, MessageChunkSplitter

public abstract class AbstractSplitter
extends AbstractMessageSequenceSplitter

Splits a message invoking the next message processor one for each split part. Implementations must implement splitMessage(MuleEvent) and determine how the message is split.

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


Field Summary
 
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
AbstractSplitter()
           
 
Method Summary
protected abstract  List<MuleMessage> splitMessage(MuleEvent event)
           
protected  MessageSequence<?> splitMessageIntoSequence(MuleEvent event)
          Converts the event into a MessageSequence that will retrieve each of the event elements
 
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
 

Constructor Detail

AbstractSplitter

public AbstractSplitter()
Method Detail

splitMessageIntoSequence

protected MessageSequence<?> splitMessageIntoSequence(MuleEvent event)
                                               throws MuleException
Description copied from class: AbstractMessageSequenceSplitter
Converts the event into a MessageSequence that will retrieve each of the event elements

Specified by:
splitMessageIntoSequence in class AbstractMessageSequenceSplitter
Parameters:
event - the event to split
Returns:
a sequence of elements
Throws:
MuleException

splitMessage

protected abstract List<MuleMessage> splitMessage(MuleEvent event)
                                           throws MuleException
Throws:
MuleException


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