我正在尝试使用的伙计们
{
from("direct:a").to (someUrl).processor(new Processor(){
@Override
public void process(Exchange arg0) throws Exception
{
// do something
}
});
where someUrl is of the type http://xyz.com/{id}?test=<value1>&test1=<value2>
}
并且此 url 会在每次请求路由时发生变化。
我已经尝试过了。将参数作为标头传递并尝试使用 header("test") 和使用 ${in.header.test} 在路由中访问似乎都不起作用。
任何建议都会非常有帮助。
从camel 2.16开始你可以做这样的事情 -
from("direct:start")
.toD("${header.foo}");
Refer : http://camel.apache.org/message-endpoint.html http://camel.apache.org/message-endpoint.html
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)