第357章 Undertow コンポーネント
Camel バージョン 2.16 以降で利用可能
undertow コンポーネントは、HTTP/WebSocket リクエストを消費および生成するための HTTP および WebSocket ベースのエンドポイントを提供します。
つまり、Undertow コンポーネントは単純な Web サーバーとして動作します。Undertow は http クライアントとしても使用できます。つまり、Camel をプロデューサーとして使用することもできます。
ヒント
Camel バージョン 2.21 以降、undertow コンポーネントは WebSocket 接続もサポートするため、Camel Websocket コンポーネントまたは Atmium-Websocket コンポーネントのドロップイン置換として機能できます。
Maven ユーザーは、このコンポーネントの pom.xml に以下の依存関係を追加する必要があります。
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-undertow</artifactId>
<version>x.x.x</version>
<!-- use the same version as your Camel core version -->
</dependency>357.1. URI 形式
undertow:http://hostname[:port][/resourceUri][?options] undertow:https://hostname[:port][/resourceUri][?options] undertow:ws://hostname[:port][/resourceUri][?options] undertow:wss://hostname[:port][/resourceUri][?options]
URI には、?option=value&option=value&… の形式でクエリーオプションを追加できます。