This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push: new e2ac5e0 CAMEL-12312: camel-undertow - Add a little WS example to docs e2ac5e0 is described below commit e2ac5e0d504db613d837656f272bcd70097da225 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Mon Mar 5 09:55:09 2018 +0100 CAMEL-12312: camel-undertow - Add a little WS example to docs --- .../src/main/docs/undertow-component.adoc | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/components/camel-undertow/src/main/docs/undertow-component.adoc b/components/camel-undertow/src/main/docs/undertow-component.adoc index e586551..66e4978 100644 --- a/components/camel-undertow/src/main/docs/undertow-component.adoc +++ b/components/camel-undertow/src/main/docs/undertow-component.adoc @@ -123,7 +123,7 @@ example, given a client request with the URL, `http://myserver/myserver?orderid=123`, the exchange will contain a header named `orderid` with the value 123. -=== Producer Example +=== HTTP Producer Example The following is a basic example of how to send an HTTP request to an existing HTTP endpoint. @@ -146,7 +146,7 @@ or in XML <route> ---- -=== Consumer Example +=== HTTP Consumer Example In this sample we define a route that exposes a HTTP service at `http://localhost:8080/myapp/myservice`: @@ -159,6 +159,20 @@ In this sample we define a route that exposes a HTTP service at </route> ---- +=== WebSocket Example + +In this sample we define a route that exposes a WebSocket service at +`http://localhost:8080/myapp/mysocket` and returns back a response to the same channel: + +[source,xml] +---- +<route> + <from uri="undertow:ws://localhost:8080/myapp/mysocket"/> + <transform><simple>Echo ${body}</simple></transform> + <to uri="undertow:ws://localhost:8080/myapp/mysocket"/> +</route> +---- + === Using localhost as host When you specify `localhost` in a URL, Camel exposes the endpoint only -- To stop receiving notification emails like this one, please contact davscl...@apache.org.