Package org.apache.synapse.processors.builtin.axis2

Examples of org.apache.synapse.processors.builtin.axis2.AddressingInProcessor


public class AddressingProcessorTest extends TestCase {

    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


    public void testAddressingInProcessor() throws Exception {

        SynapseEnvironment se = TestSynapseEnvironment.createAxis2SynapseEnvironment();
        SynapseMessage smNoAdd = TestSynapseMessage.createSampleSOAP11MessageWithoutAddressing("target/synapse-repository");
        AddressingInProcessor aip = new AddressingInProcessor();

        aip.process(se, smNoAdd);
        assertTrue("to should be null if there is no addressing header", smNoAdd.getTo() == null);

        SynapseMessage smAdd = TestSynapseMessage.createSampleSOAP11MessageWithAddressing("target/synapse-repository");
        aip.process(se,smAdd);
        assertTrue("to should be the incoming addressing header",
                smAdd.getTo().getAddress().equals(TestSynapseMessage.URN_SAMPLE_TO_ADDRESS));

    }
View Full Code Here

    return ADD_Q;
  }


  public Processor createProcessor(SynapseEnvironment se, OMElement el) {
    AddressingInProcessor ap = new AddressingInProcessor();
    super.setNameOnProcessor(se,el,ap);
    return ap;
  }
View Full Code Here

 

 
  public Processor createProcessor(SynapseEnvironment se, OMElement el) {
    FaultProcessor fp = new FaultProcessor();
    super.setNameOnProcessor(se, el, fp);
    return fp;
  }
View Full Code Here

public class SecurityProcessorConfigurator extends AbstractProcessorConfigurator{
    private static final QName SEC_Q = new QName(Constants.SYNAPSE_NAMESPACE,
      "engage-security");
    public Processor createProcessor(SynapseEnvironment se, OMElement el) {
        SecurityProcessor sp = new SecurityProcessor();
        super.setNameOnProcessor(se,el,sp);
        return sp;
    }
View Full Code Here

TOP

Related Classes of org.apache.synapse.processors.builtin.axis2.AddressingInProcessor

Copyright © 2018 www.massapicom. 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.