Class IterateMediatorSerializer

  • All Implemented Interfaces:
    MediatorSerializer

    public class IterateMediatorSerializer
    extends AbstractMediatorSerializer
    This class will be acting as the serializer for the IterateMediator which will convert the IterateMediator instance to the following xml configuration
     <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>
     
    • Constructor Detail

      • IterateMediatorSerializer

        public IterateMediatorSerializer()
    • Method Detail

      • serializeSpecificMediator

        public org.apache.axiom.om.OMElement serializeSpecificMediator​(Mediator m)
        This method will implement the serialization logic of the IterateMediator class to the relevant xml configuration
        Specified by:
        serializeSpecificMediator in class AbstractMediatorSerializer
        Parameters:
        m - IterateMediator to be serialized
        Returns:
        OMElement describing the serialized configuration of the IterateMediator
      • getMediatorClassName

        public String getMediatorClassName()
        This method implements the getMediatorClassName of the interface MediatorSerializer and will be used in getting the mediator class name which will be serialized by this serializer
        Returns:
        String representing the full class name of the mediator