camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r942050 - in /websites/production/camel/content: book-architecture.html book-in-one-page.html cache/main.pageCache component-list.html components.html dozer.html transport.html uris.html
Date Tue, 03 Mar 2015 03:21:15 GMT
Author: buildbot
Date: Tue Mar  3 03:21:15 2015
New Revision: 942050

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/book-architecture.html
    websites/production/camel/content/book-in-one-page.html
    websites/production/camel/content/cache/main.pageCache
    websites/production/camel/content/component-list.html
    websites/production/camel/content/components.html
    websites/production/camel/content/dozer.html
    websites/production/camel/content/transport.html
    websites/production/camel/content/uris.html

Modified: websites/production/camel/content/book-architecture.html
==============================================================================
--- websites/production/camel/content/book-architecture.html (original)
+++ websites/production/camel/content/book-architecture.html Tue Mar  3 03:21:15 2015
@@ -233,7 +233,7 @@ disruptor-vm:someName[?<option>]
 ]]></script>
 </div></div></td><td colspan="1" rowspan="1" class="confluenceTd"><p>To
provide the implementation of <a shape="rect" href="seda.html">SEDA</a> which
is based on <a shape="rect" class="external-link" href="https://github.com/LMAX-Exchange/disruptor"
rel="nofollow">disruptor</a></p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p><span><a shape="rect" href="docker.html">Docker</a>
/ camel-docker</span></p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[docker://[operation]?[options]]]></script>
-</div></div><p><span><br clear="none"></span></p></td><td
colspan="1" rowspan="1" class="confluenceTd">&#160;To communicate with <a shape="rect"
class="external-link" href="https://www.docker.com/" rel="nofollow">Docker</a></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><a shape="rect" href="dozer-type-conversion.html">Dozer</a>
/ camel-dozer</p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
+</div></div><p><span><br clear="none"></span></p></td><td
colspan="1" rowspan="1" class="confluenceTd">&#160;To communicate with <a shape="rect"
class="external-link" href="https://www.docker.com/" rel="nofollow">Docker</a></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><a shape="rect" href="dozer.html">Dozer</a>
/ camel-dozer</p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[dozer://name?[options]]]></script>
 </div></div></td><td colspan="1" rowspan="1" class="confluenceTd">&#160;To
convert message body using the Dozer type converter library.</td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><a shape="rect" href="disruptor.html">D</a><a
shape="rect" href="dropbox.html">ropbox</a><span> / camel-dropbox</span></p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent
pdl">
 <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[dropbox://[operation]?[options]]]></script>

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 Tue Mar  3 03:21:15 2015
@@ -616,7 +616,7 @@ disruptor-vm:someName[?&lt;option&gt;]
 ]]></script>
 </div></div></td><td colspan="1" rowspan="1" class="confluenceTd"><p>To
provide the implementation of <a shape="rect" href="seda.html">SEDA</a> which
is based on <a shape="rect" class="external-link" href="https://github.com/LMAX-Exchange/disruptor"
rel="nofollow">disruptor</a></p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p><span><a shape="rect" href="docker.html">Docker</a>
/ camel-docker</span></p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[docker://[operation]?[options]]]></script>
-</div></div><p><span><br clear="none"></span></p></td><td
colspan="1" rowspan="1" class="confluenceTd">&#160;To communicate with <a shape="rect"
class="external-link" href="https://www.docker.com/" rel="nofollow">Docker</a></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><a shape="rect" href="dozer-type-conversion.html">Dozer</a>
/ camel-dozer</p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
+</div></div><p><span><br clear="none"></span></p></td><td
colspan="1" rowspan="1" class="confluenceTd">&#160;To communicate with <a shape="rect"
class="external-link" href="https://www.docker.com/" rel="nofollow">Docker</a></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><a shape="rect" href="dozer.html">Dozer</a>
/ camel-dozer</p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[dozer://name?[options]]]></script>
 </div></div></td><td colspan="1" rowspan="1" class="confluenceTd">&#160;To
convert message body using the Dozer type converter library.</td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><a shape="rect" href="disruptor.html">D</a><a
shape="rect" href="dropbox.html">ropbox</a><span> / camel-dropbox</span></p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent
pdl">
 <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[dropbox://[operation]?[options]]]></script>
@@ -4128,11 +4128,11 @@ While not actual tutorials you might fin
                     </div>
     </div>
 <h2 id="BookInOnePage-Preface">Preface</h2><p>This tutorial aims to guide
the reader through the stages of creating a project which uses Camel to facilitate the routing
of messages from a JMS queue to a <a shape="rect" class="external-link" href="http://www.springramework.org"
rel="nofollow">Spring</a> service. The route works in a synchronous fashion returning
a response to the client.</p><p><style type="text/css">/*<![CDATA[*/
-div.rbtoc1425309761321 {padding: 0px;}
-div.rbtoc1425309761321 ul {list-style: disc;margin-left: 0px;}
-div.rbtoc1425309761321 li {margin-left: 0px;padding-left: 0px;}
+div.rbtoc1425352767969 {padding: 0px;}
+div.rbtoc1425352767969 ul {list-style: disc;margin-left: 0px;}
+div.rbtoc1425352767969 li {margin-left: 0px;padding-left: 0px;}
 
-/*]]>*/</style></p><div class="toc-macro rbtoc1425309761321">
+/*]]>*/</style></p><div class="toc-macro rbtoc1425352767969">
 <ul class="toc-indentation"><li><a shape="rect" href="#Tutorial-JmsRemoting-TutorialonSpringRemotingwithJMS">Tutorial
on Spring Remoting with JMS</a></li><li><a shape="rect" href="#Tutorial-JmsRemoting-Preface">Preface</a></li><li><a
shape="rect" href="#Tutorial-JmsRemoting-Prerequisites">Prerequisites</a></li><li><a
shape="rect" href="#Tutorial-JmsRemoting-Distribution">Distribution</a></li><li><a
shape="rect" href="#Tutorial-JmsRemoting-About">About</a></li><li><a
shape="rect" href="#Tutorial-JmsRemoting-CreatetheCamelProject">Create the Camel Project</a>
 <ul class="toc-indentation"><li><a shape="rect" href="#Tutorial-JmsRemoting-UpdatethePOMwithDependencies">Update
the POM with Dependencies</a></li></ul>
 </li><li><a shape="rect" href="#Tutorial-JmsRemoting-WritingtheServer">Writing
the Server</a>
@@ -6318,11 +6318,11 @@ So we completed the last piece in the pi
 
 
 <style type="text/css">/*<![CDATA[*/
-div.rbtoc1425309765544 {padding: 0px;}
-div.rbtoc1425309765544 ul {list-style: disc;margin-left: 0px;}
-div.rbtoc1425309765544 li {margin-left: 0px;padding-left: 0px;}
+div.rbtoc1425352769596 {padding: 0px;}
+div.rbtoc1425352769596 ul {list-style: disc;margin-left: 0px;}
+div.rbtoc1425352769596 li {margin-left: 0px;padding-left: 0px;}
 
-/*]]>*/</style><div class="toc-macro rbtoc1425309765544">
+/*]]>*/</style><div class="toc-macro rbtoc1425352769596">
 <ul class="toc-indentation"><li><a shape="rect" href="#Tutorial-AXIS-Camel-TutorialusingAxis1.4withApacheCamel">Tutorial
using Axis 1.4 with Apache Camel</a>
 <ul class="toc-indentation"><li><a shape="rect" href="#Tutorial-AXIS-Camel-Prerequisites">Prerequisites</a></li><li><a
shape="rect" href="#Tutorial-AXIS-Camel-Distribution">Distribution</a></li><li><a
shape="rect" href="#Tutorial-AXIS-Camel-Introduction">Introduction</a></li><li><a
shape="rect" href="#Tutorial-AXIS-Camel-SettinguptheprojecttorunAxis">Setting up the project
to run Axis</a>
 <ul class="toc-indentation"><li><a shape="rect" href="#Tutorial-AXIS-Camel-Maven2">Maven
2</a></li><li><a shape="rect" href="#Tutorial-AXIS-Camel-wsdl">wsdl</a></li><li><a
shape="rect" href="#Tutorial-AXIS-Camel-ConfiguringAxis">Configuring Axis</a></li><li><a
shape="rect" href="#Tutorial-AXIS-Camel-RunningtheExample">Running the Example</a></li></ul>
@@ -18853,11 +18853,11 @@ template.send(&quot;direct:alias-verify&
                     </div>
     </div>
 <p>The <strong>cxf:</strong> component provides integration with <a
shape="rect" href="http://cxf.apache.org">Apache CXF</a> for connecting to JAX-WS
services hosted in CXF.</p><p><style type="text/css">/*<![CDATA[*/
-div.rbtoc1425309834580 {padding: 0px;}
-div.rbtoc1425309834580 ul {list-style: disc;margin-left: 0px;}
-div.rbtoc1425309834580 li {margin-left: 0px;padding-left: 0px;}
+div.rbtoc1425352789787 {padding: 0px;}
+div.rbtoc1425352789787 ul {list-style: disc;margin-left: 0px;}
+div.rbtoc1425352789787 li {margin-left: 0px;padding-left: 0px;}
 
-/*]]>*/</style></p><div class="toc-macro rbtoc1425309834580">
+/*]]>*/</style></p><div class="toc-macro rbtoc1425352789787">
 <ul class="toc-indentation"><li><a shape="rect" href="#CXF-CXFComponent">CXF
Component</a>
 <ul class="toc-indentation"><li><a shape="rect" href="#CXF-URIformat">URI
format</a></li><li><a shape="rect" href="#CXF-Options">Options</a>
 <ul class="toc-indentation"><li><a shape="rect" href="#CXF-Thedescriptionsofthedataformats">The
descriptions of the dataformats</a>

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

Modified: websites/production/camel/content/component-list.html
==============================================================================
--- websites/production/camel/content/component-list.html (original)
+++ websites/production/camel/content/component-list.html Tue Mar  3 03:21:15 2015
@@ -200,7 +200,7 @@ disruptor-vm:someName[?&lt;option&gt;]
 ]]></script>
 </div></div></td><td colspan="1" rowspan="1" class="confluenceTd"><p>To
provide the implementation of <a shape="rect" href="seda.html">SEDA</a> which
is based on <a shape="rect" class="external-link" href="https://github.com/LMAX-Exchange/disruptor"
rel="nofollow">disruptor</a></p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p><span><a shape="rect" href="docker.html">Docker</a>
/ camel-docker</span></p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[docker://[operation]?[options]]]></script>
-</div></div><p><span><br clear="none"></span></p></td><td
colspan="1" rowspan="1" class="confluenceTd">&#160;To communicate with <a shape="rect"
class="external-link" href="https://www.docker.com/" rel="nofollow">Docker</a></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><a shape="rect" href="dozer-type-conversion.html">Dozer</a>
/ camel-dozer</p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
+</div></div><p><span><br clear="none"></span></p></td><td
colspan="1" rowspan="1" class="confluenceTd">&#160;To communicate with <a shape="rect"
class="external-link" href="https://www.docker.com/" rel="nofollow">Docker</a></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><a shape="rect" href="dozer.html">Dozer</a>
/ camel-dozer</p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[dozer://name?[options]]]></script>
 </div></div></td><td colspan="1" rowspan="1" class="confluenceTd">&#160;To
convert message body using the Dozer type converter library.</td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><a shape="rect" href="disruptor.html">D</a><a
shape="rect" href="dropbox.html">ropbox</a><span> / camel-dropbox</span></p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent
pdl">
 <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[dropbox://[operation]?[options]]]></script>

Modified: websites/production/camel/content/components.html
==============================================================================
--- websites/production/camel/content/components.html (original)
+++ websites/production/camel/content/components.html Tue Mar  3 03:21:15 2015
@@ -209,7 +209,7 @@ disruptor-vm:someName[?&lt;option&gt;]
 ]]></script>
 </div></div></td><td colspan="1" rowspan="1" class="confluenceTd"><p>To
provide the implementation of <a shape="rect" href="seda.html">SEDA</a> which
is based on <a shape="rect" class="external-link" href="https://github.com/LMAX-Exchange/disruptor"
rel="nofollow">disruptor</a></p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p><span><a shape="rect" href="docker.html">Docker</a>
/ camel-docker</span></p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[docker://[operation]?[options]]]></script>
-</div></div><p><span><br clear="none"></span></p></td><td
colspan="1" rowspan="1" class="confluenceTd">&#160;To communicate with <a shape="rect"
class="external-link" href="https://www.docker.com/" rel="nofollow">Docker</a></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><a shape="rect" href="dozer-type-conversion.html">Dozer</a>
/ camel-dozer</p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
+</div></div><p><span><br clear="none"></span></p></td><td
colspan="1" rowspan="1" class="confluenceTd">&#160;To communicate with <a shape="rect"
class="external-link" href="https://www.docker.com/" rel="nofollow">Docker</a></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><a shape="rect" href="dozer.html">Dozer</a>
/ camel-dozer</p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[dozer://name?[options]]]></script>
 </div></div></td><td colspan="1" rowspan="1" class="confluenceTd">&#160;To
convert message body using the Dozer type converter library.</td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><a shape="rect" href="disruptor.html">D</a><a
shape="rect" href="dropbox.html">ropbox</a><span> / camel-dropbox</span></p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent
pdl">
 <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[dropbox://[operation]?[options]]]></script>

Modified: websites/production/camel/content/dozer.html
==============================================================================
--- websites/production/camel/content/dozer.html (original)
+++ websites/production/camel/content/dozer.html Tue Mar  3 03:21:15 2015
@@ -100,14 +100,75 @@
 <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[from(&quot;direct:orderInput&quot;).
   to(&quot;dozer:transformOrder?mappingFile=orderMapping.xml&amp;targetModel=example.XYZOrder&quot;).
   to(&quot;direct:orderOutput&quot;);]]></script>
-</div></div><h3 id="Dozer-Options">Options</h3><div class="table-wrap"><table
class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th
colspan="1" rowspan="1" class="confluenceTh"><p>Default</p></th><th
colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>mappingFile</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>dozerBeanMapping.xml</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>The location of a Dozer configuration
file. The file is loaded from the classpath by default, but you can use&#160;<code>file:</code>,
<code>classpath:<span style="font-family: Arial , sans-serif;">, or </span></code><code>http:
</code>to load the configuration from a specific location.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>unmarshalId</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>none</p></
 td><td colspan="1" rowspan="1" class="confluenceTd">The id of a dataFormat defined
within the Camel Context to use for unmarshalling the mapping input from a non-Java type.<p>&#160;</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>marshalId</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><span>none</span></p></td><td
colspan="1" rowspan="1" class="confluenceTd">The id of a dataFormat defined within the
Camel Context to use for marshalling the mapping output to a non-Java type.</td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>sourceModel</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><span>none</span></p></td><td
colspan="1" rowspan="1" class="confluenceTd">Fully-qualified class name for the source
type used in the mapping. If specified, the input to the mapping is converted to the specified
type before being mapped with Dozer.</td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p><code>
 targetModel</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><span>none</span></p></td><td
colspan="1" rowspan="1" class="confluenceTd">Fully-qualified class name for the target
type used in the mapping. This option is required.</td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><code><span>mappingConfiguration</span></code></td><td
colspan="1" rowspan="1" class="confluenceTd">none</td><td colspan="1" rowspan="1"
class="confluenceTd">The name of a <span style="line-height: 1.4285715;">DozerBeanMapperConfiguration
bean in the Camel registry which should be used for configuring the Dozer mapping. This is
an alternative to the mappingFile option that can be used for fine-grained control over how
Dozer is configured.</span></td></tr></tbody></table></div><h3
id="Dozer-UsingDataFormatswithDozer">Using Data Formats with Dozer</h3><p>Dozer
does not support non-Java sources and targets for mappings, so it cannot, for example, map
an XML document to a Java object
  on its own. &#160;Luckily, Camel has extensive support for marshalling between Java
and a wide variety of formats using <a shape="rect" class="external-link" href="http://camel.apache.org/data-format.html">data
formats</a>. &#160;The Dozer component takes advantage of this support by allowing
you to specify that input and output data should be passed through a data format prior to
processing via Dozer. &#160;You can always do this on your own outside the call to Dozer,
but supporting it directly in the Dozer component allows you to use a single endpoints to
configure any-to-any transformation within Camel.</p><p>As an example, let's say
you wanted to map between an XML data structure and a JSON data structure using the Dozer
component. &#160;If you had the following data formats defined in a Camel Context:</p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent
pdl">
+</div></div><h3 id="Dozer-Options">Options</h3><div class="table-wrap"><table
class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th
colspan="1" rowspan="1" class="confluenceTh"><p>Default</p></th><th
colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>mappingFile</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>dozerBeanMapping.xml</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>The location of a Dozer configuration
file. The file is loaded from the classpath by default, but you can use&#160;<code>file:</code>,
<code>classpath:<span style="font-family: Arial , sans-serif;">, or </span></code><code>http:
</code>to load the configuration from a specific location.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>unmarshalId</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>none</p></
 td><td colspan="1" rowspan="1" class="confluenceTd">The id of a dataFormat defined
within the Camel Context to use for unmarshalling the mapping input from a non-Java type.<p>&#160;</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>marshalId</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><span>none</span></p></td><td
colspan="1" rowspan="1" class="confluenceTd">The id of a dataFormat defined within the
Camel Context to use for marshalling the mapping output to a non-Java type.</td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>sourceModel</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><span>none</span></p></td><td
colspan="1" rowspan="1" class="confluenceTd">Fully-qualified class name for the source
type used in the mapping. If specified, the input to the mapping is converted to the specified
type before being mapped with Dozer.</td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p><code>
 targetModel</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><span>none</span></p></td><td
colspan="1" rowspan="1" class="confluenceTd">Fully-qualified class name for the target
type used in the mapping. This option is required.</td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><code><span>mappingConfiguration</span></code></td><td
colspan="1" rowspan="1" class="confluenceTd">none</td><td colspan="1" rowspan="1"
class="confluenceTd">The name of a <span style="line-height: 1.4285715;">DozerBeanMapperConfiguration
bean in the Camel registry which should be used for configuring the Dozer mapping. This is
an alternative to the mappingFile option that can be used for fine-grained control over how
Dozer is configured. Remember to use a "#" prefix in the value to indicate that the bean is
in the Camel registry (e.g. "#myDozerConfig").</span></td></tr></tbody></table></div><h3
id="Dozer-UsingDataFormatswithDozer">Using Data Formats with Dozer</h3><p>Dozer
does 
 not support non-Java sources and targets for mappings, so it cannot, for example, map an
XML document to a Java object on its own. &#160;Luckily, Camel has extensive support for
marshalling between Java and a wide variety of formats using <a shape="rect" class="external-link"
href="http://camel.apache.org/data-format.html">data formats</a>. &#160;The Dozer
component takes advantage of this support by allowing you to specify that input and output
data should be passed through a data format prior to processing via Dozer. &#160;You can
always do this on your own outside the call to Dozer, but supporting it directly in the Dozer
component allows you to use a single endpoints to configure any-to-any transformation within
Camel.</p><p>As an example, let's say you wanted to map between an XML data structure
and a JSON data structure using the Dozer component. &#160;If you had the following data
formats defined in a Camel Context:</p><div class="code panel pdl" style="border-width:
1px;"><d
 iv class="codeContent panelContent pdl">
 <script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[&lt;dataFormats&gt;
   &lt;json library=&quot;Jackson&quot; id=&quot;myjson&quot;/&gt;
   &lt;jaxb contextPath=&quot;org.example&quot; id=&quot;myjaxb&quot;/&gt;
 &lt;/dataFormats&gt;]]></script>
 </div></div><p class="p1">You could then configure a Dozer endpoint to
unmarshal the input XML using a JAXB data format and marshal the mapping output using Jackson.</p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent
pdl">
 <script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[&lt;endpoint
uri=&quot;dozer:xml2json?marshalId=myjson&amp;amp;unmarshalId=myjaxb&amp;amp;targetModel=org.example.Order&quot;/&gt;]]></script>
-</div></div><p>&#160;</p><pre class="p1">&#160;</pre><p
class="p1"><span class="s1"><br clear="none"></span></p></div>
+</div></div><h3 class="p1" id="Dozer-ConfiguringDozer">Configuring Dozer</h3><p
class="p1">All Dozer endpoints require a Dozer mapping configuration file which defines
mappings between source and target objects. &#160;The component will default to a location
of META-INF/dozerBeanMapping.xml if the mappingFile or mappingConfiguration options are not
specified on an endpoint. &#160;If you need to supply multiple mapping configuration files
for a single endpoint or specify additional configuration options (e.g. event listeners, custom
converters, etc.), then you can use an instance of&#160;<code>org.apache.camel.converter.dozer.DozerBeanMapperConfiguration</code>.</p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent
pdl">
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[&lt;bean
id=&quot;mapper&quot; class=&quot;org.apache.camel.converter.dozer.DozerBeanMapperConfiguration&quot;&gt;
 
+  &lt;property name=&quot;mappingFiles&quot;&gt;
+    &lt;list&gt;
+      &lt;value&gt;mapping1.xml&lt;/value&gt;
+      &lt;value&gt;mapping2.xml&lt;/value&gt;
+    &lt;/list&gt;
+  &lt;/property&gt;
+&lt;/bean&gt;]]></script>
+</div></div><h3 class="p1" id="Dozer-MappingExtensions">Mapping Extensions</h3><p>The
Dozer component implements a number of extensions to the Dozer mapping framework as custom
converters. &#160;These converters implement mapping functions that are not supported
directly by Dozer itself.</p><h4 class="p1" id="Dozer-VariableMappings">Variable
Mappings</h4><p class="p1">Variable mappings allow you to map the value of a variable
definition within a Dozer configuration into a target field instead of using the value of
a source field. &#160;This is equivalent to constant mapping in other mapping frameworks,
where can you assign a literal value to a target field. &#160;To use a variable mapping,
simply define a variable within your mapping configuration and then map from the VariableMapper
class into your target field of choice:</p><div class="code panel pdl" style="border-width:
1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[&lt;mappings xmlns=&quot;http://dozer.sourceforge.net&quot; 
+  xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
+  xsi:schemaLocation=&quot;http://dozer.sourceforge.net http://dozer.sourceforge.net/schema/beanmapping.xsd&quot;&gt;
+  &lt;configuration&gt;
+    &lt;variables&gt;
+      &lt;variable name=&quot;CUST_ID&quot;&gt;ACME-SALES&lt;/variable&gt;
+    &lt;/variables&gt;
+  &lt;/configuration&gt;
+  &lt;mapping&gt;
+    &lt;class-a&gt;org.apache.camel.component.dozer.VariableMapper&lt;/class-a&gt;
+    &lt;class-b&gt;org.example.Order&lt;/class-b&gt;
+    &lt;field custom-converter-id=&quot;_variableMapping&quot; custom-converter-param=&quot;${CUST_ID}&quot;&gt;
+      &lt;a&gt;literal&lt;/a&gt;
+      &lt;b&gt;custId&lt;/b&gt;
+    &lt;/field&gt;
+  &lt;/mapping&gt;
+&lt;/mappings&gt;]]></script>
+</div></div><h4 class="p1" id="Dozer-CustomMappings">Custom Mappings</h4><p
class="p1">Custom mappings allow you to define your own logic for how a source field is
mapped to a target field. &#160;They are similar in function to Dozer customer converters,
with two notable differences:</p><ul><li class="p1">You can have multiple
converter methods in a single class with custom mappings.</li><li class="p1">There
is no requirement to implement a Dozer-specific interface with custom mappings.</li></ul><p
class="p1">A custom mapping is declared by using the built-in '_customMapping' converter
in your mapping configuration. &#160;The parameter to this converter has the following
syntax:</p><pre class="p1">[class-name][,method-name]</pre><p class="p1">Method
name is optional - the Dozer component will search for a method that matches the input and
output types required for a mapping. &#160;An example custom mapping and configuration
are provided below.</p><div class="code panel pdl" style="b
 order-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[public
class CustomMapper {
+    // All customer ids must be wrapped in &quot;[ ]&quot;
+    public Object mapCustomer(String customerId) {
+        return &quot;[&quot; + customerId + &quot;]&quot;;
+    }
+} ]]></script>
+</div></div><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[&lt;mappings xmlns=&quot;http://dozer.sourceforge.net&quot; 
+  xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
+  xsi:schemaLocation=&quot;http://dozer.sourceforge.net http://dozer.sourceforge.net/schema/beanmapping.xsd&quot;&gt;
+  &lt;mapping&gt;
+    &lt;class-a&gt;org.example.A&lt;/class-a&gt;
+    &lt;class-b&gt;org.example.B&lt;/class-b&gt;
+    &lt;field custom-converter-id=&quot;_customMapping&quot; 
+	    custom-converter-param=&quot;org.example.CustomMapper,mapCustomer&quot;&gt;
+      &lt;a&gt;header.customerNum&lt;/a&gt;
+      &lt;b&gt;custId&lt;/b&gt;
+    &lt;/field&gt;
+  &lt;/mapping&gt;
+&lt;/mappings&gt;]]></script>
+</div></div><h4 class="p1" id="Dozer-ExpressionMappings">Expression Mappings</h4><p
class="p1">Expression mappings allow you to use the powerful <a shape="rect" class="external-link"
href="http://camel.apache.org/languages.html">language</a> capabilities of Camel
to evaluate an expression and assign the result to a target field in a mapping. &#160;Any
language that Camel supports can be used in an expression mapping. &#160;Basic examples
of expressions include the ability to map a Camel message header or exchange property to a
target field or to concatenate multiple source fields into a target field. &#160;The syntax
of a mapping expression is:</p><pre class="p1">[language]:[expression]</pre><p
class="p1">An example of mapping a message header into a target field:</p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent
pdl">
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[&lt;mappings xmlns=&quot;http://dozer.sourceforge.net&quot; 
+  xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
+  xsi:schemaLocation=&quot;http://dozer.sourceforge.net http://dozer.sourceforge.net/schema/beanmapping.xsd&quot;&gt;
+  &lt;mapping&gt;
+    &lt;class-a&gt;org.apache.camel.component.dozer.ExpressionMapper&lt;/class-a&gt;
+    &lt;class-b&gt;org.example.B&lt;/class-b&gt;
+    &lt;field custom-converter-id=&quot;_expressionMapping&quot; custom-converter-param=&quot;simple:\${header.customerNumber}&quot;&gt;
+      &lt;a&gt;expression&lt;/a&gt;
+      &lt;b&gt;custId&lt;/b&gt;
+    &lt;/field&gt;
+  &lt;/mapping&gt;
+&lt;/mappings&gt;]]></script>
+</div></div><p>Note that any properties within your expression must be
escaped with "\" to prevent an error when Dozer attempts to resolve variable values defined
using the EL.</p><p class="p1"><span class="s1"><br clear="none"></span></p></div>
         </td>
         <td valign="top">
           <div class="navigation">

Modified: websites/production/camel/content/transport.html
==============================================================================
--- websites/production/camel/content/transport.html (original)
+++ websites/production/camel/content/transport.html Tue Mar  3 03:21:15 2015
@@ -213,7 +213,7 @@ disruptor-vm:someName[?&lt;option&gt;]
 ]]></script>
 </div></div></td><td colspan="1" rowspan="1" class="confluenceTd"><p>To
provide the implementation of <a shape="rect" href="seda.html">SEDA</a> which
is based on <a shape="rect" class="external-link" href="https://github.com/LMAX-Exchange/disruptor"
rel="nofollow">disruptor</a></p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p><span><a shape="rect" href="docker.html">Docker</a>
/ camel-docker</span></p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[docker://[operation]?[options]]]></script>
-</div></div><p><span><br clear="none"></span></p></td><td
colspan="1" rowspan="1" class="confluenceTd">&#160;To communicate with <a shape="rect"
class="external-link" href="https://www.docker.com/" rel="nofollow">Docker</a></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><a shape="rect" href="dozer-type-conversion.html">Dozer</a>
/ camel-dozer</p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
+</div></div><p><span><br clear="none"></span></p></td><td
colspan="1" rowspan="1" class="confluenceTd">&#160;To communicate with <a shape="rect"
class="external-link" href="https://www.docker.com/" rel="nofollow">Docker</a></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><a shape="rect" href="dozer.html">Dozer</a>
/ camel-dozer</p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[dozer://name?[options]]]></script>
 </div></div></td><td colspan="1" rowspan="1" class="confluenceTd">&#160;To
convert message body using the Dozer type converter library.</td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><a shape="rect" href="disruptor.html">D</a><a
shape="rect" href="dropbox.html">ropbox</a><span> / camel-dropbox</span></p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent
pdl">
 <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[dropbox://[operation]?[options]]]></script>

Modified: websites/production/camel/content/uris.html
==============================================================================
--- websites/production/camel/content/uris.html (original)
+++ websites/production/camel/content/uris.html Tue Mar  3 03:21:15 2015
@@ -218,7 +218,7 @@ disruptor-vm:someName[?&lt;option&gt;]
 ]]></script>
 </div></div></td><td colspan="1" rowspan="1" class="confluenceTd"><p>To
provide the implementation of <a shape="rect" href="seda.html">SEDA</a> which
is based on <a shape="rect" class="external-link" href="https://github.com/LMAX-Exchange/disruptor"
rel="nofollow">disruptor</a></p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p><span><a shape="rect" href="docker.html">Docker</a>
/ camel-docker</span></p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[docker://[operation]?[options]]]></script>
-</div></div><p><span><br clear="none"></span></p></td><td
colspan="1" rowspan="1" class="confluenceTd">&#160;To communicate with <a shape="rect"
class="external-link" href="https://www.docker.com/" rel="nofollow">Docker</a></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><a shape="rect" href="dozer-type-conversion.html">Dozer</a>
/ camel-dozer</p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
+</div></div><p><span><br clear="none"></span></p></td><td
colspan="1" rowspan="1" class="confluenceTd">&#160;To communicate with <a shape="rect"
class="external-link" href="https://www.docker.com/" rel="nofollow">Docker</a></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><a shape="rect" href="dozer.html">Dozer</a>
/ camel-dozer</p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[dozer://name?[options]]]></script>
 </div></div></td><td colspan="1" rowspan="1" class="confluenceTd">&#160;To
convert message body using the Dozer type converter library.</td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><a shape="rect" href="disruptor.html">D</a><a
shape="rect" href="dropbox.html">ropbox</a><span> / camel-dropbox</span></p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent
pdl">
 <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[dropbox://[operation]?[options]]]></script>



Mime
View raw message