Package org.apache.camel.component.atmosphere.websocket

Examples of org.apache.camel.component.atmosphere.websocket.WebsocketComponent


        return false;
    }

    @Test
    public void testComponentConfiguration() throws Exception {
        WebsocketComponent comp = context.getComponent("atmosphere-websocket", WebsocketComponent.class);
        EndpointConfiguration conf = comp.createConfiguration("atmosphere-websocket://localhost:8088/hola?sendToAll=true&useStreaming=false");

        assertEquals("true", conf.getParameter("sendToAll"));
        assertEquals("false", conf.getParameter("useStreaming"));

        ComponentConfiguration compConf = comp.createComponentConfiguration();
        String json = compConf.createParameterJsonSchema();

        assertTrue(json.contains("\"useStreaming\": { \"type\": \"boolean\" }"));
        assertTrue(json.contains("\"sendToAll\": { \"type\": \"boolean\" }"));
    }
View Full Code Here

TOP

Related Classes of org.apache.camel.component.atmosphere.websocket.WebsocketComponent

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.