You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bu...@apache.org on 2016/05/06 12:19:42 UTC

svn commit: r987587 - in /websites/production/camel/content: cache/main.pageCache websocket.html

Author: buildbot
Date: Fri May  6 12:19:42 2016
New Revision: 987587

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/cache/main.pageCache
    websites/production/camel/content/websocket.html

Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/camel/content/websocket.html
==============================================================================
--- websites/production/camel/content/websocket.html (original)
+++ websites/production/camel/content/websocket.html Fri May  6 12:19:42 2016
@@ -89,11 +89,7 @@
 <div class="wiki-content maincontent"><h2 id="Websocket-WebsocketComponent">Websocket Component</h2><p><strong>Available as of Camel 2.10</strong></p><p>The <strong>websocket</strong> component provides websocket <a shape="rect" href="endpoint.html">endpoints</a> for communicating with clients using websocket. The component uses Eclipse Jetty Server which implements the <a shape="rect" class="external-link" href="http://tools.ietf.org/html/rfc6455" rel="nofollow">IETF</a> specification (drafts and RFC 6455). It supports the protocols ws:// and wss://. To use wss:// protocol, the SSLContextParameters must be defined.</p><div class="confluence-information-macro confluence-information-macro-information"><p class="title">Version currently supported</p><span class="aui-icon aui-icon-small aui-iconfont-info confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p>As Camel 2.10 uses Jetty 7.5.4.v20111024, only the D00 to <a shape="rect" class="external-li
 nk" href="http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-13" rel="nofollow">D13</a> IETF implementations are available.<br clear="none"> Camel 2.11 uses Jetty 7.6.7.</p></div></div><h3 id="Websocket-URIformat">URI format</h3><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[websocket://hostname[:port][/resourceUri][?options]
 ]]></script>
-</div></div><p>You can append query options to the URI in the following format, <code>?option=value&amp;option=value&amp;...</code></p><h3 id="Websocket-ComponentOptions">Component Options</h3><p>The <code>WebsocketComponent</code> can be configured prior to use, to setup host, to act as a websocket server.</p><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p> Option </p></th><th colspan="1" rowspan="1" class="confluenceTh"><p> Default </p></th><th colspan="1" rowspan="1" class="confluenceTh"><p> Description </p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> host </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> 0.0.0.0 </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> The hostname. </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> port </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> 9292 </p></td><td colspan="1" rowspan="1" class="conflu
 enceTd"><p> The port number. </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> staticResources </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>null</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Path for static resources such as index.html files etc. If this option has been configured, then a server is started on the given hostname and port, to service the static resources, eg such as an index.html file. If this option has not been configured, then no server is started. </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> sslContextParameters </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>&#160;</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Reference to a <code>org.apache.camel.util.jsse.SSLContextParameters</code> in the <a shape="rect" class="external-link" href="http://camel.apache.org/registry.html">Registry</a>. This reference overrides any configured SSLContextParamete
 rs at the component level.&#160; See <a shape="rect" href="camel-configuration-utilities.html">Using the JSSE Configuration Utility</a>. </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>enableJmx</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>false</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> If this option is true, Jetty JMX support will be enabled for this endpoint. See <a shape="rect" href="#Websocket-JettyJMXsupport">Jetty JMX support</a> for more details. </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>sslKeyPassword</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>null</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Consumer only</strong>: The password for the keystore when using SSL. </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>sslPassword</code> </p></td><td colspan="1" rowspan="1" 
 class="confluenceTd"><p> <code>null</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Consumer only</strong>: The password when using SSL. </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>sslKeystore</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>null</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Consumer only</strong>: The path to the keystore. </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>minThreads</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>null</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Consumer only</strong>: To set a value for minimum number of threads in server thread pool. </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>maxThreads</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>null</code> </p></td><td colspan="1
 " rowspan="1" class="confluenceTd"><p> <strong>Consumer only</strong>: To set a value for maximum number of threads in server thread pool. </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>threadPool</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>null</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Consumer only</strong>: To use a custom thread pool for the server. </p></td></tr></tbody></table></div>
-<h3 id="Websocket-EndpointOptions">Endpoint Options</h3><p>The <code>WebsocketEndpoint</code> can be configured prior to use</p><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p> Option </p></th><th colspan="1" rowspan="1" class="confluenceTh"><p> Default </p></th><th colspan="1" rowspan="1" class="confluenceTh"><p> Description </p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> sslContextParametersRef </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>&#160;</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Deprecated and will be removed in Camel 3.0:</strong> Reference to a <code>org.apache.camel.util.jsse.SSLContextParameters</code> in the <a shape="rect" class="external-link" href="http://camel.apache.org/registry.html">Registry</a>.&#160; This reference overrides any configured SSLContextParameters at the component level. See <a shape="rect" href="camel-configurat
 ion-utilities.html">Using the JSSE Configuration Utility</a>. Use the <code>sslContextParameters</code> option instead </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> sslContextParameters </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>&#160;</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel 2.11.1:</strong> Reference to a <code>org.apache.camel.util.jsse.SSLContextParameters</code> in the <a shape="rect" class="external-link" href="http://camel.apache.org/registry.html">Registry</a>. This reference overrides any configured SSLContextParameters at the component level.&#160; See <a shape="rect" href="camel-configuration-utilities.html">Using the JSSE Configuration Utility</a>. </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> sendToAll </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>null</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Producer only:</stro
 ng> To send to all websocket subscribers. Can be used to configure on endpoint level, instead of having to use the <code>WebsocketConstants.SEND_TO_ALL</code> header on the message. </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> staticResources </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>null</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> The root directory for the web resources or classpath. Use the protocol file: or classpath: depending if you want that the component loads the resource from file system or classpath. </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>&#160;bufferSize </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>null</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel 2.12.3:</strong> set the buffer size of the websocketServlet, which is also the max frame byte size (default 8192) </p></td></tr><tr><td colspan="1" rowspan="1"
  class="confluenceTd"><p> maxIdleTime </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>null</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel 2.12.3:</strong> set the time in ms that the websocket created by the websocketServlet may be idle before closing. (default is 300000) </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> maxTextMessageSize </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>null</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel 2.12.3:</strong> can be used to set the size in characters that the websocket created by the websocketServlet may be accept before closing. </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> maxBinaryMessageSize </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>null</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel 2.12.3:</strong> can be used to se
 t the size in bytes that the websocket created by the websocketServlet may be accept before closing. (Default is -1 - or unlimited) </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> minVersion </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>null</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel 2.12.3:</strong> can be used to set the minimum protocol version accepted for the websocketServlet. (Default 13 - the RFC6455 version)</p></td></tr></tbody></table></div>
-
-<p>&#160;</p><h3 id="Websocket-MessageHeaders">Message Headers</h3><p>The websocket component uses 2 headers to indicate to either send messages back to a single/current client, or to all clients.</p><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p> Key</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p> Description </p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>WebsocketConstants.SEND_TO_ALL</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Sends the message to all clients which are currently connected. You can use the <code>sendToAll</code> option on the endpoint instead of using this header. </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>WebsocketConstants.CONNECTION_KEY</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Sends the message to the client with the given connection key. </p></td></tr></tbody></t
 able></div>
-<h3 id="Websocket-Usage">Usage</h3><p>In this example we let Camel exposes a websocket server which clients can communicate with. The websocket server uses the default host and port, which would be <code>0.0.0.0:9292</code>.<br clear="none"> The example will send back an echo of the input. To send back a message, we need to send the transformed message to the same endpoint <code>"websocket://echo"</code>. This is needed<br clear="none"> because by default the messaging is InOnly.</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+</div></div><p>You can append query options to the URI in the following format, <code>?option=value&amp;option=value&amp;...</code></p><h3 id="Websocket-ComponentOptions">Component Options</h3><p>The <code>WebsocketComponent</code> can be configured prior to use, to setup host, to act as a websocket server.</p><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Option</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Default</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>host</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>0.0.0.0</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The hostname.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>port</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>9292</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The p
 ort number.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>staticResources</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Path for static resources such as index.html files etc. If this option has been configured, then a server is started on the given hostname and port, to service the static resources, eg such as an index.html file. If this option has not been configured, then no server is started.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>sslContextParameters</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>&#160;</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Reference to a <code>org.apache.camel.util.jsse.SSLContextParameters</code> in the <a shape="rect" class="external-link" href="http://camel.apache.org/registry.html">Registry</a>. This reference overrides any configured SSLContextParameters at the component level.&
 #160; See <a shape="rect" href="camel-configuration-utilities.html">Using the JSSE Configuration Utility</a>.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>enableJmx</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>If this option is true, Jetty JMX support will be enabled for this endpoint. See <a shape="rect" href="#Websocket-JettyJMXsupport">Jetty JMX support</a> for more details.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>sslKeyPassword</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Consumer only</strong>: The password for the keystore when using SSL.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>sslPassword</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code><
 /p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Consumer only</strong>: The password when using SSL.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>sslKeystore</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Consumer only</strong>: The path to the keystore.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>minThreads</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Consumer only</strong>: To set a value for minimum number of threads in server thread pool. <strong>From Camel 2.18</strong>: MinThreads/MaxThreads or threadPool fields are required due to switch to Jetty 9</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>maxThreads</code></p></td><td colspan="1" rowspan="1" class="conf
 luenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Consumer only</strong>: To set a value for maximum number of threads in server thread pool. <strong>From Camel 2.18</strong>: MinThreads/MaxThreads or threadPool fields are required due to switch to Jetty 9</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>threadPool</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Consumer only</strong>: To use a custom thread pool for the server. <strong>From Camel 2.18</strong>: MinThreads/MaxThreads or threadPool fields are required due to switch to Jetty 9</p></td></tr></tbody></table></div><h3 id="Websocket-EndpointOptions">Endpoint Options</h3><p>The <code>WebsocketEndpoint</code> can be configured prior to use</p><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confl
 uenceTh"><p>Option</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Default</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>sslContextParametersRef</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>&#160;</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Deprecated and will be removed in Camel 3.0:</strong> Reference to a <code>org.apache.camel.util.jsse.SSLContextParameters</code> in the <a shape="rect" class="external-link" href="http://camel.apache.org/registry.html">Registry</a>.&#160; This reference overrides any configured SSLContextParameters at the component level. See <a shape="rect" href="camel-configuration-utilities.html">Using the JSSE Configuration Utility</a>. Use the <code>sslContextParameters</code> option instead</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>sslContextParameters</p></td><td colspan="1" rowspan="1
 " class="confluenceTd"><p>&#160;</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.11.1:</strong> Reference to a <code>org.apache.camel.util.jsse.SSLContextParameters</code> in the <a shape="rect" class="external-link" href="http://camel.apache.org/registry.html">Registry</a>. This reference overrides any configured SSLContextParameters at the component level.&#160; See <a shape="rect" href="camel-configuration-utilities.html">Using the JSSE Configuration Utility</a>.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>sendToAll</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Producer only:</strong> To send to all websocket subscribers. Can be used to configure on endpoint level, instead of having to use the <code>WebsocketConstants.SEND_TO_ALL</code> header on the message.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>st
 aticResources</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The root directory for the web resources or classpath. Use the protocol file: or classpath: depending if you want that the component loads the resource from file system or classpath.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>&#160;bufferSize</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.12.3:</strong> set the buffer size of the websocketServlet, which is also the max frame byte size (default 8192)</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>maxIdleTime</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.12.3:</strong> set the time in ms that the websocket created by the websoc
 ketServlet may be idle before closing. (default is 300000)</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>maxTextMessageSize</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.12.3:</strong> can be used to set the size in characters that the websocket created by the websocketServlet may be accept before closing.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>maxBinaryMessageSize</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.12.3:</strong> can be used to set the size in bytes that the websocket created by the websocketServlet may be accept before closing. (Default is -1 - or unlimited)</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>minVersion</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null
 </code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.12.3:</strong> can be used to set the minimum protocol version accepted for the websocketServlet. (Default 13 - the RFC6455 version)</p></td></tr></tbody></table></div><p>&#160;</p><h3 id="Websocket-MessageHeaders">Message Headers</h3><p>The websocket component uses 2 headers to indicate to either send messages back to a single/current client, or to all clients.</p><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Key</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>WebsocketConstants.SEND_TO_ALL</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Sends the message to all clients which are currently connected. You can use the <code>sendToAll</code> option on the endpoint instead of using this header.</p></td></tr><tr><td c
 olspan="1" rowspan="1" class="confluenceTd"><p><code>WebsocketConstants.CONNECTION_KEY</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Sends the message to the client with the given connection key.</p></td></tr></tbody></table></div><h3 id="Websocket-Usage">Usage</h3><p>In this example we let Camel exposes a websocket server which clients can communicate with. The websocket server uses the default host and port, which would be <code>0.0.0.0:9292</code>.<br clear="none"> The example will send back an echo of the input. To send back a message, we need to send the transformed message to the same endpoint <code>"websocket://echo"</code>. This is needed<br clear="none"> because by default the messaging is InOnly.</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 // expose a echo websocket client, that sends back an echo
 from(&quot;websocket://echo&quot;)
@@ -104,7 +100,7 @@ from(&quot;websocket://echo&quot;)
     // and we will by default send back to the current client using the provided connection key
     .to(&quot;websocket://echo&quot;);
 ]]></script>
-</div></div><p>This example is part of an unit test, which you can find <a shape="rect" class="external-link" href="https://svn.apache.org/repos/asf/camel/trunk/components/camel-websocket/src/test/java/org/apache/camel/component/websocket/WebsocketRouteExampleTest.java">here</a>. As a client we use the <a shape="rect" href="ahc.html">AHC</a> library which offers support for web socket as well.</p><p>Here is another example where webapp resources location have been defined to allow the Jetty Application Server to not only register the WebSocket servlet but also to expose web resources for the browser. Resources should be defined under the webapp directory.</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+</div></div>This example is part of an unit test, which you can find <a shape="rect" class="external-link" href="https://svn.apache.org/repos/asf/camel/trunk/components/camel-websocket/src/test/java/org/apache/camel/component/websocket/WebsocketRouteExampleTest.java">here</a>. As a client we use the <a shape="rect" href="ahc.html">AHC</a> library which offers support for web socket as well.<p>Here is another example where webapp resources location have been defined to allow the Jetty Application Server to not only register the WebSocket servlet but also to expose web resources for the browser. Resources should be defined under the webapp directory.</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[from(&quot;activemq:topic:newsTopic&quot;)
    .routeId(&quot;fromJMStoWebSocket&quot;)
    .to(&quot;websocket://localhost:8443/newsTopic?sendToAll=true&amp;staticResources=classpath:webapp&quot;);