camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ernest Lu <syf...@sina.com>
Subject I found a bug
Date Fri, 30 May 2014 02:44:29 GMT
Hi,

I have three RouteDefinitions,as follows.

from("direct:start")
.routeId("route1")
.to("mock:end")

from("direct:start2")
.to("mock:end")

from("jetty:http://0.0.0.0:15124/download")
.removeHeader(Exchange.HTTP_URI)
.routeId("filedownload")
.to("http://127.0.0.1:8090/camel.doc")

The first RouteDefinition specify  route ID("route1") and the second not,
so the second RouteDefinition  will AUTO generate route id which same as the
first RouteDefinition id.

In third RouteDefinition,I want to download a file by http proxy,but the
http response will lose file name.

我英语水平有点渣...

上面3个路由 第一个路由如果指定ID为"route1",第二个不指定ID,第二个就会生成名为'route1'的ID,和第一个重复了。

第三个路由 我想通过代理下载一个文件,但是下载的文件的名字和后缀名都丢失了,在message中的header里面也找不到文件名了,要怎么做.


Thanks!














--
View this message in context: http://camel.465427.n5.nabble.com/I-found-a-bug-tp5751728.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message