Examples of WebSocketComponent


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

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

    }

    @Override
    public void configure() throws Exception {
        // setup Camel web-socket component on the port we have defined
        WebsocketComponent wc = getContext().getComponent("websocket", WebsocketComponent.class);
        wc.setPort(port);
        // we can serve static resources from the classpath: or file: system
        wc.setStaticResources("classpath:.");

        // setup Twitter component
        TwitterComponent tc = getContext().getComponent("twitter", TwitterComponent.class);
        tc.setAccessToken(accessToken);
        tc.setAccessTokenSecret(accessTokenSecret);
View Full Code Here

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

    }

    @Override
    public void configure() throws Exception {
        // setup Camel web-socket component on the port we have defined
        WebsocketComponent wc = getContext().getComponent("websocket", WebsocketComponent.class);
        wc.setPort(port);
        // we can serve static resources from the classpath: or file: system
        wc.setStaticResources("classpath:.");

        // setup Twitter component
        TwitterComponent tc = getContext().getComponent("twitter", TwitterComponent.class);
        tc.setAccessToken(accessToken);
        tc.setAccessTokenSecret(accessTokenSecret);
View Full Code Here

Examples of org.zaproxy.zap.extension.websocket.ui.httppanel.component.WebSocketComponent

            return NAME;
        }
       
        @Override
        public HttpPanelComponentInterface getNewComponent() {
            return new WebSocketComponent();
        }
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.