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 simillar 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, FEATURE_Q, log, PROP_Q
 
Constructor Summary
CloneMediatorFactory()
           
 
Method Summary
 Mediator createMediator(OMElement elem)
          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
handleException, handleException, 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

createMediator

public Mediator createMediator(OMElement elem)
This method implements the createMediator method of the MediatorFactory interface

Parameters:
elem - - OMElement describing the element which will be parsed to build the CloneMediator
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 configuraiton


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