Author: buildbot
Date: Mon Mar 19 15:20:18 2012
New Revision: 809178
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/rss.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 Mon Mar 19
15:20:18 2012
@@ -3072,6 +3072,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>);
@@ -3085,6 +3087,8 @@ 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>
<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>
@@ -3103,6 +3107,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>);
}
@@ -3115,6 +3121,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">
@@ -13656,8 +13663,7 @@ from(endpoint).to(<span class="code-quot
<p><b>Note:</b> The component currently only supports polling (consuming)
feeds.</p>
-<div class="panelMacro"><table class="noteMacro"><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/warning.gif"
width="16" height="16" alt="" border="0"></td><td colspan="1"
rowspan="1"><b>Using camel-rss in OSGi environment</b><br
clear="none">Camel-rss uses <a shape="rect" class="external-link"
href="http://rometools.org/" rel="nofollow">ROME</a> 1.0 and below. This
library has class loading issues in OSGi environment. We submitted issue <a
shape="rect" class="external-link"
href="https://rometools.jira.com/browse/ROME-142" rel="nofollow">142</a> to
ROME.<br clear="none">
-You can find a patched version in <a shape="rect" class="external-link"
href="http://repository.code-house.org/content/repositories/code-house.public.release/rome/rome/1.0-osgi/"
rel="nofollow">this repository</a>. Its version will need to be changed - the
patched version is marked as 1.0-osgi.</td></tr></table></div>
+<div class="panelMacro"><table class="noteMacro"><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/warning.gif"
width="16" height="16" alt="" border="0"></td><td colspan="1"
rowspan="1">Camel-rss internally uses a <a shape="rect" class="external-link"
href="http://svn.apache.org/repos/asf/servicemix/smx4/bundles/trunk/rome-1.0/">patched
version</a> of <a shape="rect" class="external-link"
href="http://rometools.org/" rel="nofollow">ROME</a> hosted on ServiceMix to
solve some OSGi <a shape="rect" class="external-link"
href="https://issues.apache.org/jira/browse/SMX4-510">class loading
issues</a>.</td></tr></table></div>
<h3><a shape="rect" name="BookComponentAppendix-URIformat"></a>URI format</h3>
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 Mon Mar 19 15:20:18
2012
@@ -23141,6 +23141,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>);
@@ -23154,6 +23156,8 @@ 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>
<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>
@@ -23172,6 +23176,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>);
}
@@ -23184,6 +23190,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">
@@ -33725,8 +33732,7 @@ from(endpoint).to(<span class="code-quot
<p><b>Note:</b> The component currently only supports polling (consuming)
feeds.</p>
-<div class="panelMacro"><table class="noteMacro"><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/warning.gif"
width="16" height="16" alt="" border="0"></td><td colspan="1"
rowspan="1"><b>Using camel-rss in OSGi environment</b><br
clear="none">Camel-rss uses <a shape="rect" class="external-link"
href="http://rometools.org/" rel="nofollow">ROME</a> 1.0 and below. This
library has class loading issues in OSGi environment. We submitted issue <a
shape="rect" class="external-link"
href="https://rometools.jira.com/browse/ROME-142" rel="nofollow">142</a> to
ROME.<br clear="none">
-You can find a patched version in <a shape="rect" class="external-link"
href="http://repository.code-house.org/content/repositories/code-house.public.release/rome/rome/1.0-osgi/"
rel="nofollow">this repository</a>. Its version will need to be changed - the
patched version is marked as 1.0-osgi.</td></tr></table></div>
+<div class="panelMacro"><table class="noteMacro"><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/warning.gif"
width="16" height="16" alt="" border="0"></td><td colspan="1"
rowspan="1">Camel-rss internally uses a <a shape="rect" class="external-link"
href="http://svn.apache.org/repos/asf/servicemix/smx4/bundles/trunk/rome-1.0/">patched
version</a> of <a shape="rect" class="external-link"
href="http://rometools.org/" rel="nofollow">ROME</a> hosted on ServiceMix to
solve some OSGi <a shape="rect" class="external-link"
href="https://issues.apache.org/jira/browse/SMX4-510">class loading
issues</a>.</td></tr></table></div>
<h3><a shape="rect" name="BookInOnePage-URIformat"></a>URI format</h3>
Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.
Modified: websites/production/camel/content/rss.html
==============================================================================
--- websites/production/camel/content/rss.html (original)
+++ websites/production/camel/content/rss.html Mon Mar 19 15:20:18 2012
@@ -93,8 +93,7 @@
<p><b>Note:</b> The component currently only supports polling (consuming)
feeds.</p>
-<div class="panelMacro"><table class="noteMacro"><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/warning.gif"
width="16" height="16" alt="" border="0"></td><td colspan="1"
rowspan="1"><b>Using camel-rss in OSGi environment</b><br
clear="none">Camel-rss uses <a shape="rect" class="external-link"
href="http://rometools.org/" rel="nofollow">ROME</a> 1.0 and below. This
library has class loading issues in OSGi environment. We submitted issue <a
shape="rect" class="external-link"
href="https://rometools.jira.com/browse/ROME-142" rel="nofollow">142</a> to
ROME.<br clear="none">
-You can find a patched version in <a shape="rect" class="external-link"
href="http://repository.code-house.org/content/repositories/code-house.public.release/rome/rome/1.0-osgi/"
rel="nofollow">this repository</a>. Its version will need to be changed - the
patched version is marked as 1.0-osgi.</td></tr></table></div>
+<div class="panelMacro"><table class="noteMacro"><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/warning.gif"
width="16" height="16" alt="" border="0"></td><td colspan="1"
rowspan="1">Camel-rss internally uses a <a shape="rect" class="external-link"
href="http://svn.apache.org/repos/asf/servicemix/smx4/bundles/trunk/rome-1.0/">patched
version</a> of <a shape="rect" class="external-link"
href="http://rometools.org/" rel="nofollow">ROME</a> hosted on ServiceMix to
solve some OSGi <a shape="rect" class="external-link"
href="https://issues.apache.org/jira/browse/SMX4-510">class loading
issues</a>.</td></tr></table></div>
<h3><a shape="rect" name="RSS-URIformat"></a>URI format</h3>