第362章 Velocity コンポーネント
Camel バージョン 1.2 以降で利用可能
velocity: コンポーネントを使用すると、Apache Velocity テンプレートを使用してメッセージを処理できます。これは、Templating を使用してリクエストに対するレスポンスを生成する場合に理想的です。
Maven ユーザーは、このコンポーネントの pom.xml に以下の依存関係を追加する必要があります。
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-velocity</artifactId>
<version>x.x.x</version>
<!-- use the same version as your Camel core version -->
</dependency>362.1. URI 形式
velocity:templateName[?options]
templateName は、呼び出すテンプレートのクラスパスローカル URI です。またはリモートテンプレートの完全な URL (例: file://folder/myfile.vm) です。
URI には、?option=value&option=value&… の形式でクエリーオプションを追加できます。