camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nirosha27 <nirosha.makk...@wipro.com>
Subject SetHeader with same header name having multiple values
Date Wed, 15 Jan 2014 12:32:52 GMT
Hi,

I am reading a file line by line...this program will check for filenames
which have .lis extension....I am retrieving the filenames...after getting
the filenames I have to setHeader with comma separeted values of all the
filenames.... How to do it?

while((strLine=br.readLine())!=null)
{
	 if(strLine.contains(".lis"))
	 {
					 
		 fileName[i]=strLine.substring(strLine.lastIndexOf('/')+1);
					
		 exchange.getIn().setHeader("FileNamesWithoutExtension",fileName[i]);

		i++;
	 }
				 
 }

Thanks



--
View this message in context: http://camel.465427.n5.nabble.com/SetHeader-with-same-header-name-having-multiple-values-tp5745993.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message