Package org.apache.synapse.config

Examples of org.apache.synapse.config.SynapseConfiguration.addProperty()


        if (props != null) {
            Iterator iter = props.keySet().iterator();
            while (iter.hasNext()) {
                String key = (String) iter.next();
                testConfig.addProperty(key, (Property)props.get(key));
            }
        }
        synCtx.setConfiguration(testConfig);

        SOAPEnvelope envelope = OMAbstractFactory.getSOAP11Factory().getDefaultEnvelope();
View Full Code Here


        SynapseConfiguration synCfg = new SynapseConfiguration();
        Property prop = new Property();
        prop.setName("name");
        prop.setType(Property.VALUE_TYPE);
        prop.setValue("value");
        synCfg.addProperty("name", prop);
        synCtx.setConfiguration(synCfg);

        assertTrue(
            "value".equals(Axis2MessageContext.getStringValue(
                new AXIOMXPath("synapse:get-property('name')"), synCtx)));
View Full Code Here

    public void testSetAndReadGlobalProperty() throws Exception {

        MessageContext synCtx = TestUtils.getTestContext("<empty/>");

        SynapseConfiguration synCfg = new SynapseConfiguration();
        synCfg.addProperty("name", "value");
        synCtx.setConfiguration(synCfg);

        assertTrue(
            "value".equals(Util.getStringValue(
                new AXIOMXPath("synapse:get-property('name')"), synCtx)));
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.