我目前正在使用吉大港山区办法,以援引某些URL,这将产生一个联合执行认证的问题。
现在我想使用帕帕奇·卡迈勒,我如何利用?
我需要通过Camel援引以下联系:
http://localhost:8080/rest/api/2/project/" + key + /components
由于我对Camel说了新话,请提出一些解决办法和实例。
成就
我目前正在使用吉大港山区办法,以援引某些URL,这将产生一个联合执行认证的问题。
现在我想使用帕帕奇·卡迈勒,我如何利用?
我需要通过Camel援引以下联系:
http://localhost:8080/rest/api/2/project/" + key + /components
由于我对Camel说了新话,请提出一些解决办法和实例。
成就
您可以方便地使用CXFRS Part 。
<setHeader headerName="CamelHttpUri">
<simple>http://localhost:8080/rest/api/2/project/${header.myKey}/components</simple>
</setHeader>
<inOut uri="http://doesnt.matter.we/override/it/anyways" />
当然,你需要用<代码>丰富你的信息。 我的Key 驶往路程的这一部分之前的头盔。
See also this FAQ about using dynamic to endpoints in Camel http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html
基本上,这一计划模式是受援国名单。
因此,在您的情形下,也可将其简化为一项EIP。
<recipientList>
<simple>http://localhost:8080/rest/api/2/project/${header.myKey}/components</simple>
</recipientList>
在Camel的“http://www.un.org”。 如果你想请求/重复处理吉大港山区问题,避免在等待答复信息时设置警钟,那么你就可以从Camel使用其他吉大港山区部分,例如:
我正在使用喷 式喷气机。
CamelContext context = new DefaultCamelContext();
public void configure(){
context.addRoutes(new RouteBuilder(){
from("jetty:localhost:9000/offers")
.to("direct:getOffers")
.end();
}
});
http:// localhost:9000/offers'rel=“nofollow”http:// localhost:9000/offers。 之后,终点直接:目标 申请
因此,现在就界定 get点
context.addRoutes(new RouteBuilder(){
public void configure(){
from("direct:getOffers")
.to("jetty:http://localhost:9008/api/v2.0/offers?
bridgeEndpoint=true")
.end();
}
});
Here another service is running at 9008 having a rest resource of http://localhost:9008/api/v2.0/offers and this is the resource that i am trying to consume.
因此,当 came开始登记这两个路线时,就如上所述,进行处理。
说明 重要的是,为这项工作增加选择?bridgeEndpoint=true。
您可使用<条码>CXFRS 部分代码>从 came中消费教育、科学和技术服务。 阿帕奇多尔对此有足够的信息。
Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...
Check this, List<String> list = new ArrayList<String>(); for (int i = 0; i < 10000; i++) { String value = (""+UUID.randomUUID().getLeastSignificantBits()).substring(3, ...
I am in the middle of solving a problem where I think it s best suited for a decorator and a state pattern. The high level setting is something like a sandwich maker and dispenser, where I have a set ...
I have been trying to execute a MS SQL Server stored procedure via JDBC today and have been unsuccessful thus far. The stored procedure has 1 input and 1 output parameter. With every combination I ...
I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...
If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...
I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....
I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...