org.apache.synapse.config.xml
Class IterateMediatorFactory

java.lang.Object
  extended by org.apache.synapse.config.xml.AbstractMediatorFactory
      extended by org.apache.synapse.config.xml.IterateMediatorFactory
All Implemented Interfaces:
MediatorFactory

public class IterateMediatorFactory
extends AbstractMediatorFactory

The <iterate> element is used to split messages in Synapse to smaller messages with only one part of the elements described in the XPATH expression.

 <iterate [continueParent=(true | false)] [preservePayload=(true | false)]
          (attachPath="xpath")? expression="xpath">
   <target [to="uri"] [soapAction="qname"] [sequence="sequence_ref"]
          [endpoint="endpoint_ref"]>
     <sequence>
       (mediator)+
     </sequence>?
     <endpoint>
       endpoint
     </endpoint>?
   </target>+
 </iterate>
 


Field Summary
 
Fields inherited from class org.apache.synapse.config.xml.AbstractMediatorFactory
ATT_EXPRN, ATT_KEY, ATT_NAME, ATT_ONERROR, ATT_REGEX, ATT_SEQUENCE, ATT_SOURCE, ATT_STATS, ATT_TARGET, ATT_VALUE, ATT_XPATH, DESCRIPTION_Q, FEATURE_Q, PROP_Q, TARGET_Q
 
Constructor Summary
IterateMediatorFactory()
           
 
Method Summary
 Mediator createSpecificMediator(OMElement elem, Properties properties)
          This method will create the IterateMediator by parsing the given xml configuration
 QName getTagQName()
          Get the IterateMediator configuration tag name
 
Methods inherited from class org.apache.synapse.config.xml.AbstractMediatorFactory
collectNameValuePairs, createMediator, handleException, handleException, processAuditStatus, processTraceState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IterateMediatorFactory

public IterateMediatorFactory()
Method Detail

createSpecificMediator

public Mediator createSpecificMediator(OMElement elem,
                                       Properties properties)
This method will create the IterateMediator by parsing the given xml configuration

Specified by:
createSpecificMediator in class AbstractMediatorFactory
Parameters:
elem - OMElement describing the configuration of the IterateMediaotr
properties - properties passed
Returns:
IterateMediator created from the given configuration

getTagQName

public QName getTagQName()
Get the IterateMediator configuration tag name

Returns:
QName specifying the IterateMediator tag name of the xml configuration


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.