org.mule.routing.outbound
Class AbstractMessageSplitter

java.lang.Object
  extended byorg.mule.routing.outbound.AbstractOutboundRouter
      extended byorg.mule.routing.outbound.FilteringOutboundRouter
          extended byorg.mule.routing.outbound.AbstractMessageSplitter
All Implemented Interfaces:
UMOOutboundRouter, UMORouter
Direct Known Subclasses:
FilteringListMessageSplitter

public abstract class AbstractMessageSplitter
extends FilteringOutboundRouter

AbstractMessageSplitter is an outbound Message Splitter used to split the contents of a received message into sup parts that can be processed by other components.

Version:
$Revision: 1.1.1.1 $
Author:
Ross Mason

Field Summary
protected  boolean multimatch
           
 
Fields inherited from class org.mule.routing.outbound.AbstractOutboundRouter
correlationGroupExtractor, correlationId, correlationIdExtractor, correlationSequenceExtractor, endpoints, logger, replyTo, routerStatistics
 
Constructor Summary
AbstractMessageSplitter()
           
 
Method Summary
protected abstract  UMOMessage getMessagePart(UMOMessage message, UMOEndpoint endpoint)
          Retrieves a specific message part for the given endpoint.
protected  void initialise(UMOMessage message)
          Template method can be used to split the message up before the getMessagePart method is called .
 UMOMessage route(UMOMessage message, UMOSession session, boolean synchronous)
           
 
Methods inherited from class org.mule.routing.outbound.FilteringOutboundRouter
getFilter, getTransformer, isMatch, setFilter, setTransformer
 
Methods inherited from class org.mule.routing.outbound.AbstractOutboundRouter
addEndpoint, dispatch, getCorrelationGroupExtractor, getCorrelationIdExtractor, getCorrelationSequenceExtractor, getEndpoints, getReplyTo, getRouterStatistics, isCorrelationId, removeEndpoint, send, setCorrelationGroupExtractor, setCorrelationId, setCorrelationIdExtractor, setCorrelationSequenceExtractor, setEndpoints, setMessageProperties, setReplyTo, setRouterStatistics
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

multimatch

protected boolean multimatch
Constructor Detail

AbstractMessageSplitter

public AbstractMessageSplitter()
Method Detail

route

public UMOMessage route(UMOMessage message,
                        UMOSession session,
                        boolean synchronous)
                 throws RoutingException
Specified by:
route in interface UMOOutboundRouter
Overrides:
route in class FilteringOutboundRouter
Throws:
RoutingException

initialise

protected void initialise(UMOMessage message)
Template method can be used to split the message up before the getMessagePart method is called .

Parameters:
message - the message being routed

getMessagePart

protected abstract UMOMessage getMessagePart(UMOMessage message,
                                             UMOEndpoint endpoint)
Retrieves a specific message part for the given endpoint. the message will then be routed via the parovider.

Parameters:
message - the current message being processed
endpoint - the endpoint that will be used to route the resulting message part
Returns:
the message part to dispatch


Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.