Package org.apache.camel

Examples of org.apache.camel.ComponentConfiguration


                + "&maximumPoolSize=32&ssl=true&passphrase=#password");

        assertEquals("true", conf.getParameter("sync"));
        assertEquals("32", conf.getParameter("maximumPoolSize"));

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

        assertTrue(json.contains("\"producerPoolMinEvictableIdle\": { \"type\": \"integer\""));
        assertTrue(json.contains("\"allowDefaultCodec\": { \"type\": \"boolean\""));
    }
View Full Code Here


        EndpointConfiguration conf = comp.createConfiguration("zookeeper://localhost:39913/somepath/somenode?create=true&createMode=PERSISTENT");

        assertEquals("true", conf.getParameter("create"));
        assertEquals("PERSISTENT", conf.getParameter("createMode"));

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

        assertTrue(json.contains("\"createMode\": { \"type\": \"string\""));
        assertTrue(json.contains("\"backoff\": { \"type\": \"integer\""));
    }
View Full Code Here

        assertEquals("myotherproxy", conf.getParameter("proxyHost"));
        assertEquals("2345", conf.getParameter("proxyPort"));
        assertEquals("MyServlet", conf.getParameter("servletName"));

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

        assertTrue(json.contains("\"servletName\": { \"type\": \"string\""));
        assertTrue(json.contains("\"matchOnUriPrefix\": { \"type\": \"boolean\""));
    }
View Full Code Here

                + "&httpMethodRestrict=POST&traceEnabled=true");

        assertEquals("true", conf.getParameter("traceEnabled"));
        assertEquals("POST", conf.getParameter("httpMethodRestrict"));

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

        assertTrue(json.contains("\"httpMethodRestrict\": { \"type\": \"string\""));
        assertTrue(json.contains("\"traceEnabled\": { \"type\": \"boolean\""));
    }
View Full Code Here

        EndpointConfiguration conf = comp.createConfiguration("elasticsearch://clustername?operation=INDEX&indexName=twitter&indexType=tweet&ip=127.0.0.1");

        assertEquals("INDEX", conf.getParameter("operation"));
        assertEquals("tweet", conf.getParameter("indexType"));

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

        assertTrue(json.contains("\"indexName\": { \"type\": \"string\""));
        assertTrue(json.contains("\"local\": { \"type\": \"boolean\""));
    }
View Full Code Here

                + "&maximumPoolSize=32&ssl=true&passphrase=#password");

        assertEquals("true", conf.getParameter("sync"));
        assertEquals("32", conf.getParameter("maximumPoolSize"));

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

        assertTrue(json.contains("\"producerPoolMinEvictableIdle\": { \"type\": \"integer\""));
        assertTrue(json.contains("\"allowDefaultCodec\": { \"type\": \"boolean\""));
    }
View Full Code Here

                + "proxyAuthPort=1234&chunked=false");

        assertEquals("myproxy", conf.getParameter("proxyAuthHost"));
        assertEquals("false", conf.getParameter("chunked"));

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

        assertTrue(json.contains("\"httpMethodRestrict\": { \"type\": \"string\""));
        assertTrue(json.contains("\"throwExceptionOnFailure\": { \"type\": \"boolean\""));
    }
View Full Code Here

                + "httpClientMinThreads=4&httpClientMaxThreads=8");

        assertEquals("4", conf.getParameter("httpClientMinThreads"));
        assertEquals("8", conf.getParameter("httpClientMaxThreads"));

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

        assertTrue(json.contains("\"httpClientMaxThreads\": { \"type\": \"integer\""));
        assertTrue(json.contains("\"sessionSupport\": { \"type\": \"boolean\""));
    }
View Full Code Here

        EndpointConfiguration conf = comp.createConfiguration("glogin:localhost?devMode=true&devAdmin=true");

        assertEquals("true", conf.getParameter("devMode"));
        assertEquals("true", conf.getParameter("devAdmin"));

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

        assertTrue(json.contains("\"clientName\": { \"type\": \"string\""));
        assertTrue(json.contains("\"devMode\": { \"type\": \"boolean\""));
    }
View Full Code Here

        BeanstalkComponent comp = context.getComponent("beanstalk", BeanstalkComponent.class);
        EndpointConfiguration conf = comp.createConfiguration("beanstalk:tube?command=put");

        assertEquals("put", conf.getParameter("command"));

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

        assertTrue(json.contains("\"awaitJob\": { \"type\": \"boolean\""));
        assertTrue(json.contains("\"command\": { \"type\": \"string\""));
        assertTrue(json.contains("\"jobTimeToRun\": { \"type\": \"integer\""));
View Full Code Here

TOP

Related Classes of org.apache.camel.ComponentConfiguration

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.