Skip to content
Snippets Groups Projects
TransferCamelImpl.java 645 B
Newer Older
package fr.cines.pacit.transfer.impl;

import java.io.IOException;

import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.dataformat.zipfile.ZipSplitter;

public class TransferCamelImpl extends RouteBuilder {

	
	
	String url ;
	String localPath ;
	
	public void configure() throws IOException {
		
		.to(url)
		// on dezippe le fichier
		.split(new ZipSplitter()).streaming()
		.process(new UnzipEntryProcessor())
		
	}
	public TransferCamelImpl(String url, String localPath) {
		
		this.url = url ;
		this.localPath = localPath ;
	}
	


	

	
}