次のような Camel ルートがあるとします。
from("direct:myRoute")
.setHeader("someHeader", simple("some header value"))
.beanRef("myBean", "beanMethod");
そして、私は次のようなBeanを持っていますcannot change
:
public class MyBean {
public void beanMethod(String headerExpected) {
// do something with the value here.
}
}
基本的に、 myRoute から myBean 内の beanMethod に someHeader の値を渡したいと思います。
Knowing that beanMethod can accept a String
, how can I pass the value of the header someHeader from the route so that it is accepted as a String within beanMethod?