Examples of createParameterJsonSchema()


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

        if (json == null) {
            // okay this requires having the component on the classpath and being instantiated
            Component component = context.getComponent(componentName);
            if (component != null) {
                ComponentConfiguration configuration = component.createComponentConfiguration();
                json = configuration.createParameterJsonSchema();
            }
        }
        return json;
    }
View Full Code Here

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

        EndpointConfiguration conf = comp.createConfiguration("test:my:foo?timeout=1000");

        assertEquals("1000", conf.getParameter("timeout"));

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

        assertTrue(json.contains("\"retainFirst\": { \"type\": \"integer\""));
        assertTrue(json.contains("\"timeout\": { \"type\": \"integer\""));
    }
View Full Code Here

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

        EndpointConfiguration conf = comp.createConfiguration("xslt:foo?deleteOutputFile=true");

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

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

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

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

        assertEquals("true", conf.getParameter("usePersist"));
        assertEquals("custom", conf.getParameter("persistenceUnit"));

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

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

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

        assertEquals("secret", conf.getParameter("password"));
        assertEquals("2500", conf.getParameter("connectionTimeout"));

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

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

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

        EndpointConfiguration conf = comp.createConfiguration("bean:foo?method=bar");

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

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

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

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

        EndpointConfiguration conf = comp.createConfiguration("dataset:foo?minRate=3");

        assertEquals("3", conf.getParameter("minRate"));

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

        assertTrue(json.contains("\"preloadSize\": { \"type\": \"integer\""));
        assertTrue(json.contains("\"minRate\": { \"type\": \"integer\""));
        assertTrue(json.contains("\"exchangePattern\": { \"type\": \"string\", \"javaType\": \"org.apache.camel.ExchangePattern\""
View Full Code Here

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

        EndpointConfiguration conf = comp.createConfiguration("language:simple:foo?transform=false");

        assertEquals("false", conf.getParameter("transform"));

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

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

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

        EndpointConfiguration conf = comp.createConfiguration("file:target/foo?delete=true");

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

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

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

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

        EndpointConfiguration conf = comp.createConfiguration("timer:foo?period=2000");

        assertEquals("2000", conf.getParameter("period"));

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

        assertTrue(json.contains("\"timerName\": { \"type\": \"string\""));
        assertTrue(json.contains("\"delay\": { \"type\": \"integer\""));
    }
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.