camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Liliana.Neagul" <liliana.iovanov...@gmail.com>
Subject Re: Posting to Camel Servlet endpoint brings up file download dialog
Date Mon, 20 Apr 2015 13:51:21 GMT
Me and jarod find a solution that works and I will just share an example:

	from("jetty:http://localhost:4566/download")
		.setBody(simple("resource:fileExample.xml"))
		.setHeader("Content-type",constant("text/xml"))
                .setHeader("Pragma",constant( "public"))
                .setHeader("Content-Disposition",constant(
"attachment;filename=test.xml"));




--
View this message in context: http://camel.465427.n5.nabble.com/Posting-to-Camel-Servlet-endpoint-brings-up-file-download-dialog-tp3424535p5766066.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message