You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bu...@apache.org on 2015/03/03 04:21:15 UTC
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
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"> 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"> 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"> 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[?<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"> 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"> 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"> 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("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[?<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"> 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"> 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"> 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[?<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"> 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"> 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"> 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("direct:orderInput").
to("dozer:transformOrder?mappingFile=orderMapping.xml&targetModel=example.XYZOrder").
to("direct:orderOutput");]]></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 <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> </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.  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>.  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.  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.  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 <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> </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.  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>.  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.  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.  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[<dataFormats>
<json library="Jackson" id="myjson"/>
<jaxb contextPath="org.example" id="myjaxb"/>
</dataFormats>]]></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[<endpoint uri="dozer:xml2json?marshalId=myjson&amp;unmarshalId=myjaxb&amp;targetModel=org.example.Order"/>]]></script>
-</div></div><p> </p><pre class="p1"> </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.  The component will default to a location of META-INF/dozerBeanMapping.xml if the mappingFile or mappingConfiguration options are not specified on an endpoint.  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 <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[<bean id="mapper" class="org.apache.camel.converter.dozer.DozerBeanMapperConfiguration"> Â
+ <property name="mappingFiles">
+ <list>
+ <value>mapping1.xml</value>
+ <value>mapping2.xml</value>
+ </list>
+ </property>
+</bean>]]></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.  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.  This is equivalent to constant mapping in other mapping frameworks, where can you assign a literal value to a target field.  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[<mappings xmlns="http://dozer.sourceforge.net"Â
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://dozer.sourceforge.net http://dozer.sourceforge.net/schema/beanmapping.xsd">
+ <configuration>
+ <variables>
+ <variable name="CUST_ID">ACME-SALES</variable>
+ </variables>
+ </configuration>
+ <mapping>
+ <class-a>org.apache.camel.component.dozer.VariableMapper</class-a>
+ <class-b>org.example.Order</class-b>
+ <field custom-converter-id="_variableMapping" custom-converter-param="${CUST_ID}">
+ <a>literal</a>
+ <b>custId</b>
+ </field>
+ </mapping>
+</mappings>]]></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.  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.  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.  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 "[ ]"
+ public Object mapCustomer(String customerId) {
+ return "[" + customerId + "]";
+ }
+}Â ]]></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[<mappings xmlns="http://dozer.sourceforge.net"Â
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://dozer.sourceforge.net http://dozer.sourceforge.net/schema/beanmapping.xsd">
+ <mapping>
+ <class-a>org.example.A</class-a>
+ <class-b>org.example.B</class-b>
+ <field custom-converter-id="_customMapping"
+ custom-converter-param="org.example.CustomMapper,mapCustomer">
+ <a>header.customerNum</a>
+ <b>custId</b>
+ </field>
+ </mapping>
+</mappings>]]></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.  Any language that Camel supports can be used in an expression mapping.  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.  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[<mappings xmlns="http://dozer.sourceforge.net"Â
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://dozer.sourceforge.net http://dozer.sourceforge.net/schema/beanmapping.xsd">
+ <mapping>
+ <class-a>org.apache.camel.component.dozer.ExpressionMapper</class-a>
+ <class-b>org.example.B</class-b>
+ <field custom-converter-id="_expressionMapping" custom-converter-param="simple:\${header.customerNumber}">
+ <a>expression</a>
+ <b>custId</b>
+ </field>
+ </mapping>
+</mappings>]]></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[?<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"> 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"> 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"> 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[?<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"> 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"> 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"> 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>