Author: buildbot
Date: Thu Mar 17 07:19:54 2016
New Revision: 982988
Log:
Production update by buildbot for camel
Modified:
websites/production/camel/content/cache/main.pageCache
websites/production/camel/content/producertemplate.html
Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.
Modified: websites/production/camel/content/producertemplate.html
==============================================================================
--- websites/production/camel/content/producertemplate.html (original)
+++ websites/production/camel/content/producertemplate.html Thu Mar 17 07:19:54
2016
@@ -84,17 +84,8 @@
<tbody>
<tr>
<td valign="top" width="100%">
-<div class="wiki-content maincontent"><h3
id="ProducerTemplate-ProducerTemplate">ProducerTemplate</h3>
-
-<p>The ProducerTemplate interface allows you to send message exchanges to
endpoints in a variety of different ways to make it easy to work with Camel <a
shape="rect" href="endpoint.html">Endpoint</a> instances from Java code.</p>
-
-<p>It can be configured with a default endpoint if you just want to send lots
of messages to the same endpoint; or you can specify an <a shape="rect"
href="endpoint.html">Endpoint</a> or uri as the first parameter.</p>
-
-<p>The <strong>sendBody()</strong> method allows you to send any object to an
endpoint easily.</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[
-ProducerTemplate template;
+<div class="wiki-content maincontent"><h3
id="ProducerTemplate-ProducerTemplate">ProducerTemplate</h3><p>The
ProducerTemplate interface allows you to send message exchanges to endpoints in
a variety of different ways to make it easy to work with Camel <a shape="rect"
href="endpoint.html">Endpoint</a> instances from Java code.</p><p>It can be
configured with a default endpoint if you just want to send lots of messages to
the same endpoint; or you can specify an <a shape="rect"
href="endpoint.html">Endpoint</a> or uri as the first parameter.</p><p>The
<strong>sendBody()</strong> method allows you to send any object to an endpoint
easily.</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[ProducerTemplate template =
exchange.getContext().createProducerTemplate();
// send to default endpoint
template.sendBody("<hello>world!</hello>");
@@ -107,19 +98,8 @@ template.sendBodyAndHeader("activem
"<hello>world!</hello>",
"CustomerRating", "Gold");
]]></script>
-</div></div>
-
-<p>You can also supply an Exchange or a Processor to customize the exchange</p>
-
-<h3 id="ProducerTemplate-request*()methods">request*() methods</h3>
-
-<p>The send*() methods use the default Message Exchange Pattern (InOnly, InOut
etc) as the endpoint. If you want to explicitly perform a request/response
(InOut) you can use the request*() methods instead of the send*() methods.</p>
-
-<p>e.g. lets invoke an endpoint and get the response</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[
-Object response = template.requestBody("<hello/>");
+</div></div><p>You can also supply an Exchange or a Processor to customize the
exchange</p><h3 id="ProducerTemplate-request*()methods">request*()
methods</h3><p>The send*() methods use the default Message Exchange Pattern
(InOnly, InOut etc) as the endpoint. If you want to explicitly perform a
request/response (InOut) you can use the request*() methods instead of the
send*() methods.</p><p>e.g. lets invoke an endpoint and get the
response</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[Object response =
template.requestBody("<hello/>");
// you can cast the response directly
String ret = template.requestBody("<hello/>", String.class);