202.7. ユースケース
以下のルートはユーザーのプロファイルを取得します。
from("direct:foo")
.to("linkedin://people/person");
以下のルートは、30 秒ごとにユーザーの接続をポーリングします。
from("linkedin://people/connections?consumer.timeUnit=SECONDS&consumer.delay=30")
.to("bean:foo");
以下のルートは、動的ヘッダーオプションでプロデューサーを使用します。 personId ヘッダーには LinkedIn 人 ID があるため、以下のように CamelLinkedIn.person_id ヘッダーに割り当てられます。
from("direct:foo")
.setHeader("CamelLinkedIn.person_id", header("personId"))
.to("linkedin://people/connectionsById")
.to("bean://bar");