Package org.apache.synapse.rest

Examples of org.apache.synapse.rest.API


    public void testAPISerialization4() throws Exception {
        String xml = "<api name=\"test\" context=\"/dictionary\" hostname=\"apache.org\" port=\"8243\"" +
                " xmlns=\"http://ws.apache.org/ns/synapse\"><resource url-mapping=\"/admin/view\" " +
                "outSequence=\"out\"><inSequence><log/><send/></inSequence></resource></api>";
        OMElement om = AXIOMUtil.stringToOM(xml);
        API api = APIFactory.createAPI(om);
        OMElement out = APISerializer.serializeAPI(api);
        assertXMLEqual(xml, out.toString());
    }
View Full Code Here


                "<resource url-mapping=\"/admin/*\"><inSequence><log/><send/></inSequence><outSequence>" +
                "<log/><send/></outSequence></resource><resource uri-template=\"/{char}/{word}\">" +
                "<inSequence><send/></inSequence><faultSequence><log level=\"full\"/></faultSequence>" +
                "</resource></api>";
        OMElement om = AXIOMUtil.stringToOM(xml);
        API api = APIFactory.createAPI(om);
        OMElement out = APISerializer.serializeAPI(api);
        assertXMLEqual(xml, out.toString());
    }
View Full Code Here

TOP

Related Classes of org.apache.synapse.rest.API

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.