Hi Available for both, as ftp extends file component.
On Mon, Jul 28, 2014 at 10:49 AM, Chirag Dewan <chirag.dewa...@yahoo.in> wrote: > Thanks Claus. > > The header are also available for FTP Consumer. I am under a impression that > they are applicable only for File Consumer. > > Thanks! > > Chirag > > > > ________________________________ > From: Claus Ibsen <claus.ib...@gmail.com> > To: "users@camel.apache.org" <users@camel.apache.org> > Sent: Monday, 28 July 2014 2:05 PM > Subject: Re: Using Stream Caching with FTP Consumer > > > The file metadata is stored as headers so you find them there. > > > > > On Mon, Jul 28, 2014 at 10:18 AM, Chirag Dewan <chirag.dewa...@yahoo.in> > wrote: >> Hi All, >> >> I have a route which consumes files from FTP server and distributes them to >> HDFS. >> >> >> Now,I have a processor in which I want to rename a file and append >> properties like file size and timestamp in the file name. Earlier,I was >> doing it by getting the GenericFile instance from exchange body. >> >> >> Now I have enabled Stream Caching on this route and the body is a cached >> object rather than a GenericFile. >> >> >> Is there any way I can get the file meta data like file size,timestamp etc >> without referring to the body? >> >> I am using Camel 2.12.1. >> >> Thanks! >> >> Chirag > > > > -- > Claus Ibsen > ----------------- > Red Hat, Inc. > Email: cib...@redhat.com > Twitter: davsclaus > Blog: http://davsclaus.com > Author of Camel in Action: http://www.manning.com/ibsen > hawtio: http://hawt.io/ > fabric8: http://fabric8.io/ -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/