Search in sources :

Example 1 with DropboxDelResult

use of org.apache.camel.component.dropbox.dto.DropboxDelResult in project camel by apache.

the class DropboxDelProducer method process.

@Override
public void process(Exchange exchange) throws Exception {
    DropboxDelResult result = new DropboxAPIFacade(configuration.getClient(), exchange).del(configuration.getRemotePath());
    exchange.getIn().setHeader(DropboxResultHeader.DELETED_PATH.name(), result.getEntry());
    exchange.getIn().setBody(result.getEntry());
    log.debug("Deleted: {}", configuration.getRemotePath());
}
Also used : DropboxDelResult(org.apache.camel.component.dropbox.dto.DropboxDelResult) DropboxAPIFacade(org.apache.camel.component.dropbox.core.DropboxAPIFacade)

Aggregations

DropboxAPIFacade (org.apache.camel.component.dropbox.core.DropboxAPIFacade)1 DropboxDelResult (org.apache.camel.component.dropbox.dto.DropboxDelResult)1