org.mule.routing.outbound
Class FilteringListMessageSplitter
java.lang.Object
org.mule.routing.AbstractRouter
org.mule.routing.outbound.AbstractOutboundRouter
org.mule.routing.outbound.FilteringOutboundRouter
org.mule.routing.outbound.AbstractMessageSplitter
org.mule.routing.outbound.FilteringListMessageSplitter
- All Implemented Interfaces:
- MuleContextAware, Disposable, Initialisable, OutboundRouter, Router
public class FilteringListMessageSplitter
- extends AbstractMessageSplitter
FilteringListMessageSplitter
accepts a List as a message payload
then routes list elements as messages over an endpoint where the endpoint's filter
accepts the payload.
Methods inherited from class org.mule.routing.outbound.AbstractOutboundRouter |
createTransactionTemplate, dispatch, getEnableCorrelation, getEndpoint, getEndpoints, getMessageInfoMapping, getReplyTo, getTransactionConfig, isDynamicEndpoints, removeEndpoint, send, setEnableCorrelation, setEnableCorrelationAsString, setEndpoints, setMessageInfoMapping, setMessageProperties, setReplyTo, setTransactionConfig |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilteringListMessageSplitter
public FilteringListMessageSplitter()
initialise
protected void initialise(MuleMessage message)
- Template method can be used to split the message up before the getMessagePart
method is called .
- Specified by:
initialise
in class AbstractMessageSplitter
- Parameters:
message
- the message being routed
cleanup
protected void cleanup()
- Description copied from class:
AbstractMessageSplitter
- This method is called after all parts of the original message have been processed;
typically this is the case after
AbstractMessageSplitter.getMessagePart(MuleMessage, OutboundEndpoint)
returned null
.
- Specified by:
cleanup
in class AbstractMessageSplitter
getMessagePart
protected MuleMessage getMessagePart(MuleMessage message,
OutboundEndpoint endpoint)
- Description copied from class:
AbstractMessageSplitter
- Retrieves a specific message part for the given endpoint. the message will then be
routed via the provider. NOTE:Implementations must provide
proper synchronization for shared state (payload, properties, etc.)
- Specified by:
getMessagePart
in class AbstractMessageSplitter
- Parameters:
message
- the current message being processedendpoint
- the endpoint that will be used to route the resulting message part
- Returns:
- the message part to dispatch
Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.