Examples of populateExchange()


Examples of org.apache.camel.component.dropbox.dto.DropboxResult.populateExchange()

    @Override
    public void process(Exchange exchange) throws Exception {
        DropboxResult result = DropboxAPIFacade.getInstance(configuration.getClient())
                .del(configuration.getRemotePath());
        result.populateExchange(exchange);
        log.info("Deleted: " + configuration.getRemotePath());

    }

}
View Full Code Here

Examples of org.apache.camel.component.dropbox.dto.DropboxResult.populateExchange()

    @Override
    public void process(Exchange exchange) throws Exception {
        DropboxResult result = DropboxAPIFacade.getInstance(configuration.getClient())
                .move(configuration.getRemotePath(), configuration.getNewRemotePath());
        result.populateExchange(exchange);
        log.info("Moved from " + configuration.getRemotePath() + " to " + configuration.getNewRemotePath());
    }

}
View Full Code Here

Examples of org.apache.camel.component.dropbox.dto.DropboxResult.populateExchange()

    @Override
    public void process(Exchange exchange) throws Exception {
        DropboxResult result = DropboxAPIFacade.getInstance(configuration.getClient())
                .get(configuration.getRemotePath());
        result.populateExchange(exchange);
        LOG.info("producer --> downloaded: " + result.toString());

    }

}
View Full Code Here

Examples of org.apache.camel.component.dropbox.dto.DropboxResult.populateExchange()

    @Override
    public void process(Exchange exchange) throws Exception {
        DropboxResult result = DropboxAPIFacade.getInstance(configuration.getClient())
                .search(configuration.getRemotePath(), configuration.getQuery());
        result.populateExchange(exchange);
    }

}
View Full Code Here

Examples of org.apache.camel.component.dropbox.dto.DropboxResult.populateExchange()

    @Override
    public void process(Exchange exchange) throws Exception {
        DropboxResult result = DropboxAPIFacade.getInstance(configuration.getClient())
                .put(configuration.getLocalPath(), configuration.getRemotePath(), configuration.getUploadMode());
        result.populateExchange(exchange);
        LOG.info("Uploaded: " + result.toString());

    }

}
View Full Code Here

Examples of org.apache.camel.component.dropbox.dto.DropboxResult.populateExchange()

    @Override
    protected int poll() throws Exception {
        Exchange exchange = endpoint.createExchange();
        DropboxResult result = DropboxAPIFacade.getInstance(configuration.getClient())
                .search(configuration.getRemotePath(), configuration.getQuery());
        result.populateExchange(exchange);
        LOG.info("consumer --> downloaded: " + result.toString());

        try {
            // send message to next processor in the route
            getProcessor().process(exchange);
View Full Code Here

Examples of org.apache.camel.component.dropbox.dto.DropboxResult.populateExchange()

    @Override
    protected int poll() throws Exception {
        Exchange exchange = endpoint.createExchange();
        DropboxResult result = DropboxAPIFacade.getInstance(configuration.getClient())
                .get(configuration.getRemotePath());
        result.populateExchange(exchange);
        LOG.info("consumer --> downloaded: " + result.toString());

        try {
            // send message to next processor in the route
            getProcessor().process(exchange);
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.