Examples of ComponentConfiguration


Examples of org.apache.camel.ComponentConfiguration

        JmsComponent comp = context.getComponent("jms", JmsComponent.class);
        EndpointConfiguration conf = comp.createConfiguration("jms:queue:foo?replyTo=bar");

        assertEquals("bar", conf.getParameter("replyTo"));

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

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

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

Examples of org.apache.camel.ComponentConfiguration

        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

Examples of org.apache.camel.ComponentConfiguration

        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

Examples of org.apache.camel.ComponentConfiguration

                + "&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

Examples of org.apache.camel.ComponentConfiguration

        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

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

Examples of org.apache.camel.ComponentConfiguration

                + "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

Examples of org.apache.camel.ComponentConfiguration

                + "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

Examples of org.apache.camel.ComponentConfiguration

        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
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.