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 2014/01/20 03:19:49 UTC

svn commit: r894803 - in /websites/production/camel/content: cache/main.pageCache xmpp.html

Author: buildbot
Date: Mon Jan 20 02:19:49 2014
New Revision: 894803

Log:
Production update by buildbot for camel

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

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

Modified: websites/production/camel/content/xmpp.html
==============================================================================
--- websites/production/camel/content/xmpp.html (original)
+++ websites/production/camel/content/xmpp.html Mon Jan 20 02:19:49 2014
@@ -86,103 +86,47 @@
 	<tbody>
         <tr>
         <td valign="top" width="100%">
-<div class="wiki-content maincontent"><h2 id="XMPP-XMPPComponent">XMPP Component</h2>
-
-<p>The <strong>xmpp:</strong> component implements an XMPP (Jabber) transport.</p>
-
-<p>Maven users will need to add the following dependency to their <code>pom.xml</code> for this component:</p>
-<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;dependency&gt;
+<div class="wiki-content maincontent"><h2 id="XMPP-XMPPComponent">XMPP Component</h2><p>The <strong>xmpp:</strong> component implements an XMPP (Jabber) transport.</p><p>Maven users will need to add the following dependency to their <code>pom.xml</code> for this component:</p><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;dependency&gt;
     &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
     &lt;artifactId&gt;camel-xmpp&lt;/artifactId&gt;
     &lt;version&gt;x.x.x&lt;/version&gt;
     &lt;!-- use the same version as your Camel core version --&gt;
 &lt;/dependency&gt;
 ]]></script>
-</div></div>
-
-<h3 id="XMPP-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[
-xmpp://[login@]hostname[:port][/participant][?Options]
+</div></div><h3 id="XMPP-URIformat">URI format</h3><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: text; gutter: false" type="syntaxhighlighter"><![CDATA[xmpp://[login@]hostname[:port][/participant][?Options]
 ]]></script>
-</div></div>
-<p>The component supports both room based and private person-person conversations.<br clear="none">
-The component supports both producer and consumer (you can get messages from XMPP or send messages to XMPP). Consumer mode supports rooms starting.</p>
-
-<p>You can append query options to the URI in the following format, <code>?option=value&amp;option=value&amp;...</code></p>
-
-<h3 id="XMPP-Options">Options</h3>
-<div class="confluenceTableSmall">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p> Name </p></th><th colspan="1" rowspan="1" class="confluenceTh"><p> Description </p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>room</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> If this option is specified, the component will connect to MUC (Multi User Chat). Usually, the domain name for MUC is different from the login domain. For example, if you are <code>superman@jabber.org</code> and want to join the <code>krypton</code> room, then the room URL is <code>krypton@conference.jabber.org</code>. Note the <code>conference</code> part.<br clear="none">
+</div></div><p>The component supports both room based and private person-person conversations.<br clear="none"> The component supports both producer and consumer (you can get messages from XMPP or send messages to XMPP). Consumer mode supports rooms starting.</p><p>You can append query options to the URI in the following format, <code>?option=value&amp;option=value&amp;...</code></p><h3 id="XMPP-Options">Options</h3><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p> Name </p></th><th colspan="1" rowspan="1" class="confluenceTh"><p> Description </p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>room</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> If this option is specified, the component will connect to MUC (Multi User Chat). Usually, the domain name for MUC is different from the login domain. For example, if you are <code>superman@jabber.org</code> and want to join the <code>krypton</code> ro
 om, then the room URL is <code>krypton@conference.jabber.org</code>. Note the <code>conference</code> part.<br clear="none">
 It is not a requirement to provide the full room JID. If the <code>room</code> parameter does not contain the <code>@</code> symbol, the domain part will be discovered and added by Camel</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>user</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> User name (without server name). If not specified, anonymous login will be attempted. </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>password</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Password. </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>resource</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> XMPP resource. The default is <code>Camel</code>. </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>createAccount</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> If <code>true</code>, an attempt to create a
 n account will be made. Default is <code>false</code>. </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>participant</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> JID (Jabber ID) of person to receive messages. <code>room</code> parameter has precedence over <code>participant</code>. </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>nickname</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Use nickname when joining room. If room is specified and nickname is not, <code>user</code> will be used for the nickname. </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>serviceName</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> The name of the service you are connecting to. For Google Talk, this would be <code>gmail.com</code>. </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>testConnectionOnStartup</code> </p></td><td cols
 pan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel 2.11</strong> Specifies whether to test the connection on startup. This is used to ensure that the XMPP client has a valid connection to the XMPP server when the route starts. Camel throws an exception on startup if a connection cannot be established. When this option is set to false, Camel will attempt to establish a "lazy" connection when needed by a producer, and will poll for a consumer connection until the connection is established.   Default is <code>true</code>. </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>connectionPollDelay</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel 2.11</strong> The amount of time in seconds between polls to verify the health of the XMPP connection, or between attempts to establish an initial consumer connection. Camel will try to re-establish a connection if it has become inactive. Default is <code>10 seconds</code>.</p></td><
 /tr></tbody></table>
-</div>
-
-<h3 id="XMPP-HeadersandsettingSubjectorLanguage">Headers and setting Subject or Language</h3>
-<p>Camel sets the message IN headers as properties on the XMPP message. You can configure a <code>HeaderFilterStategy</code> if you need custom filtering of headers.<br clear="none">
-The <strong>Subject</strong> and <strong>Language</strong> of the XMPP message are also set if they are provided as IN headers.</p>
-
-<h3 id="XMPP-Examples">Examples</h3>
-
-<p>User <code>superman</code> to join room <code>krypton</code> at <code>jabber</code> server with password, <code>secret</code>:</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[
-xmpp://superman@jabber.org/?room=krypton@conference.jabber.org&amp;password=secret
-]]></script>
-</div></div>
-
-<p>User <code>superman</code> to send messages to <code>joker</code>:</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[
-xmpp://superman@jabber.org/joker@jabber.org?password=secret
-]]></script>
-</div></div>
-
-<p>Routing example in Java:</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;timer://kickoff?period=10000&quot;).
+<h3 id="XMPP-HeadersandsettingSubjectorLanguage">Headers and setting Subject or Language</h3><p>Camel sets the message IN headers as properties on the XMPP message. You can configure a <code>HeaderFilterStategy</code> if you need custom filtering of headers.<br clear="none"> The <strong>Subject</strong> and <strong>Language</strong> of the XMPP message are also set if they are provided as IN headers.</p><h3 id="XMPP-Examples">Examples</h3><p>User <code>superman</code> to join room <code>krypton</code> at <code>jabber</code> server with password, <code>secret</code>:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: text; gutter: false" type="syntaxhighlighter"><![CDATA[xmpp://superman@jabber.org/?room=krypton@conference.jabber.org&amp;password=secret
+]]></script>
+</div></div><p>User <code>superman</code> to send messages to <code>joker</code>:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: text; gutter: false" type="syntaxhighlighter"><![CDATA[xmpp://superman@jabber.org/joker@jabber.org?password=secret
+]]></script>
+</div></div><p>Routing example in Java:</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;timer://kickoff?period=10000&quot;).
 setBody(constant(&quot;I will win!\n Your Superman.&quot;)).
 to(&quot;xmpp://superman@jabber.org/joker@jabber.org?password=secret&quot;);
 ]]></script>
-</div></div>
-
-<p>Consumer configuration, which writes all messages from <code>joker</code> into the queue, <code>evil.talk</code>.</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;xmpp://superman@jabber.org/joker@jabber.org?password=secret&quot;).
+</div></div><p>Consumer configuration, which writes all messages from <code>joker</code> into the queue, <code>evil.talk</code>.</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;xmpp://superman@jabber.org/joker@jabber.org?password=secret&quot;).
 to(&quot;activemq:evil.talk&quot;);
 ]]></script>
-</div></div>
-
-<p>Consumer configuration, which listens to room messages:</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;xmpp://superman@jabber.org/?password=secret&amp;room=krypton@conference.jabber.org&quot;).
+</div></div><p>Consumer configuration, which listens to room messages:</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;xmpp://superman@jabber.org/?password=secret&amp;room=krypton@conference.jabber.org&quot;).
 to(&quot;activemq:krypton.talk&quot;);
 ]]></script>
-</div></div>
-
-<p>Room in short notation (no domain part):</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;xmpp://superman@jabber.org/?password=secret&amp;room=krypton&quot;).
+</div></div><p>Room in short notation (no domain part):</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;xmpp://superman@jabber.org/?password=secret&amp;room=krypton&quot;).
 to(&quot;activemq:krypton.talk&quot;);
 ]]></script>
-</div></div>
-
-<p>When connecting to the Google Chat service, you'll need to specify the <code>serviceName</code> as well as your credentials:</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[
-// send a message from fromuser@gmail.com to touser@gmail.com
-from(&quot;direct:start&quot;).
-        to(&quot;xmpp://talk.google.com:5222/touser@gmail.com?serviceName=gmail.com&amp;user=fromuser&amp;password=secret&quot;).
-        to(&quot;mock:result&quot;);
-]]></script>
-</div></div>
-<h3 id="XMPP-SeeAlso">See Also</h3>
+</div></div><p>When connecting to the Google Chat service, you'll need to specify the <code>serviceName</code> as well as your credentials:</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;direct:start&quot;).
+  to(&quot;xmpp://talk.google.com:5222/touser@gmail.com?serviceName=gmail.com&amp;user=fromuser&amp;password=secret&quot;).
+  to(&quot;mock:result&quot;);]]></script>
+</div></div><p>&#160;</p><p></p><h3 id="XMPP-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></div>
         </td>
         <td valign="top">