Package org.apache.camel

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


    public String componentParameterJsonSchema(String componentName) throws Exception {
        Component component = context.getComponent(componentName);
        if (component != null) {
            ComponentConfiguration configuration = component.createComponentConfiguration();
            return configuration.createParameterJsonSchema();
        } else {
            return null;
        }
    }
View Full Code Here


    public String componentParameterJsonSchema(String componentName) throws Exception {
        Component component = context.getComponent(componentName);
        if (component != null) {
            ComponentConfiguration configuration = component.createComponentConfiguration();
            return configuration.createParameterJsonSchema();
        } else {
            return null;
        }
    }
View Full Code Here

        assertEquals("foo", conf.getParameter("username"));
        assertEquals("secret", conf.getParameter("password"));

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

        assertTrue(json.contains("\"maximumReconnectAttempts\": { \"type\": \"int\" }"));
        assertTrue(json.contains("\"dataTimeout\": { \"type\": \"int\" }"));
    }
View Full Code Here

        assertEquals("foo", conf.getParameter("username"));
        assertEquals("secret", conf.getParameter("password"));

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

        assertTrue(json.contains("\"maximumReconnectAttempts\": { \"type\": \"int\" }"));
        assertTrue(json.contains("\"download\": { \"type\": \"boolean\" }"));
    }
View Full Code Here

        assertEquals("foo", conf.getParameter("username"));
        assertEquals("secret", conf.getParameter("password"));

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

        assertTrue(json.contains("\"maximumReconnectAttempts\": { \"type\": \"int\" }"));
        assertTrue(json.contains("\"dataTimeout\": { \"type\": \"int\" }"));
    }
View Full Code Here

        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\": \"java.lang.String\" }"));
        assertTrue(json.contains("\"transacted\": { \"type\": \"boolean\" }"));
    }
View Full Code Here

        EndpointConfiguration conf = comp.createConfiguration("twitter:search?keywords=camel");

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

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

        assertTrue(json.contains("\"accessToken\": { \"type\": \"java.lang.String\" }"));
        assertTrue(json.contains("\"consumerKey\": { \"type\": \"java.lang.String\" }"));
    }
View Full Code Here

        assertEquals("Insert", conf.getParameter("statementType"));
        assertEquals("5", conf.getParameter("maxMessagesPerPoll"));

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

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

        assertEquals("true", conf.getParameter("stateful"));
        assertEquals("false", conf.getParameter("deleteJob"));

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

        assertTrue(json.contains("\"stateful\": { \"type\": \"boolean\" }"));
        assertTrue(json.contains("\"deleteJob\": { \"type\": \"boolean\" }"));
    }
View Full Code Here

        assertEquals("LOCAL", conf.getParameter("fileSystemType"));
        assertEquals("ARRAY_FILE", conf.getParameter("fileType"));
        assertEquals("0", conf.getParameter("initialDelay"));

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

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