use of org.apache.camel.component.dropbox.dto.DropboxMoveResult in project camel by apache.
the class DropboxMoveProducer method process.
@Override
public void process(Exchange exchange) throws Exception {
DropboxMoveResult result = new DropboxAPIFacade(configuration.getClient(), exchange).move(configuration.getRemotePath(), configuration.getNewRemotePath());
exchange.getIn().setHeader(DropboxResultHeader.MOVED_PATH.name(), result.getOldPath());
exchange.getIn().setBody(result.getNewPath());
log.debug("Moved from {} to {}", configuration.getRemotePath(), configuration.getNewRemotePath());
}
Aggregations