Author: buildbot
Date: Sat Feb  8 07:19:53 2014
New Revision: 896851

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 Sat Feb  8 07:19:53 2014
@@ -86,63 +86,21 @@
        <tbody>
         <tr>
         <td valign="top" width="100%">
-<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="aui-message hint shadowed information-macro">
+<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="aui-message hint shadowed information-macro">
                     <p class="title">Version currently supported</p>
                             <span class="aui-icon icon-hint">Icon</span>
                 <div class="message-content">
-                            
-<p>As Camel 2.10 uses Jetty 7.5.4.v20111024, only the D00 to <a shape="rect" 
class="external-link" 
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>
+                            <p>As Camel 2.10 uses Jetty 7.5.4.v20111024, only 
the D00 to <a shape="rect" class="external-link" 
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="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[
-websocket://hostname[:port][/resourceUri][?options]
+<h3 id="Websocket-URIformat">URI format</h3><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" 
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="confluenceTableSmall">
-<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 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 bee
 n 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" title="Camel 
Configuration Utilities">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> <c
 ode>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="confluenceTableSmall">
-<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-configuration-utilities.html" title="Camel 
Configuration Utilities">Using the JSSE Configuration Utility</a>. Use the 
<code>sslContextParameters</code> option ins
 tead </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" title="Camel 
Configuration Utilities">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 endpoi
 nt 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></tbody></table>
-</div>
-
-<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="confluenceTableSmall">
-<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></table>
-</div>
-
-<h3 id="Websocket-Usage">Usage</h3>
+</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><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 port num
 ber. </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 leve
 l.&#160; See <a shape="rect" href="camel-configuration-utilities.html" 
title="Camel Configuration Utilities">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>
+<h3 id="Websocket-EndpointOptions">Endpoint Options</h3><p>The 
<code>WebsocketEndpoint</code> can be configured prior to use</p><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-configuration-utilities.html" titl
 e="Camel Configuration Utilities">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" title="Camel 
Configuration Utilities">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" c
 lass="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> 
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 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>
 
-<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">
+<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><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></table>
+<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="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[
 // expose a echo websocket client, that sends back an echo
 from(&quot;websocket://echo&quot;)
@@ -153,31 +111,13 @@ 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">
-<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[
-from(&quot;activemq:topic:newsTopic&quot;)
+</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">
+<script class="theme: Default; brush: java; gutter: false" 
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;);
 ]]></script>
-</div></div>
-
-<h3 id="Websocket-SettingupSSLforWebSocketComponent">Setting up SSL for 
WebSocket Component</h3>
-
-<h4 id="Websocket-UsingtheJSSEConfigurationUtility">Using the JSSE 
Configuration Utility</h4>
-
-<p>As of Camel 2.10, the WebSocket component supports SSL/TLS configuration 
through the <a shape="rect" href="camel-configuration-utilities.html">Camel 
JSSE Configuration Utility</a>.&#160; This utility greatly decreases the amount 
of component specific code you need to write and is configurable at the 
endpoint and component levels.&#160; The following examples demonstrate how to 
use the utility with the Cometd component.</p>
-
-<h5 id="Websocket-Programmaticconfigurationofthecomponent">Programmatic 
configuration of the component</h5>
-
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[
-KeyStoreParameters ksp = new KeyStoreParameters();
+</div></div><h3 id="Websocket-SettingupSSLforWebSocketComponent">Setting up 
SSL for WebSocket Component</h3><h4 
id="Websocket-UsingtheJSSEConfigurationUtility">Using the JSSE Configuration 
Utility</h4><p>As of Camel 2.10, the WebSocket component supports SSL/TLS 
configuration through the <a shape="rect" 
href="camel-configuration-utilities.html">Camel JSSE Configuration 
Utility</a>.&#160; This utility greatly decreases the amount of component 
specific code you need to write and is configurable at the endpoint and 
component levels.&#160; The following examples demonstrate how to use the 
utility with the Cometd component.</p><h5 
id="Websocket-Programmaticconfigurationofthecomponent">Programmatic 
configuration of the component</h5><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[KeyStoreParameters ksp = new 
KeyStoreParameters();
 ksp.setResource(&quot;/users/home/server/keystore.jks&quot;);
 ksp.setPassword(&quot;keystorePassword&quot;);
 
@@ -195,13 +135,8 @@ scp.setTrustManagers(tmp);
 CometdComponent commetdComponent = 
getContext().getComponent(&quot;cometds&quot;, CometdComponent.class);
 commetdComponent.setSslContextParameters(scp);
 ]]></script>
-</div></div>
-
-<h5 id="Websocket-SpringDSLbasedconfigurationofendpoint">Spring DSL based 
configuration of endpoint</h5>
-
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<script class="theme: Default; brush: xml; gutter: false" 
type="syntaxhighlighter"><![CDATA[
-...
+</div></div><h5 id="Websocket-SpringDSLbasedconfigurationofendpoint">Spring 
DSL based configuration of endpoint</h5><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: xml; gutter: false" 
type="syntaxhighlighter"><![CDATA[...
   &lt;camel:sslContextParameters
       id=&quot;sslContextParameters&quot;&gt;
     &lt;camel:keyManagers
@@ -219,13 +154,8 @@ commetdComponent.setSslContextParameters
 ...
   &lt;to 
uri=&quot;websocket://127.0.0.1:8443/test?sslContextParameters=#sslContextParameters&quot;/&gt;...
 ]]></script>
-</div></div>
-
-<h5 id="Websocket-JavaDSLbasedconfigurationofendpoint">Java DSL based 
configuration of endpoint</h5>
-
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[
-...
+</div></div><h5 id="Websocket-JavaDSLbasedconfigurationofendpoint">Java DSL 
based configuration of endpoint</h5><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[...
     protected RouteBuilder createRouteBuilder() throws Exception {
         return new RouteBuilder() {
             public void configure() {
@@ -240,11 +170,8 @@ commetdComponent.setSslContextParameters
                          .to(uri);
 ...
 ]]></script>
-</div></div>
-
-<h3 id="Websocket-SeeAlso">See Also</h3>
-<ul><li><a shape="rect" href="configuring-camel.html">Configuring 
Camel</a></li><li><a shape="rect" 
href="component.html">Component</a></li><li><a shape="rect" 
href="endpoint.html">Endpoint</a></li><li><a shape="rect" 
href="getting-started.html">Getting Started</a></li></ul>
-<ul class="alternate"><li><a shape="rect" href="ahc.html">AHC</a></li><li><a 
shape="rect" href="jetty.html">Jetty</a></li><li><a shape="rect" 
href="twitter-websocket-example.html">Twitter Websocket Example</a> 
demonstrates how to poll a constant feed of twitter searches and publish 
results in real time using web socket to a web page.</li></ul></div>
+</div></div><p></p><h3 id="Websocket-SeeAlso">See Also</h3>
+<ul><li><a shape="rect" href="configuring-camel.html">Configuring 
Camel</a></li><li><a shape="rect" 
href="component.html">Component</a></li><li><a shape="rect" 
href="endpoint.html">Endpoint</a></li><li><a shape="rect" 
href="getting-started.html">Getting Started</a></li></ul><ul 
class="alternate"><li><a shape="rect" href="ahc.html">AHC</a></li><li><a 
shape="rect" href="jetty.html">Jetty</a></li><li><a shape="rect" 
href="twitter-websocket-example.html">Twitter Websocket Example</a> 
demonstrates how to poll a constant feed of twitter searches and publish 
results in real time using web socket to a web page.</li></ul></div>
         </td>
         <td valign="top">
           <div class="navigation">


Reply via email to