On Mon, Oct 1, 2012 at 3:14 PM, kalyanskanda <[email protected]> wrote: > Usecase in a webapp: > User will explore the ftp server, identify the folder where data export > should be copied end of day. > > Idea: > Using camel to browse ftp server: > > from("jetty:http://0.0.0.0/configure/ftp") > .process(new Processor(){ > @Override > public void process(Exchange exchng) throws Exception { > exchng.setHeader("ftpUrl", buildFromHttpParams(exchng.getIn() > as HttpServletRequest); > exchng.setOut().setBody(res); > } > }) > .recipientList(header("ftpUrl")) > .marshal.json() > .process(new Processor(){ > @Override > public void process(Exchange exchng) throws Exception { > String res = exchng.getIn().getBody(String.class); > exchng.getOut().setBody(res); > } > }); > > Issue: > No commands to browse the server and not copy files: > looking for something like: > "ftp://0.0.0.0//home/<users>?command=list" > > Note: I did not compile the route. > Important thing is how to send list/cwd commands. >
This is not the purpose of the camel-ftp component. If you want to browse a ftp server, you would need to use the ftp client library yourself. > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Using-Camel-FTP-to-create-a-ftp-client-tp5720305.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: [email protected] Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen
