org.apache.synapse.config.xml
Class IterateMediatorSerializer

java.lang.Object
  extended by org.apache.synapse.config.xml.AbstractMediatorSerializer
      extended by org.apache.synapse.config.xml.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>
 


Field Summary
 
Fields inherited from class org.apache.synapse.config.xml.AbstractMediatorSerializer
DESCRIPTION_Q, fac, log, nullNS, PROP_Q, synNS
 
Constructor Summary
IterateMediatorSerializer()
           
 
Method Summary
 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
 OMElement serializeSpecificMediator(Mediator m)
          This method will implement the serialization logic of the IterateMediator class to the relevant xml configuration
 
Methods inherited from class org.apache.synapse.config.xml.AbstractMediatorSerializer
handleException, handleException, saveTracingState, serializeMediator, serializeMediatorProperties, serializeMediatorProperties, serializeNamespaces, serializeProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IterateMediatorSerializer

public IterateMediatorSerializer()
Method Detail

serializeSpecificMediator

public 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


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