...
Code Block | ||||
---|---|---|---|---|
| ||||
package samples.mediators; import org.apache.synapse.MessageContext; import org.apache.synapse.Mediator; import org.apache.axiom.om.OMElement; import org.apache.axiom.om.OMAbstractFactory; import org.apache.axiom.om.OMFactory; import org.apache.axiom.soap.SOAPFactory; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import javax.xml.namespace.QName; public class SimpleClassMediator implementsextends MediatorAbstractMediator { private static final Log log = LogFactory.getLog(DiscountQuoteMediator.class); private String varible1="10"; private String varible2="10"; private int varible3=0; public DiscountQuoteMediator(){} public boolean mediate(MessageContext mc) { // Do somthing useful.. // Note the access to the Synapse Message context return true; } public String getType() { return null; } public void setTraceState(int traceState) { traceState = 0; } public int getTraceState() { return 0; } public void setvarible1(String newValue) { varible1=newValue; } public String getvarible1() { return varible1; } public void setvarible2(String newValue){ varible2=newValue; } public String getvarible2(){ return varible2; } } |
...