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 2013/06/11 18:42:26 UTC

svn commit: r865306 - in /websites/production/camel/content: cache/main.pageCache how-to-avoid-sending-some-or-all-message-headers.html

Author: buildbot
Date: Tue Jun 11 16:42:26 2013
New Revision: 865306

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/cache/main.pageCache
    websites/production/camel/content/how-to-avoid-sending-some-or-all-message-headers.html

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

Modified: websites/production/camel/content/how-to-avoid-sending-some-or-all-message-headers.html
==============================================================================
--- websites/production/camel/content/how-to-avoid-sending-some-or-all-message-headers.html (original)
+++ websites/production/camel/content/how-to-avoid-sending-some-or-all-message-headers.html Tue Jun 11 16:42:26 2013
@@ -92,21 +92,22 @@ from(...).removeHeaders(<span class="cod
 <p>Similarly to remove all headers except some of your own (myheader1 and myheader2) use a wildcard with a vararg:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
 <pre class="code-java">
-from(...).removeHeaders(<span class="code-quote">"*"</span>, <span class="code-quote">"myheader1"</span>, <span class="code-quote">"myheader).to("</span>smtp:<span class="code-comment">//....")</span>
+from(...).removeHeaders(<span class="code-quote">"*"</span>, <span class="code-quote">"myheader1"</span>, <span class="code-quote">"myheader2"</span>).to(<span class="code-quote">"smtp:<span class="code-comment">//...."</span>)</span>
 </pre>
 </div></div>
 
-<p>To do this in XML DSL you simply do:</p>
+<p>To do (a similar thing) in XML DSL you simply do:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
 <pre class="code-xml">
 <span class="code-tag">&lt;route&gt;</span>
   <span class="code-tag">&lt;from uri=<span class="code-quote">"..."</span>/&gt;</span>
-  <span class="code-tag">&lt;removeHeaders pattern=<span class="code-quote">"*"</span> excludePattern=<span class="code-quote">"myHeader1,myHeader2"</span>/&gt;</span>
+  <span class="code-tag">&lt;removeHeaders pattern=<span class="code-quote">"*"</span> excludePattern=<span class="code-quote">"header1|header2"</span>/&gt;</span>
   <span class="code-tag">&lt;to uri=<span class="code-quote">"smtp://..."</span>/&gt;</span>
 <span class="code-tag">&lt;/route&gt;</span>
 </pre>
 </div></div>
 
+<div class="panelMacro"><table class="tipMacro"><colgroup span="1"><col span="1" width="24"><col span="1"></colgroup><tr><td colspan="1" rowspan="1" valign="top"><img align="middle" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" width="16" height="16" alt="" border="0"></td><td colspan="1" rowspan="1">At present, the <tt>excludePattern</tt> only supports one header name (which can be include wild cards or regular expressions). We tackle this limitation with <a shape="rect" class="external-link" href="https://issues.apache.org/jira/browse/CAMEL-6445">CAMEL-6445</a>.</td></tr></table></div>
 
 <p>Again to remove only Camel headers but no other transport headers:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">