Examples of createEndpoint()


Examples of org.apache.camel.Component.createEndpoint()

                        Component component = getComponent(scheme);

                        // Ask the component to resolve the endpoint.
                        if (component != null) {
                            // Have the component create the endpoint if it can.
                            answer = component.createEndpoint(uri);

                            if (answer != null && log.isDebugEnabled()) {
                                log.debug(uri + " converted to endpoint: " + answer + " by component: " + component);
                            }
                        }
View Full Code Here

Examples of org.apache.camel.Component.createEndpoint()

        CamelContext context = createCamelContext();
        context.start();

        Component log = new LogComponent();
        context.addComponent("log", log);
        context.addEndpoint("log:/foo", log.createEndpoint("log://foo"));
        context.removeComponent("log");
        context.stop();

        List<String> expectedEvents = Arrays.asList("onContextStart", "onServiceAdd", "onServiceAdd", "onServiceAdd",
                "onServiceAdd", "onServiceAdd", "onServiceAdd", "onServiceAdd", "onThreadPoolAdd", "onThreadPoolAdd",
View Full Code Here

Examples of org.apache.camel.Component.createEndpoint()

                    Component component = getComponent(scheme);

                    // Ask the component to resolve the endpoint.
                    if (component != null) {
                        // Have the component create the endpoint if it can.
                        answer = component.createEndpoint(uri);

                        if (answer != null && log.isDebugEnabled()) {
                            log.debug("{} converted to endpoint: {} by component: {}", new Object[]{URISupport.sanitizeUri(uri), answer, component});
                        }
                    }
View Full Code Here

Examples of org.apache.camel.Component.createEndpoint()

                    Component component = getComponent(scheme);

                    // Ask the component to resolve the endpoint.
                    if (component != null) {
                        // Have the component create the endpoint if it can.
                        answer = component.createEndpoint(uri);

                        if (answer != null && log.isDebugEnabled()) {
                            log.debug("{} converted to endpoint: {} by component: {}", new Object[]{uri, answer, component});
                        }
                    }
View Full Code Here

Examples of org.apache.camel.Component.createEndpoint()

                    // Ask the component to resolve the endpoint.
                    if (component != null) {
                        log.trace("Creating endpoint from uri: {} using component: {}", uri, component);

                        // Have the component create the endpoint if it can.
                        answer = component.createEndpoint(uri);

                        if (answer != null && log.isDebugEnabled()) {
                            log.debug("{} converted to endpoint: {} by component: {}", new Object[]{URISupport.sanitizeUri(uri), answer, component});
                        }
                    }
View Full Code Here

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

        configuration.setParameter("updateTopic", false);

        // operation name is base uri
        configuration.setBaseUri("getSObject");

        SalesforceEndpoint endpoint = assertIsInstanceOf(SalesforceEndpoint.class, configuration.createEndpoint());
        final SalesforceEndpointConfig endpointConfig = endpoint.getConfiguration();
        assertEquals("endpoint.format", PayloadFormat.XML, endpointConfig.getFormat());
        assertEquals("endpoint.sObjectName", "Merchandise__c", endpointConfig.getSObjectName());
        assertEquals("endpoint.sObjectFields", "Description__c,Total_Inventory__c", endpointConfig.getSObjectFields());
        assertEquals("endpoint.updateTopic", false, endpointConfig.isUpdateTopic());
View Full Code Here

Examples of org.apache.camel.component.bean.BeanComponent.createEndpoint()

                }
            }

            // lets add a control bus endpoint to ensure we have at least one endpoint to deploy
            BeanComponent beanComponent = camelContext.getComponent("bean", BeanComponent.class);
            Endpoint endpoint = beanComponent.createEndpoint(new CamelControlBus(camelContext), "camel:controlBus");
            services.add(component.createJbiEndpointFromCamel(endpoint));
           
            return services;
        } catch (Exception e) {
            throw new RuntimeException(e);
View Full Code Here

Examples of org.apache.camel.component.direct.DirectComponent.createEndpoint()

    private void bindToRegistry(JndiRegistry jndi) throws Exception {
        Component comp = new DirectComponent();
        comp.setCamelContext(context);

        Endpoint slow = comp.createEndpoint("direct:somename");
        Consumer consumer = slow.createConsumer(new Processor() {
            public void process(Exchange exchange) throws Exception {
                template.send("mock:result", exchange);
            }
        });
View Full Code Here

Examples of org.apache.camel.component.http4.HttpComponent.createEndpoint()

        if (LOGGER.isDebugEnabled()) {
          LOGGER.debug("Init the HttPEndPoint for API {} is initialized with [{}]", apiId, endpointParameters);
        }
       
        // create endpoint
        httpEndpoint = (HttpEndpoint) httpComponent.createEndpoint(endpointParameters);
       
        // This is a WorkArround to removed the parameters from the target URI (a better solution have to be found)
        httpEndpoint.setHttpUri(new URI("http4://host"));
       
      } else {
View Full Code Here

Examples of org.apache.camel.component.log.LogComponent.createEndpoint()

        CamelContext context = createCamelContext();
        context.start();

        Component log = new LogComponent();
        context.addComponent("log", log);
        context.addEndpoint("log:/foo", log.createEndpoint("log://foo"));
        context.removeComponent("log");
        context.stop();

        List<String> expectedEvents = Arrays.asList("onContextStart", "onServiceAdd", "onServiceAdd", "onServiceAdd", "onServiceAdd", "onServiceAdd", "onServiceAdd",
                                                    "onServiceAdd", "onComponentAdd", "onEndpointAdd", "onComponentRemove", "onContextStop");
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.