org.apache.synapse.config.xml
Class CloneMediatorFactory

java.lang.Object
  extended by org.apache.synapse.config.xml.AbstractMediatorFactory
      extended by org.apache.synapse.config.xml.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)]>
   <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.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
 
Constructor Summary
CloneMediatorFactory()
           
 
Method Summary
 Mediator createSpecificMediator(OMElement elem, Properties properties)
          This method implements the createMediator method of the MediatorFactory interface
 QName getTagQName()
          This method will implement the getTagQName method of the MediatorFactory interface
 
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

CloneMediatorFactory

public CloneMediatorFactory()
Method Detail

createSpecificMediator

public Mediator createSpecificMediator(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


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