Package org.apache.synapse

Examples of org.apache.synapse.Processor.process()


    public void testAddressingProcessor() throws Exception {
        SynapseMessage sm = new Axis2SynapseMessage(
                Axis2EnvSetup.axis2Deployment("target/synapse-repository"));
        Processor addressingProcessor = new AddressingInProcessor();
        SynapseEnvironment env = new Axis2SynapseEnvironment(null,null);
        boolean result = addressingProcessor.process(env,sm);
        assertTrue(((Boolean) sm.getProperty(
                Constants.MEDIATOR_RESPONSE_PROPERTY)).booleanValue());
        assertTrue(result);
    }
}
View Full Code Here


    }
    Iterator it = processors.iterator();
    while (it.hasNext()) {
      Processor p = (Processor) it.next();
      log.debug(p.getName() + " = "+ p.getClass());
      if (!p.process(se,smc))
        return false;
    }
    return true;
  }
View Full Code Here

public class BulitinProcessorTest extends TestCase {
    public void testLogProcessor() throws Exception {
        SynapseMessage sm = new Axis2SynapseMessage(
                Axis2EnvSetup.axis2Deployment("target/synapse-repository"));
        Processor log = new LogProcessor();
        boolean result = log.process(null,sm);
        assertTrue(result);
    }
    public void testSendProcessorTest() throws Exception {

    }
View Full Code Here

 
  public boolean process(SynapseEnvironment se, SynapseMessage sm) {
    log.debug("process");
    Processor p = se.lookupProcessor(getRef());
    if (p==null) log.debug("processor with name "+this.getRef()+" not found");
    else return p.process(se, sm);
    return true;
  }

  public void setRef(String ref) {
    this.ref = ref;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.