Package org.apache.camel

Examples of org.apache.camel.ComponentConfiguration.createParameterJsonSchema()


        EndpointConfiguration conf = comp.createConfiguration("quartz2://myGroup/myTimerName?durableJob=true&recoverableJob=true&cron=0/2+*+*+*+*+?");

        assertEquals("true", conf.getParameter("durableJob"));

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

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


        assertEquals("false", conf.getParameter("bridgeEndpoint"));
        assertEquals("false", conf.getParameter("throwExceptionOnFailure"));

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

        assertTrue(json.contains("\"GHTTP_SCHEME\": { \"type\": \"string\""));
        assertTrue(json.contains("\"HTTPS_SCHEME\": { \"type\": \"string\""));
    }
View Full Code Here

        assertEquals("foo", conf.getParameter("scope"));
        assertEquals("fred", conf.getParameter("name"));

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

        assertTrue(json.contains("\"consumerKey\": { \"type\": \"string\""));
        assertTrue(json.contains("\"scope\": { \"type\": \"string\""));
    }
View Full Code Here

        assertEquals("test2@example.org", conf.getParameter("to"));
        assertEquals("testSubject", conf.getParameter("subject"));

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

        assertTrue(json.contains("\"sender\": { \"type\": \"string\""));
        assertTrue(json.contains("\"bcc\": { \"type\": \"string\""));
    }
View Full Code Here

        EndpointConfiguration conf = comp.createConfiguration("gtask:default?workerRoot=camel");

        assertEquals("camel", conf.getParameter("workerRoot"));

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

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

        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

        assertEquals("org.apache.camel.rs.Example", conf.getParameter("resourceClasses"));
        assertEquals("32", conf.getParameter("maxClientCacheSize"));

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

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

        EndpointConfiguration conf = comp.createConfiguration("jgroups:clusterName?enableViewMessages=true");

        assertEquals("true", conf.getParameter("enableViewMessages"));

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

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

        assertEquals("jdbc/myDataSource", conf.getParameter("dataSourceRef"));
        assertEquals("true", conf.getParameter("allowNamedParameters"));

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

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

        assertEquals("true", configuration.getParameter("deep"));
        assertEquals("3", configuration.getParameter("eventTypes"));
        assertEquals("false", configuration.getParameter("noLocal"));

        ComponentConfiguration componentConfiguration = component.createComponentConfiguration();
        String json = componentConfiguration.createParameterJsonSchema();

        assertNotNull(json);
        assertTrue(json.contains("\"deep\": { \"type\": \"boolean\""));
        assertTrue(json.contains("\"eventTypes\": { \"type\": \"integer\""));
        assertTrue(json.contains("\"noLocal\": { \"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.