Examples of RouteBuilder


Examples of org.apache.camel.builder.RouteBuilder

        template.sendBodyAndHeader("file:target", data, Exchange.FILE_NAME, "savedlogo.jpeg");
    }

    @Override
    protected RouteBuilder createRouteBuilder() throws Exception {
        return new RouteBuilder() {
            @Override
            public void configure() throws Exception {
                from("direct:start")
                    .to("language:constant:resource:classpath:org/apache/camel/logo.jpeg?binary=true");
            }
View Full Code Here

Examples of org.apache.camel.builder.RouteBuilder

    }


    @Override
    protected RouteBuilder createRouteBuilder() throws Exception {
        return new RouteBuilder() {
            @Override
            public void configure() throws Exception {
                from("jira://newComment?serverUrl=" + JIRA_CREDENTIALS
                        + "&jql=RAW(project=CAMELJIRA)" + "&delay=500")
                        .process(new NewCommentProcessor())
View Full Code Here

Examples of org.apache.camel.builder.RouteBuilder

public class TagConsumerTest extends GitHubComponentTestBase {

    @Override
    protected RouteBuilder createRouteBuilder() throws Exception {
        return new RouteBuilder() {

            @Override
            public void configure() throws Exception {
                context.addComponent("github", new GitHubComponent());
                from("github://tag?" + GITHUB_CREDENTIALS_STRING)
View Full Code Here

Examples of org.apache.camel.builder.RouteBuilder

        return camelContext;
    }

    @Override
    protected RouteBuilder createRouteBuilder() throws Exception {
        return new RouteBuilder() {
            @Override
            public void configure() throws Exception {
                context.addRoutes(new RouteBuilder() {
                    @Override
                    public void configure() throws Exception {
                        from(ENDPOINT_URI).routeId(ROUTE_ID).autoStartup(false)
                            .to("log:input")
                            .to("mock:result");
View Full Code Here

Examples of org.apache.camel.builder.RouteBuilder

public class PullRequestConsumerTest extends GitHubComponentTestBase {
    protected static final Logger LOG = LoggerFactory.getLogger(PullRequestConsumerTest.class);

    @Override
    protected RouteBuilder createRouteBuilder() throws Exception {
        return new RouteBuilder() {

            @Override
            public void configure() throws Exception {
                context.addComponent("github", new GitHubComponent());
                from("github://pullRequest?" + GITHUB_CREDENTIALS_STRING)
View Full Code Here

Examples of org.apache.camel.builder.RouteBuilder

        assertEquals("No exception should occur", 0, exceptionCount);
    }

    @Override
    protected RouteBuilder createRouteBuilder() throws Exception {
        return new RouteBuilder() {
            @Override
            public void configure() throws Exception {
                from("direct:in").to("netty4:udp://localhost:8601?sync=false&textline=true&udpConnectionlessSending=true");
            }
        };
View Full Code Here

Examples of org.apache.camel.builder.RouteBuilder

    protected static final Logger LOG = LoggerFactory.getLogger(PullRequestCommentProducerTest.class);
    private long latestPullRequestId;

    @Override
    protected RouteBuilder createRouteBuilder() throws Exception {
        return new RouteBuilder() {

            @Override
            public void configure() throws Exception {
                context.addComponent("github", new GitHubComponent());
                from("direct:validPullRequest")
View Full Code Here

Examples of org.apache.camel.builder.RouteBuilder

    private long latestPullRequestId;
   

    @Override
    protected RouteBuilder createRouteBuilder() throws Exception {
        return new RouteBuilder() {

            @Override
            public void configure() throws Exception {
                context.addComponent("github", new GitHubComponent());
                from(PULL_REQUEST_PRODUCER_ENDPOINT)
View Full Code Here

Examples of org.apache.camel.builder.RouteBuilder

        return registry;
    }

    @Override
    protected RouteBuilder createRouteBuilder() throws Exception {
        return new RouteBuilder() {
            @Override
            public void configure() throws Exception {
                from("netty4:tcp://localhost:{{port}}?serverInitializerFactory=#spf&textline=true")
                        .process(new Processor() {
                            public void process(Exchange exchange) throws Exception {
View Full Code Here

Examples of org.apache.camel.builder.RouteBuilder

import org.junit.Test;

public class CommitConsumerTest extends GitHubComponentTestBase {
    @Override
    protected RouteBuilder createRouteBuilder() throws Exception {
        return new RouteBuilder() {

            @Override
            public void configure() throws Exception {
                context.addComponent("github", new GitHubComponent());
                from("github://commit/master?" + GITHUB_CREDENTIALS_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.