Author: buildbot
Date: Sun Apr 15 10:21:29 2012
New Revision: 813061

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/camel-2100-release.html
    websites/production/camel/content/cxfrs.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 Sun Apr 15 
10:21:29 2012
@@ -2887,7 +2887,7 @@ cxfrs:bean:cxfEndpoint?resourceClasses=o
 
 <h3><a shape="rect" name="BookComponentAppendix-Options"></a>Options</h3>
 <div class="confluenceTableSmall"><div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" 
class="confluenceTh"> Name </th><th colspan="1" rowspan="1" 
class="confluenceTh"> Description </th><th colspan="1" rowspan="1" 
class="confluenceTh"> Example </th><th colspan="1" rowspan="1" 
class="confluenceTh"> Required? </th><th colspan="1" rowspan="1" 
class="confluenceTh"> default value </th></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"> <tt>resourceClasses</tt> </td><td colspan="1" rowspan="1" 
class="confluenceTd"> The resource classes which you want to export as REST 
service </td><td colspan="1" rowspan="1" class="confluenceTd"> 
<tt>resourceClasses 
=org.apache.camel.rs.Example1,org.apache.camel.rs.Exchange2</tt> </td><td 
colspan="1" rowspan="1" class="confluenceTd"> No </td><td colspan="1" 
rowspan="1" class="confluenceTd"> <em>None</em> </td></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"> <tt>httpClientAPI</tt> </td><td colspan="1" 
rowspan="1" class="confluenceTd"> <b>new to Cam
 el 2.1</b> If it is true, the CxfRsProducer will use the HttpClientAPI to 
invoke the service <br clear="none" class="atl-forced-newline">
+<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" 
class="confluenceTh"> Name </th><th colspan="1" rowspan="1" 
class="confluenceTh"> Description </th><th colspan="1" rowspan="1" 
class="confluenceTh"> Example </th><th colspan="1" rowspan="1" 
class="confluenceTh"> Required? </th><th colspan="1" rowspan="1" 
class="confluenceTh"> default value </th></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"> <tt>resourceClasses</tt> </td><td colspan="1" rowspan="1" 
class="confluenceTd"> The resource classes which you want to export as REST 
service. Multiple classes can be separated by comma. </td><td colspan="1" 
rowspan="1" class="confluenceTd"> <tt>resourceClasses 
=org.apache.camel.rs.Example1,org.apache.camel.rs.Exchange2</tt> </td><td 
colspan="1" rowspan="1" class="confluenceTd"> No </td><td colspan="1" 
rowspan="1" class="confluenceTd"> <em>None</em> </td></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"> <tt>resourceClass</tt> </td><td colspan="1" ro
 wspan="1" class="confluenceTd"> <b>Deprecated</b>: Use 
<tt>resourceClasses</tt> The resource class which you want to export as REST 
service. </td><td colspan="1" rowspan="1" class="confluenceTd"> 
<tt>resourceClass =org.apache.camel.rs.Example1</tt> </td><td colspan="1" 
rowspan="1" class="confluenceTd"> No </td><td colspan="1" rowspan="1" 
class="confluenceTd"> <em>None</em> </td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"> <tt>httpClientAPI</tt> </td><td colspan="1" rowspan="1" 
class="confluenceTd"> <b>new to Camel 2.1</b> If it is true, the CxfRsProducer 
will use the HttpClientAPI to invoke the service <br clear="none" 
class="atl-forced-newline">
 If it is false, the CxfRsProducer will use the ProxyClientAPI to invoke the 
service </td><td colspan="1" rowspan="1" class="confluenceTd"> 
httpClientAPI=true </td><td colspan="1" rowspan="1" class="confluenceTd"> No 
</td><td colspan="1" rowspan="1" class="confluenceTd"> <em>true</em> 
</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> synchronous 
</td><td colspan="1" rowspan="1" class="confluenceTd"> New in 2.5, this option 
will let CxfRsConsumer decide to use sync or async API to do the underlying 
work. The default value is false which means it will try to use async API by 
default. </td><td colspan="1" rowspan="1" class="confluenceTd"> 
synchronous=true </td><td colspan="1" rowspan="1" class="confluenceTd"> No 
</td><td colspan="1" rowspan="1" class="confluenceTd"> false </td></tr><tr><td 
colspan="1" rowspan="1" class="confluenceTd"> throwExceptionOnFailure </td><td 
colspan="1" rowspan="1" class="confluenceTd"> New in 2.6, this option tells the 
CxfRsProducer to in
 spect return codes and will generate an Exception if the return code is larger 
than 207. </td><td colspan="1" rowspan="1" class="confluenceTd"> 
throwExceptionOnFailure=true </td><td colspan="1" rowspan="1" 
class="confluenceTd"> No </td><td colspan="1" rowspan="1" class="confluenceTd"> 
true </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> 
<tt>maxClientCacheSize</tt> </td><td colspan="1" rowspan="1" 
class="confluenceTd"> New in 2.6, you can set a IN message header 
CamelDestinationOverrideUrl to dynamically override the target destination Web 
Service or REST Service defined in your routes.&#160; The implementation caches 
CXF clients or ClientFactoryBean in CxfProvider and CxfRsProvider.&#160; This 
option allows you to configure the maximum size of the cache. <br clear="none" 
class="atl-forced-newline"> </td><td colspan="1" rowspan="1" 
class="confluenceTd"> maxClientCacheSize=5 </td><td colspan="1" rowspan="1" 
class="confluenceTd"> No <br clear="none" class="atl-f
 orced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> 10 
</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> 
<tt>setDefaultBus</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> 
New in 2.9.0. Will set the default bus when CXF endpoint create a bus by itself 
</td><td colspan="1" rowspan="1" class="confluenceTd"> 
<tt>setDefaultBus=true</tt> </td><td colspan="1" rowspan="1" 
class="confluenceTd"> No </td><td colspan="1" rowspan="1" class="confluenceTd"> 
<tt>false</tt> </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> 
<tt>bus</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> New in 
2.9.0. A default bus created by CXF Bus Factory. Use <tt>#</tt> notation to 
reference a bus object from the registry. The referenced object must be an 
instance of <tt>org.apache.cxf.Bus</tt>. </td><td colspan="1" rowspan="1" 
class="confluenceTd"> <tt>bus=#busName</tt> </td><td colspan="1" rowspan="1" 
class="confluenceTd"> No </td><td colspan
 ="1" rowspan="1" class="confluenceTd"> <em>None</em> </td></tr></tbody></table>
 </div>
 </div>
@@ -3088,7 +3088,6 @@ assertNotNull(<span class="code-quote">"
 assertEquals(<span class="code-quote">"Get a wrong customer id "</span>, <span 
class="code-object">String</span>.valueOf(response.getId()), <span 
class="code-quote">"123"</span>);
 assertEquals(<span class="code-quote">"Get a wrong customer name"</span>, 
response.getName(), <span class="code-quote">"John"</span>);
 assertEquals(<span class="code-quote">"Get a wrong response code"</span>, 200, 
exchange.getOut().getHeader(Exchange.HTTP_RESPONSE_CODE));
-<span 
class="code-object">System</span>.out.println(exchange.getOut().getHeaders());
 assertEquals(<span class="code-quote">"Get a wrong header value"</span>, <span 
class="code-quote">"value"</span>, exchange.getOut().getHeader(<span 
class="code-quote">"key"</span>));
 </pre>
 </div></div>

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 Sun Apr 15 10:21:29 
2012
@@ -23058,7 +23058,7 @@ cxfrs:bean:cxfEndpoint?resourceClasses=o
 
 <h3><a shape="rect" name="BookInOnePage-Options"></a>Options</h3>
 <div class="confluenceTableSmall"><div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" 
class="confluenceTh"> Name </th><th colspan="1" rowspan="1" 
class="confluenceTh"> Description </th><th colspan="1" rowspan="1" 
class="confluenceTh"> Example </th><th colspan="1" rowspan="1" 
class="confluenceTh"> Required? </th><th colspan="1" rowspan="1" 
class="confluenceTh"> default value </th></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"> <tt>resourceClasses</tt> </td><td colspan="1" rowspan="1" 
class="confluenceTd"> The resource classes which you want to export as REST 
service </td><td colspan="1" rowspan="1" class="confluenceTd"> 
<tt>resourceClasses 
=org.apache.camel.rs.Example1,org.apache.camel.rs.Exchange2</tt> </td><td 
colspan="1" rowspan="1" class="confluenceTd"> No </td><td colspan="1" 
rowspan="1" class="confluenceTd"> <em>None</em> </td></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"> <tt>httpClientAPI</tt> </td><td colspan="1" 
rowspan="1" class="confluenceTd"> <b>new to Cam
 el 2.1</b> If it is true, the CxfRsProducer will use the HttpClientAPI to 
invoke the service <br clear="none" class="atl-forced-newline">
+<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" 
class="confluenceTh"> Name </th><th colspan="1" rowspan="1" 
class="confluenceTh"> Description </th><th colspan="1" rowspan="1" 
class="confluenceTh"> Example </th><th colspan="1" rowspan="1" 
class="confluenceTh"> Required? </th><th colspan="1" rowspan="1" 
class="confluenceTh"> default value </th></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"> <tt>resourceClasses</tt> </td><td colspan="1" rowspan="1" 
class="confluenceTd"> The resource classes which you want to export as REST 
service. Multiple classes can be separated by comma. </td><td colspan="1" 
rowspan="1" class="confluenceTd"> <tt>resourceClasses 
=org.apache.camel.rs.Example1,org.apache.camel.rs.Exchange2</tt> </td><td 
colspan="1" rowspan="1" class="confluenceTd"> No </td><td colspan="1" 
rowspan="1" class="confluenceTd"> <em>None</em> </td></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"> <tt>resourceClass</tt> </td><td colspan="1" ro
 wspan="1" class="confluenceTd"> <b>Deprecated</b>: Use 
<tt>resourceClasses</tt> The resource class which you want to export as REST 
service. </td><td colspan="1" rowspan="1" class="confluenceTd"> 
<tt>resourceClass =org.apache.camel.rs.Example1</tt> </td><td colspan="1" 
rowspan="1" class="confluenceTd"> No </td><td colspan="1" rowspan="1" 
class="confluenceTd"> <em>None</em> </td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"> <tt>httpClientAPI</tt> </td><td colspan="1" rowspan="1" 
class="confluenceTd"> <b>new to Camel 2.1</b> If it is true, the CxfRsProducer 
will use the HttpClientAPI to invoke the service <br clear="none" 
class="atl-forced-newline">
 If it is false, the CxfRsProducer will use the ProxyClientAPI to invoke the 
service </td><td colspan="1" rowspan="1" class="confluenceTd"> 
httpClientAPI=true </td><td colspan="1" rowspan="1" class="confluenceTd"> No 
</td><td colspan="1" rowspan="1" class="confluenceTd"> <em>true</em> 
</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> synchronous 
</td><td colspan="1" rowspan="1" class="confluenceTd"> New in 2.5, this option 
will let CxfRsConsumer decide to use sync or async API to do the underlying 
work. The default value is false which means it will try to use async API by 
default. </td><td colspan="1" rowspan="1" class="confluenceTd"> 
synchronous=true </td><td colspan="1" rowspan="1" class="confluenceTd"> No 
</td><td colspan="1" rowspan="1" class="confluenceTd"> false </td></tr><tr><td 
colspan="1" rowspan="1" class="confluenceTd"> throwExceptionOnFailure </td><td 
colspan="1" rowspan="1" class="confluenceTd"> New in 2.6, this option tells the 
CxfRsProducer to in
 spect return codes and will generate an Exception if the return code is larger 
than 207. </td><td colspan="1" rowspan="1" class="confluenceTd"> 
throwExceptionOnFailure=true </td><td colspan="1" rowspan="1" 
class="confluenceTd"> No </td><td colspan="1" rowspan="1" class="confluenceTd"> 
true </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> 
<tt>maxClientCacheSize</tt> </td><td colspan="1" rowspan="1" 
class="confluenceTd"> New in 2.6, you can set a IN message header 
CamelDestinationOverrideUrl to dynamically override the target destination Web 
Service or REST Service defined in your routes.&#160; The implementation caches 
CXF clients or ClientFactoryBean in CxfProvider and CxfRsProvider.&#160; This 
option allows you to configure the maximum size of the cache. <br clear="none" 
class="atl-forced-newline"> </td><td colspan="1" rowspan="1" 
class="confluenceTd"> maxClientCacheSize=5 </td><td colspan="1" rowspan="1" 
class="confluenceTd"> No <br clear="none" class="atl-f
 orced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> 10 
</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> 
<tt>setDefaultBus</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> 
New in 2.9.0. Will set the default bus when CXF endpoint create a bus by itself 
</td><td colspan="1" rowspan="1" class="confluenceTd"> 
<tt>setDefaultBus=true</tt> </td><td colspan="1" rowspan="1" 
class="confluenceTd"> No </td><td colspan="1" rowspan="1" class="confluenceTd"> 
<tt>false</tt> </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> 
<tt>bus</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> New in 
2.9.0. A default bus created by CXF Bus Factory. Use <tt>#</tt> notation to 
reference a bus object from the registry. The referenced object must be an 
instance of <tt>org.apache.cxf.Bus</tt>. </td><td colspan="1" rowspan="1" 
class="confluenceTd"> <tt>bus=#busName</tt> </td><td colspan="1" rowspan="1" 
class="confluenceTd"> No </td><td colspan
 ="1" rowspan="1" class="confluenceTd"> <em>None</em> </td></tr></tbody></table>
 </div>
 </div>
@@ -23259,7 +23259,6 @@ assertNotNull(<span class="code-quote">"
 assertEquals(<span class="code-quote">"Get a wrong customer id "</span>, <span 
class="code-object">String</span>.valueOf(response.getId()), <span 
class="code-quote">"123"</span>);
 assertEquals(<span class="code-quote">"Get a wrong customer name"</span>, 
response.getName(), <span class="code-quote">"John"</span>);
 assertEquals(<span class="code-quote">"Get a wrong response code"</span>, 200, 
exchange.getOut().getHeader(Exchange.HTTP_RESPONSE_CODE));
-<span 
class="code-object">System</span>.out.println(exchange.getOut().getHeaders());
 assertEquals(<span class="code-quote">"Get a wrong header value"</span>, <span 
class="code-quote">"value"</span>, exchange.getOut().getHeader(<span 
class="code-quote">"key"</span>));
 </pre>
 </div></div>

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

Modified: websites/production/camel/content/camel-2100-release.html
==============================================================================
--- websites/production/camel/content/camel-2100-release.html (original)
+++ websites/production/camel/content/camel-2100-release.html Sun Apr 15 
10:21:29 2012
@@ -119,7 +119,7 @@
 
 <h2><a shape="rect" name="Camel2.10.0Release-APIchanges%2Fbreaking"></a>API 
changes/breaking</h2>
 
-<ul><li>Added <tt>shutdownForced</tt> and <tt>forceShutdown</tt> methods to 
<tt>org.apache.camel.spi.ShutdownStrategy</tt></li><li>Add boolean parameter to 
<tt>prepareShutdown</tt> on <tt>ShutdownAware</tt></li><li>The 
<tt>errorHandler</tt> method in <tt>RouteBuilder</tt> now returns 
<tt>void</tt>, as it's only used for configuring context-scoped error 
handlers.</li><li>Removed the <tt>SimpleLanguage</tt> constructor that takes 
custom start and end tokens. Instead use the change methods to set custom 
tokens.</li><li>Added <tt>onThreadPoolRemove</tt> and 
<tt>onErrorHandlerRemove</tt> methods to 
<tt>LifecycleStrategy</tt></li><li>Removed <tt>retryWhile(Expression)</tt> on 
<tt>OnExceptionDefinition</tt>; use 
<tt>retryWhile(Predicate)</tt>.</li><li>Removed options <tt>corePoolSize</tt> 
and <tt>maxPoolSize</tt> on <a shape="rect" href="netty.html" 
title="Netty">Netty</a> endpoint, as we rely on Netty default 
implementation.</li></ul>
+<ul><li>Added <tt>shutdownForced</tt> and <tt>forceShutdown</tt> methods to 
<tt>org.apache.camel.spi.ShutdownStrategy</tt></li><li>Add boolean parameter to 
<tt>prepareShutdown</tt> on <tt>ShutdownAware</tt></li><li>The 
<tt>errorHandler</tt> method in <tt>RouteBuilder</tt> now returns 
<tt>void</tt>, as it's only used for configuring context-scoped error 
handlers.</li><li>Removed the <tt>SimpleLanguage</tt> constructor that takes 
custom start and end tokens. Instead use the change methods to set custom 
tokens.</li><li>Added <tt>onThreadPoolRemove</tt> and 
<tt>onErrorHandlerRemove</tt> methods to 
<tt>LifecycleStrategy</tt></li><li>Removed <tt>retryWhile(Expression)</tt> on 
<tt>OnExceptionDefinition</tt>; use 
<tt>retryWhile(Predicate)</tt>.</li><li>Removed options <tt>corePoolSize</tt> 
and <tt>maxPoolSize</tt> on <a shape="rect" href="netty.html" 
title="Netty">Netty</a> endpoint, as we rely on Netty default 
implementation.</li><li>The <tt>resourceClasses</tt> option on <a shape=
 "rect" href="cxfrs.html" title="CXFRS">CXFRS</a> now longer supports semi 
colon as class separators. Now only comma is supported (which is the standard 
in Camel)</li></ul>
 
 
 <h2><a shape="rect" 
name="Camel2.10.0Release-Internal%2FNonAPIrefactoringsthatmayaffectusers"></a>Internal/Non
 API refactorings that may affect users</h2>

Modified: websites/production/camel/content/cxfrs.html
==============================================================================
--- websites/production/camel/content/cxfrs.html (original)
+++ websites/production/camel/content/cxfrs.html Sun Apr 15 10:21:29 2012
@@ -116,7 +116,7 @@ cxfrs:bean:cxfEndpoint?resourceClasses=o
 
 <h3><a shape="rect" name="CXFRS-Options"></a>Options</h3>
 <div class="confluenceTableSmall"><div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" 
class="confluenceTh"> Name </th><th colspan="1" rowspan="1" 
class="confluenceTh"> Description </th><th colspan="1" rowspan="1" 
class="confluenceTh"> Example </th><th colspan="1" rowspan="1" 
class="confluenceTh"> Required? </th><th colspan="1" rowspan="1" 
class="confluenceTh"> default value </th></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"> <tt>resourceClasses</tt> </td><td colspan="1" rowspan="1" 
class="confluenceTd"> The resource classes which you want to export as REST 
service </td><td colspan="1" rowspan="1" class="confluenceTd"> 
<tt>resourceClasses 
=org.apache.camel.rs.Example1,org.apache.camel.rs.Exchange2</tt> </td><td 
colspan="1" rowspan="1" class="confluenceTd"> No </td><td colspan="1" 
rowspan="1" class="confluenceTd"> <em>None</em> </td></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"> <tt>httpClientAPI</tt> </td><td colspan="1" 
rowspan="1" class="confluenceTd"> <b>new to Cam
 el 2.1</b> If it is true, the CxfRsProducer will use the HttpClientAPI to 
invoke the service <br clear="none" class="atl-forced-newline">
+<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" 
class="confluenceTh"> Name </th><th colspan="1" rowspan="1" 
class="confluenceTh"> Description </th><th colspan="1" rowspan="1" 
class="confluenceTh"> Example </th><th colspan="1" rowspan="1" 
class="confluenceTh"> Required? </th><th colspan="1" rowspan="1" 
class="confluenceTh"> default value </th></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"> <tt>resourceClasses</tt> </td><td colspan="1" rowspan="1" 
class="confluenceTd"> The resource classes which you want to export as REST 
service. Multiple classes can be separated by comma. </td><td colspan="1" 
rowspan="1" class="confluenceTd"> <tt>resourceClasses 
=org.apache.camel.rs.Example1,org.apache.camel.rs.Exchange2</tt> </td><td 
colspan="1" rowspan="1" class="confluenceTd"> No </td><td colspan="1" 
rowspan="1" class="confluenceTd"> <em>None</em> </td></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"> <tt>resourceClass</tt> </td><td colspan="1" ro
 wspan="1" class="confluenceTd"> <b>Deprecated</b>: Use 
<tt>resourceClasses</tt> The resource class which you want to export as REST 
service. </td><td colspan="1" rowspan="1" class="confluenceTd"> 
<tt>resourceClass =org.apache.camel.rs.Example1</tt> </td><td colspan="1" 
rowspan="1" class="confluenceTd"> No </td><td colspan="1" rowspan="1" 
class="confluenceTd"> <em>None</em> </td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"> <tt>httpClientAPI</tt> </td><td colspan="1" rowspan="1" 
class="confluenceTd"> <b>new to Camel 2.1</b> If it is true, the CxfRsProducer 
will use the HttpClientAPI to invoke the service <br clear="none" 
class="atl-forced-newline">
 If it is false, the CxfRsProducer will use the ProxyClientAPI to invoke the 
service </td><td colspan="1" rowspan="1" class="confluenceTd"> 
httpClientAPI=true </td><td colspan="1" rowspan="1" class="confluenceTd"> No 
</td><td colspan="1" rowspan="1" class="confluenceTd"> <em>true</em> 
</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> synchronous 
</td><td colspan="1" rowspan="1" class="confluenceTd"> New in 2.5, this option 
will let CxfRsConsumer decide to use sync or async API to do the underlying 
work. The default value is false which means it will try to use async API by 
default. </td><td colspan="1" rowspan="1" class="confluenceTd"> 
synchronous=true </td><td colspan="1" rowspan="1" class="confluenceTd"> No 
</td><td colspan="1" rowspan="1" class="confluenceTd"> false </td></tr><tr><td 
colspan="1" rowspan="1" class="confluenceTd"> throwExceptionOnFailure </td><td 
colspan="1" rowspan="1" class="confluenceTd"> New in 2.6, this option tells the 
CxfRsProducer to in
 spect return codes and will generate an Exception if the return code is larger 
than 207. </td><td colspan="1" rowspan="1" class="confluenceTd"> 
throwExceptionOnFailure=true </td><td colspan="1" rowspan="1" 
class="confluenceTd"> No </td><td colspan="1" rowspan="1" class="confluenceTd"> 
true </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> 
<tt>maxClientCacheSize</tt> </td><td colspan="1" rowspan="1" 
class="confluenceTd"> New in 2.6, you can set a IN message header 
CamelDestinationOverrideUrl to dynamically override the target destination Web 
Service or REST Service defined in your routes.&#160; The implementation caches 
CXF clients or ClientFactoryBean in CxfProvider and CxfRsProvider.&#160; This 
option allows you to configure the maximum size of the cache. <br clear="none" 
class="atl-forced-newline"> </td><td colspan="1" rowspan="1" 
class="confluenceTd"> maxClientCacheSize=5 </td><td colspan="1" rowspan="1" 
class="confluenceTd"> No <br clear="none" class="atl-f
 orced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> 10 
</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> 
<tt>setDefaultBus</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> 
New in 2.9.0. Will set the default bus when CXF endpoint create a bus by itself 
</td><td colspan="1" rowspan="1" class="confluenceTd"> 
<tt>setDefaultBus=true</tt> </td><td colspan="1" rowspan="1" 
class="confluenceTd"> No </td><td colspan="1" rowspan="1" class="confluenceTd"> 
<tt>false</tt> </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> 
<tt>bus</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> New in 
2.9.0. A default bus created by CXF Bus Factory. Use <tt>#</tt> notation to 
reference a bus object from the registry. The referenced object must be an 
instance of <tt>org.apache.cxf.Bus</tt>. </td><td colspan="1" rowspan="1" 
class="confluenceTd"> <tt>bus=#busName</tt> </td><td colspan="1" rowspan="1" 
class="confluenceTd"> No </td><td colspan
 ="1" rowspan="1" class="confluenceTd"> <em>None</em> </td></tr></tbody></table>
 </div>
 </div>
@@ -302,6 +302,8 @@ So, you just need to specify the operati
 </span>        inMessage.setHeader(CxfConstants.OPERATION_NAME, <span 
class="code-quote">"getCustomer"</span>);
         <span class="code-comment">// using the proxy client API
 </span>        inMessage.setHeader(CxfConstants.CAMEL_CXF_RS_USING_HTTP_API, 
<span class="code-object">Boolean</span>.FALSE);
+        <span class="code-comment">// set a customer header
+</span>        inMessage.setHeader(<span class="code-quote">"key"</span>, 
<span class="code-quote">"value"</span>);
         <span class="code-comment">// set the parameters , <span 
class="code-keyword">if</span> you just have one parameter 
 </span>        <span class="code-comment">// camel will put <span 
class="code-keyword">this</span> object into an <span 
class="code-object">Object</span>[] itself
 </span>        inMessage.setBody(<span class="code-quote">"123"</span>);
@@ -315,6 +317,7 @@ assertNotNull(<span class="code-quote">"
 assertEquals(<span class="code-quote">"Get a wrong customer id "</span>, <span 
class="code-object">String</span>.valueOf(response.getId()), <span 
class="code-quote">"123"</span>);
 assertEquals(<span class="code-quote">"Get a wrong customer name"</span>, 
response.getName(), <span class="code-quote">"John"</span>);
 assertEquals(<span class="code-quote">"Get a wrong response code"</span>, 200, 
exchange.getOut().getHeader(Exchange.HTTP_RESPONSE_CODE));
+assertEquals(<span class="code-quote">"Get a wrong header value"</span>, <span 
class="code-quote">"value"</span>, exchange.getOut().getHeader(<span 
class="code-quote">"key"</span>));
 </pre>
 </div></div>
 <p><a shape="rect" class="external-link" 
href="http://cwiki.apache.org/CXF20DOC/jax-rs.html";>CXF JAXRS front end</a> 
also provides <a shape="rect" 
href="http://cxf.apache.org/docs/jax-rs.html#JAX-RS-HTTPcentricclients";>a http 
centric client API</a>, You can also invoke this API from <tt>camel-cxfrs</tt> 
producer. You need to specify the HTTP_PATH and Http method and let the the 
producer know to use the http centric client by using the URI option 
<b>httpClientAPI</b> or set the message header with 
CxfConstants.CAMEL_CXF_RS_USING_HTTP_API. You can turn the response object to 
the type class that you specify with 
CxfConstants.CAMEL_CXF_RS_RESPONSE_CLASS.</p>
@@ -333,6 +336,8 @@ assertEquals(<span class="code-quote">"G
 </span>        inMessage.setHeader(Exchange.HTTP_PATH, <span 
class="code-quote">"/customerservice/customers/123"</span>);                
         <span class="code-comment">// Specify the response class , cxfrs will 
use InputStream as the response object type 
 </span>        inMessage.setHeader(CxfConstants.CAMEL_CXF_RS_RESPONSE_CLASS, 
Customer.class);
+        <span class="code-comment">// set a customer header
+</span>        inMessage.setHeader(<span class="code-quote">"key"</span>, 
<span class="code-quote">"value"</span>);
         <span class="code-comment">// since we use the Get method, so we don't 
need to set the message body
 </span>        inMessage.setBody(<span class="code-keyword">null</span>);      
          
     }
@@ -345,6 +350,7 @@ assertNotNull(<span class="code-quote">"
 assertEquals(<span class="code-quote">"Get a wrong customer id "</span>, <span 
class="code-object">String</span>.valueOf(response.getId()), <span 
class="code-quote">"123"</span>);
 assertEquals(<span class="code-quote">"Get a wrong customer name"</span>, 
response.getName(), <span class="code-quote">"John"</span>);
 assertEquals(<span class="code-quote">"Get a wrong response code"</span>, 200, 
exchange.getOut().getHeader(Exchange.HTTP_RESPONSE_CODE));
+assertEquals(<span class="code-quote">"Get a wrong header value"</span>, <span 
class="code-quote">"value"</span>, exchange.getOut().getHeader(<span 
class="code-quote">"key"</span>));
 </pre>
 </div></div>
 <p>From Camel 2.1, we also support to specify the query parameters from cxfrs 
URI for the CXFRS http centric client.<br clear="none">


Reply via email to