【发布时间】:2019-03-19 13:04:46
【问题描述】:
我有很多路线
from("restlet://api1").to("dest1-rest-url");
from("restlet://api2").to("dest2-rest-url");
from("restlet://api3").to("dest3-rest-url");
..
from("restlet://api100").to("dest100-rest-url");
所有路由都分布在不同的文件中。
现在,所有目标 rest url 都需要设置一个 AUTH 标头。在每个地方都设置会很乏味。
有没有办法,我可以设置/配置一个标头,在调用任何其他 API 之前附加。
【问题讨论】:
标签: rest header apache-camel authorization restlet