org.apache.synapse.config.xml
Class CloneMediatorSerializer

java.lang.Object
  extended by org.apache.synapse.config.xml.AbstractMediatorSerializer
      extended by org.apache.synapse.config.xml.CloneMediatorSerializer
All Implemented Interfaces:
MediatorSerializer

public class CloneMediatorSerializer
extends AbstractMediatorSerializer

This will serialize the CloneMediator to the xml configuration as specified bellow

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


Field Summary
 
Fields inherited from class org.apache.synapse.config.xml.AbstractMediatorSerializer
fac, log, nullNS, PROP_Q, synNS
 
Constructor Summary
CloneMediatorSerializer()
           
 
Method Summary
 String getMediatorClassName()
          This method will implement the getMediatorClassName method of the MediatorSerializer interface
 OMElement serializeMediator(OMElement parent, Mediator m)
          This method will implement the serializeMediator method of the MediatorSerializer interface and implements the serialization of CloneMediator to its configuration
 
Methods inherited from class org.apache.synapse.config.xml.AbstractMediatorSerializer
handleException, handleException, saveTracingState, serializeMediatorProperties, serializeNamespaces, serializeProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CloneMediatorSerializer

public CloneMediatorSerializer()
Method Detail

serializeMediator

public OMElement serializeMediator(OMElement parent,
                                   Mediator m)
This method will implement the serializeMediator method of the MediatorSerializer interface and implements the serialization of CloneMediator to its configuration

Parameters:
parent - OMElement describing the parent element to which the newlly generated clone element should be attached as a child, if provided
m - Mediator of the type CloneMediator which is subjected to the serialization
Returns:
OMElement serialized in to xml from the given parameters

getMediatorClassName

public String getMediatorClassName()
This method will implement the getMediatorClassName method of the MediatorSerializer interface

Returns:
full class name of the Mediator which is serialized by this Serializer


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