Author: buildbot
Date: Tue Apr 10 13:20:42 2012
New Revision: 812164

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/book-component-appendix.html
    websites/production/camel/content/book-in-one-page.html
    websites/production/camel/content/cache/main.pageCache
    websites/production/camel/content/mail.html

Modified: websites/production/camel/content/book-component-appendix.html
==============================================================================
--- websites/production/camel/content/book-component-appendix.html (original)
+++ websites/production/camel/content/book-component-appendix.html Tue Apr 10 
13:20:42 2012
@@ -10351,16 +10351,13 @@ from(...)
 <div class="code panel" style="border-width: 1px;"><div class="codeContent 
panelContent">
 <pre class="code-xml">
 ...
-&amp;nbsp; &lt;camel:sslContextParameters
-&amp;nbsp; &amp;nbsp; &amp;nbsp; id=<span 
class="code-quote">"sslContextParameters"</span>&gt;
-&amp;nbsp; &amp;nbsp; <span class="code-tag">&lt;camel:trustManagers&gt;</span>
-&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;camel:keyStore
-&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; resource=<span 
class="code-quote">"/users/home/server/truststore.jks"</span>
-&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; password=<span 
class="code-quote">"keystorePassword"</span>/&gt;
-&amp;nbsp; &amp;nbsp; <span class="code-tag">&lt;/camel:keyManagers&gt;</span>
-&amp;nbsp; <span class="code-tag">&lt;/camel:sslContextParameters&gt;</span>...
+<span class="code-tag">&lt;camel:sslContextParameters id=<span 
class="code-quote">"sslContextParameters"</span>&gt;</span>
+  <span class="code-tag">&lt;camel:trustManagers&gt;</span>
+    <span class="code-tag">&lt;camel:keyStore resource=<span 
class="code-quote">"/users/home/server/truststore.jks"</span> password=<span 
class="code-quote">"keystorePassword"</span>/&gt;</span>
+  <span class="code-tag">&lt;/camel:trustManagers&gt;</span>
+<span class="code-tag">&lt;/camel:sslContextParameters&gt;</span>...
 ...
-&amp;nbsp; <span class="code-tag">&lt;to uri=<span 
class="code-quote">"smtps://smtp.google.com?username=u...@gmail.com&amp;password=password&amp;sslContextParameters=#sslContextParameters"</span>/&gt;</span>...
+<span class="code-tag">&lt;to uri=<span 
class="code-quote">"smtps://smtp.google.com?username=u...@gmail.com&amp;password=password&amp;sslContextParameters=#sslContextParameters"</span>/&gt;</span>...
 </pre>
 </div></div>
 
@@ -10562,6 +10559,35 @@ from(<span class="code-quote">"imaps:<sp
 </div></div>
 <p>As you can see the API to handle attachments is a bit clunky but it's there 
so you can get the <tt>javax.activation.DataHandler</tt> so you can handle the 
attachments using standard API.</p>
 
+<h3><a shape="rect" 
name="BookComponentAppendix-Howtosplitamailmessagewithattachments"></a>How to 
split a mail message with attachments</h3>
+
+<p>In this example we consume mail messages which may have a number of 
attachments. What we want to do is to use the <a shape="rect" 
href="splitter.html" title="Splitter">Splitter</a> EIP per individual 
attachment, to process the attachments separately. For example if the mail 
message has 5 attachments, we want the <a shape="rect" href="splitter.html" 
title="Splitter">Splitter</a> to process five messages, each having a single 
attachment. To do this we need to provide a custom <a shape="rect" 
href="expression.html" title="Expression">Expression</a> to the <a shape="rect" 
href="splitter.html" title="Splitter">Splitter</a> where we provide a 
List&lt;Message&gt; that contains the five messages with the single 
attachment.</p>
+
+<p>The code is provided out of the box in Camel 2.10 onwards in the 
<tt>camel-mail</tt> component. The code is in the class: 
<tt>org.apache.camel.component.mail.SplitAttachmentsExpression</tt>, which you 
can find the source code <a shape="rect" class="external-link" 
href="https://svn.apache.org/repos/asf/camel/trunk/components/camel-mail/src/main/java/org/apache/camel/component/mail/SplitAttachmentsExpression.java";>here</a></p>
+
+<p>In the Camel route you then need to use this <a shape="rect" 
href="expression.html" title="Expression">Expression</a> in the route as shown 
below:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent 
panelContent">
+<pre class="code-java">from(<span class="code-quote">"pop3:<span 
class="code-comment">//ja...@mymailserver.com?password=secret&amp;consumer.delay=1000"</span>)
+</span>    .to(<span class="code-quote">"log:email"</span>)
+    <span class="code-comment">// use the SplitAttachmentsExpression which 
will split the message per attachment
+</span>    .split(<span class="code-keyword">new</span> 
SplitAttachmentsExpression())
+        <span class="code-comment">// each message going to <span 
class="code-keyword">this</span> mock has a single attachment
+</span>        .to(<span class="code-quote">"mock:split"</span>)
+    .end();
+</pre>
+</div></div>
+
+<p>If you use XML DSL then you need to declare a method call expression in the 
<a shape="rect" href="splitter.html" title="Splitter">Splitter</a> as shown 
below</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent 
panelContent">
+<pre class="code-xml">
+<span class="code-tag">&lt;split&gt;</span>
+  <span class="code-tag">&lt;method beanType=<span 
class="code-quote">"org.apache.camel.component.mail.SplitAttachmentsExpression"</span>/&gt;</span>
+  <span class="code-tag">&lt;to uri=<span 
class="code-quote">"mock:split"</span>/&gt;</span>
+<span class="code-tag">&lt;/split&gt;</span>
+</pre>
+</div></div>
+
+
 <h3><a shape="rect" name="BookComponentAppendix-SeeAlso"></a>See Also</h3>
 <ul><li><a shape="rect" href="configuring-camel.html" title="Configuring 
Camel">Configuring Camel</a></li><li><a shape="rect" href="component.html" 
title="Component">Component</a></li><li><a shape="rect" href="endpoint.html" 
title="Endpoint">Endpoint</a></li><li><a shape="rect" 
href="getting-started.html" title="Getting Started">Getting 
Started</a></li></ul>
 

Modified: websites/production/camel/content/book-in-one-page.html
==============================================================================
--- websites/production/camel/content/book-in-one-page.html (original)
+++ websites/production/camel/content/book-in-one-page.html Tue Apr 10 13:20:42 
2012
@@ -30517,16 +30517,13 @@ from(...)
 <div class="code panel" style="border-width: 1px;"><div class="codeContent 
panelContent">
 <pre class="code-xml">
 ...
-&amp;nbsp; &lt;camel:sslContextParameters
-&amp;nbsp; &amp;nbsp; &amp;nbsp; id=<span 
class="code-quote">"sslContextParameters"</span>&gt;
-&amp;nbsp; &amp;nbsp; <span class="code-tag">&lt;camel:trustManagers&gt;</span>
-&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;camel:keyStore
-&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; resource=<span 
class="code-quote">"/users/home/server/truststore.jks"</span>
-&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; password=<span 
class="code-quote">"keystorePassword"</span>/&gt;
-&amp;nbsp; &amp;nbsp; <span class="code-tag">&lt;/camel:keyManagers&gt;</span>
-&amp;nbsp; <span class="code-tag">&lt;/camel:sslContextParameters&gt;</span>...
+<span class="code-tag">&lt;camel:sslContextParameters id=<span 
class="code-quote">"sslContextParameters"</span>&gt;</span>
+  <span class="code-tag">&lt;camel:trustManagers&gt;</span>
+    <span class="code-tag">&lt;camel:keyStore resource=<span 
class="code-quote">"/users/home/server/truststore.jks"</span> password=<span 
class="code-quote">"keystorePassword"</span>/&gt;</span>
+  <span class="code-tag">&lt;/camel:trustManagers&gt;</span>
+<span class="code-tag">&lt;/camel:sslContextParameters&gt;</span>...
 ...
-&amp;nbsp; <span class="code-tag">&lt;to uri=<span 
class="code-quote">"smtps://smtp.google.com?username=u...@gmail.com&amp;password=password&amp;sslContextParameters=#sslContextParameters"</span>/&gt;</span>...
+<span class="code-tag">&lt;to uri=<span 
class="code-quote">"smtps://smtp.google.com?username=u...@gmail.com&amp;password=password&amp;sslContextParameters=#sslContextParameters"</span>/&gt;</span>...
 </pre>
 </div></div>
 
@@ -30728,6 +30725,35 @@ from(<span class="code-quote">"imaps:<sp
 </div></div>
 <p>As you can see the API to handle attachments is a bit clunky but it's there 
so you can get the <tt>javax.activation.DataHandler</tt> so you can handle the 
attachments using standard API.</p>
 
+<h3><a shape="rect" 
name="BookInOnePage-Howtosplitamailmessagewithattachments"></a>How to split a 
mail message with attachments</h3>
+
+<p>In this example we consume mail messages which may have a number of 
attachments. What we want to do is to use the <a shape="rect" 
href="splitter.html" title="Splitter">Splitter</a> EIP per individual 
attachment, to process the attachments separately. For example if the mail 
message has 5 attachments, we want the <a shape="rect" href="splitter.html" 
title="Splitter">Splitter</a> to process five messages, each having a single 
attachment. To do this we need to provide a custom <a shape="rect" 
href="expression.html" title="Expression">Expression</a> to the <a shape="rect" 
href="splitter.html" title="Splitter">Splitter</a> where we provide a 
List&lt;Message&gt; that contains the five messages with the single 
attachment.</p>
+
+<p>The code is provided out of the box in Camel 2.10 onwards in the 
<tt>camel-mail</tt> component. The code is in the class: 
<tt>org.apache.camel.component.mail.SplitAttachmentsExpression</tt>, which you 
can find the source code <a shape="rect" class="external-link" 
href="https://svn.apache.org/repos/asf/camel/trunk/components/camel-mail/src/main/java/org/apache/camel/component/mail/SplitAttachmentsExpression.java";>here</a></p>
+
+<p>In the Camel route you then need to use this <a shape="rect" 
href="expression.html" title="Expression">Expression</a> in the route as shown 
below:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent 
panelContent">
+<pre class="code-java">from(<span class="code-quote">"pop3:<span 
class="code-comment">//ja...@mymailserver.com?password=secret&amp;consumer.delay=1000"</span>)
+</span>    .to(<span class="code-quote">"log:email"</span>)
+    <span class="code-comment">// use the SplitAttachmentsExpression which 
will split the message per attachment
+</span>    .split(<span class="code-keyword">new</span> 
SplitAttachmentsExpression())
+        <span class="code-comment">// each message going to <span 
class="code-keyword">this</span> mock has a single attachment
+</span>        .to(<span class="code-quote">"mock:split"</span>)
+    .end();
+</pre>
+</div></div>
+
+<p>If you use XML DSL then you need to declare a method call expression in the 
<a shape="rect" href="splitter.html" title="Splitter">Splitter</a> as shown 
below</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent 
panelContent">
+<pre class="code-xml">
+<span class="code-tag">&lt;split&gt;</span>
+  <span class="code-tag">&lt;method beanType=<span 
class="code-quote">"org.apache.camel.component.mail.SplitAttachmentsExpression"</span>/&gt;</span>
+  <span class="code-tag">&lt;to uri=<span 
class="code-quote">"mock:split"</span>/&gt;</span>
+<span class="code-tag">&lt;/split&gt;</span>
+</pre>
+</div></div>
+
+
 <h3><a shape="rect" name="BookInOnePage-SeeAlso"></a>See Also</h3>
 <ul><li><a shape="rect" href="configuring-camel.html" title="Configuring 
Camel">Configuring Camel</a></li><li><a shape="rect" href="component.html" 
title="Component">Component</a></li><li><a shape="rect" href="endpoint.html" 
title="Endpoint">Endpoint</a></li><li><a shape="rect" 
href="getting-started.html" title="Getting Started">Getting 
Started</a></li></ul>
 

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

Modified: websites/production/camel/content/mail.html
==============================================================================
--- websites/production/camel/content/mail.html (original)
+++ websites/production/camel/content/mail.html Tue Apr 10 13:20:42 2012
@@ -192,16 +192,13 @@ from(...)
 <div class="code panel" style="border-width: 1px;"><div class="codeContent 
panelContent">
 <pre class="code-xml">
 ...
-&amp;nbsp; &lt;camel:sslContextParameters
-&amp;nbsp; &amp;nbsp; &amp;nbsp; id=<span 
class="code-quote">"sslContextParameters"</span>&gt;
-&amp;nbsp; &amp;nbsp; <span class="code-tag">&lt;camel:trustManagers&gt;</span>
-&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;camel:keyStore
-&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; resource=<span 
class="code-quote">"/users/home/server/truststore.jks"</span>
-&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; password=<span 
class="code-quote">"keystorePassword"</span>/&gt;
-&amp;nbsp; &amp;nbsp; <span class="code-tag">&lt;/camel:keyManagers&gt;</span>
-&amp;nbsp; <span class="code-tag">&lt;/camel:sslContextParameters&gt;</span>...
+<span class="code-tag">&lt;camel:sslContextParameters id=<span 
class="code-quote">"sslContextParameters"</span>&gt;</span>
+  <span class="code-tag">&lt;camel:trustManagers&gt;</span>
+    <span class="code-tag">&lt;camel:keyStore resource=<span 
class="code-quote">"/users/home/server/truststore.jks"</span> password=<span 
class="code-quote">"keystorePassword"</span>/&gt;</span>
+  <span class="code-tag">&lt;/camel:trustManagers&gt;</span>
+<span class="code-tag">&lt;/camel:sslContextParameters&gt;</span>...
 ...
-&amp;nbsp; <span class="code-tag">&lt;to uri=<span 
class="code-quote">"smtps://smtp.google.com?username=u...@gmail.com&amp;password=password&amp;sslContextParameters=#sslContextParameters"</span>/&gt;</span>...
+<span class="code-tag">&lt;to uri=<span 
class="code-quote">"smtps://smtp.google.com?username=u...@gmail.com&amp;password=password&amp;sslContextParameters=#sslContextParameters"</span>/&gt;</span>...
 </pre>
 </div></div>
 
@@ -403,6 +400,35 @@ from(<span class="code-quote">"imaps:<sp
 </div></div>
 <p>As you can see the API to handle attachments is a bit clunky but it's there 
so you can get the <tt>javax.activation.DataHandler</tt> so you can handle the 
attachments using standard API.</p>
 
+<h3><a shape="rect" name="Mail-Howtosplitamailmessagewithattachments"></a>How 
to split a mail message with attachments</h3>
+
+<p>In this example we consume mail messages which may have a number of 
attachments. What we want to do is to use the <a shape="rect" 
href="splitter.html" title="Splitter">Splitter</a> EIP per individual 
attachment, to process the attachments separately. For example if the mail 
message has 5 attachments, we want the <a shape="rect" href="splitter.html" 
title="Splitter">Splitter</a> to process five messages, each having a single 
attachment. To do this we need to provide a custom <a shape="rect" 
href="expression.html" title="Expression">Expression</a> to the <a shape="rect" 
href="splitter.html" title="Splitter">Splitter</a> where we provide a 
List&lt;Message&gt; that contains the five messages with the single 
attachment.</p>
+
+<p>The code is provided out of the box in Camel 2.10 onwards in the 
<tt>camel-mail</tt> component. The code is in the class: 
<tt>org.apache.camel.component.mail.SplitAttachmentsExpression</tt>, which you 
can find the source code <a shape="rect" class="external-link" 
href="https://svn.apache.org/repos/asf/camel/trunk/components/camel-mail/src/main/java/org/apache/camel/component/mail/SplitAttachmentsExpression.java";>here</a></p>
+
+<p>In the Camel route you then need to use this <a shape="rect" 
href="expression.html" title="Expression">Expression</a> in the route as shown 
below:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent 
panelContent">
+<pre class="code-java">from(<span class="code-quote">"pop3:<span 
class="code-comment">//ja...@mymailserver.com?password=secret&amp;consumer.delay=1000"</span>)
+</span>    .to(<span class="code-quote">"log:email"</span>)
+    <span class="code-comment">// use the SplitAttachmentsExpression which 
will split the message per attachment
+</span>    .split(<span class="code-keyword">new</span> 
SplitAttachmentsExpression())
+        <span class="code-comment">// each message going to <span 
class="code-keyword">this</span> mock has a single attachment
+</span>        .to(<span class="code-quote">"mock:split"</span>)
+    .end();
+</pre>
+</div></div>
+
+<p>If you use XML DSL then you need to declare a method call expression in the 
<a shape="rect" href="splitter.html" title="Splitter">Splitter</a> as shown 
below</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent 
panelContent">
+<pre class="code-xml">
+<span class="code-tag">&lt;split&gt;</span>
+  <span class="code-tag">&lt;method beanType=<span 
class="code-quote">"org.apache.camel.component.mail.SplitAttachmentsExpression"</span>/&gt;</span>
+  <span class="code-tag">&lt;to uri=<span 
class="code-quote">"mock:split"</span>/&gt;</span>
+<span class="code-tag">&lt;/split&gt;</span>
+</pre>
+</div></div>
+
+
 <h3><a shape="rect" name="Mail-SeeAlso"></a>See Also</h3>
 <ul><li><a shape="rect" href="configuring-camel.html" title="Configuring 
Camel">Configuring Camel</a></li><li><a shape="rect" href="component.html" 
title="Component">Component</a></li><li><a shape="rect" href="endpoint.html" 
title="Endpoint">Endpoint</a></li><li><a shape="rect" 
href="getting-started.html" title="Getting Started">Getting 
Started</a></li></ul>
 </div>


Reply via email to