Class CloneMediatorFactory

  • All Implemented Interfaces:
    MediatorFactory

    public class CloneMediatorFactory
    extends AbstractMediatorFactory
    The <clone> element is used to copy messages in Synapse to similar messages but with different message contexts and mediated using the specified targets
     <clone [continueParent=(true | false)] [iterations="number"]>
       <target [to="uri"] [soapAction="qname"] [sequence="sequence_ref"]
              [endpoint="endpoint_ref"]>
         <sequence>
           (mediator)+
         </sequence>?
         <endpoint>
           endpoint
         </endpoint>?
       </target>+
     </clone>
     
    • Constructor Detail

      • CloneMediatorFactory

        public CloneMediatorFactory()
    • Method Detail

      • createSpecificMediator

        public Mediator createSpecificMediator​(org.apache.axiom.om.OMElement elem,
                                               Properties properties)
        This method implements the createMediator method of the MediatorFactory interface
        Specified by:
        createSpecificMediator in class AbstractMediatorFactory
        Parameters:
        elem - - OMElement describing the element which will be parsed to build the CloneMediator
        properties -
        Returns:
        Mediator of the type CloneMediator built from the config element
      • getTagQName

        public QName getTagQName()
        This method will implement the getTagQName method of the MediatorFactory interface
        Returns:
        QName of the clone element in xml configuration