Author: buildbot
Date: Mon Aug 10 18:19:06 2015
New Revision: 961400
Log:
Production update by buildbot for camel
Modified:
websites/production/camel/content/cache/main.pageCache
websites/production/camel/content/using-camelproxy.html
Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.
Modified: websites/production/camel/content/using-camelproxy.html
==============================================================================
--- websites/production/camel/content/using-camelproxy.html (original)
+++ websites/production/camel/content/using-camelproxy.html Mon Aug 10 18:19:06
2015
@@ -133,7 +133,7 @@ public void testProxyBuilderProxyCallAno
<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[@Produce(uri="direct:start")
MyProxySender sender;
]]></script>
-</div></div><p>This basically does the same as ProxyHelper.createProxy.</p><h3
id="UsingCamelProxy-WhatissendontheMessage">What is send on the
Message</h3><p>When using a proxy Camel will send the message payload as a
<code>org.apache.camel.component.bean.BeanInvocation</code> object (*Camel 2.15
or older) which holds the details of which method was invoked and what the
argument was. From <strong style="line-height: 1.4285715;">Camel
2.16</strong> onwards Camel parameter binding is enabled by default, which will
use binding information from the method signature parameters to bind to the
Exchange/Message with the following annotations</p><div
class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1"
rowspan="1" class="confluenceTh">Annotation</th><th colspan="1" rowspan="1"
class="confluenceTh">Binds to</th></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd">@Body</td><td colspan="1" rowspan="1"
class="confluenceTd">Binds the parameter to the messag
e body</td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd">@Header(name)</td><td colspan="1" rowspan="1"
class="confluenceTd">Binds the parameter to the message header with the given
name</td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd">@ExchangeProperty(name)</td><td colspan="1" rowspan="1"
class="confluenceTd">Binds the parameter to the exchange property with the
given name</td></tr></tbody></table></div><p>If a parameter does not have any
annotation then the parameter is bound to the message body.</p><p>For example
given the following interface</p><div class="code panel pdl"
style="border-width: 1px;"><div class="codeContent panelContent pdl">
+</div></div><p>This basically does the same as ProxyHelper.createProxy.</p><h3
id="UsingCamelProxy-WhatissendontheMessage">What is send on the
Message</h3><p>When using a proxy Camel will send the message payload as a
<code>org.apache.camel.component.bean.BeanInvocation</code> object (*Camel 2.15
or older) which holds the details of which method was invoked and what the
argument was. From <strong style="line-height: 1.4285715;">Camel
2.16</strong> onwards Camel parameter binding is enabled by default, which will
use binding information from the method signature parameters to bind to the
Exchange/Message with the following annotations</p><div
class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1"
rowspan="1" class="confluenceTh">Annotation</th><th colspan="1" rowspan="1"
class="confluenceTh">Parameter Type</th><th colspan="1" rowspan="1"
class="confluenceTh">Parameter binds to</th></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd">@Body</td><td
colspan="1" rowspan="1" class="confluenceTd">Object</td><td colspan="1"
rowspan="1" class="confluenceTd">Binds the parameter to the message
body</td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd">@Header(name)</td><td colspan="1" rowspan="1"
class="confluenceTd">Object</td><td colspan="1" rowspan="1"
class="confluenceTd">Binds the parameter to the message header with the given
name</td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd">@Headers</td><td colspan="1" rowspan="1"
class="confluenceTd">Map</td><td colspan="1" rowspan="1"
class="confluenceTd">Binds the parameter to the message headers. The parameter
is expected to be of <code>java.util.Map</code> type.</td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd">@ExchangeProperty(name)</td><td
colspan="1" rowspan="1" class="confluenceTd">Object</td><td colspan="1"
rowspan="1" class="confluenceTd">Binds the parameter to the exchange property
with the given name</td></tr></tbody></table></div><p>If a param
eter does not have any annotation then the parameter is bound to the message
body.</p><p>For example given the following interface</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[public interface MyAuditService {
void auditMessage(@Header("uuid") String uuid, @Body String
body);
}]]></script>