You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by jarod <Fe...@haufe-lexware.com> on 2015/04/17 10:55:48 UTC

Re: Posting to Camel Servlet endpoint brings up file download dialog

Any updates on this topic? Pop up saving dialog as an end point..



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

Re: Posting to Camel Servlet endpoint brings up file download dialog

Posted by "Liliana.Neagul" <li...@gmail.com>.
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.