Author: buildbot Date: Fri Sep 12 15:17:51 2014 New Revision: 921963 Log: Production update by buildbot for camel Added: websites/production/camel/content/ahc-ws.html Modified: websites/production/camel/content/cache/main.pageCache Added: websites/production/camel/content/ahc-ws.html ============================================================================== --- websites/production/camel/content/ahc-ws.html (added) +++ websites/production/camel/content/ahc-ws.html Fri Sep 12 15:17:51 2014 @@ -0,0 +1,194 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + Apache Camel: AHC-WS + + + +
+
+
+
+
+
+
+
+
+
+
+ + + + + + + + + + + + +
+

Async Http Client (AHC) Websocket Client Component

Available as of Camel 2.14

The ahc-ws: component provides Websocket based endpoints for consuming external resources accessible over Websocket (as a client to call external servers using Websocket).
The component uses the ahc component that in turn uses the Async Http Client library.

Maven users will need to add the following dependency to their pom.xml for this component:

+ +

URI format

+ +

Will by default use port 80 for ahc-ws and 443 for ahc-wss.

AHC-WS Options

As the AHC-WS component is based on the AHC component, you can use the various configuration options of the AHC component.

Writing and Reading over Websocket

An ahc-ws endpoint can either write data to the socket or read from the socket, depending on whether the endpoint is configured as the producer or the consumer, respectively.

Configuring URI to call

In the route below, Camel will write to the specified websocket connection.

+ +

And the equivalent Spring sample:

+ +

In the route below, Camel will read from the specified websocket connection.

+ +

And the equivalent Spring sample:

+ +

 

See Also

+
+
+ +
+ + +
+
+
+
+
+
+ +
+
+
+© 2004-2014 The Apache Software Foundation. +
+Apache Camel, Camel, Apache, the Apache feather logo, and the Apache Camel project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners. +
+Graphic Design By Hiram +
+ + + + + + + + Modified: websites/production/camel/content/cache/main.pageCache ============================================================================== Binary files - no diff available.