Package org.apache.camel

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


        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

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

        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

        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

        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

        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

        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

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

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

        assertTrue(json.contains("\"application\": { \"type\": \"string\""));
        assertTrue(json.contains("\"clientId\": { \"type\": \"string\""));
        assertTrue(json.contains("\"operation\": { \"type\": \"string\""));
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.