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());
}
Aggregations