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/04/10 08:21:07 UTC

svn commit: r946990 - in /websites/production/camel/content: book-dataformat-appendix.html book-in-one-page.html cache/main.pageCache json.html

Author: buildbot
Date: Fri Apr 10 06:21:05 2015
New Revision: 946990

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/book-dataformat-appendix.html
    websites/production/camel/content/book-in-one-page.html
    websites/production/camel/content/cache/main.pageCache
    websites/production/camel/content/json.html

Modified: websites/production/camel/content/book-dataformat-appendix.html
==============================================================================
--- websites/production/camel/content/book-dataformat-appendix.html (original)
+++ websites/production/camel/content/book-dataformat-appendix.html Fri Apr 10 06:21:05 2015
@@ -943,7 +943,14 @@ format.setUnmarshalType(MyPojo.class);]]
 <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[JacksonDataFormat df = new JacksonDataFormat(MyPojo.class);
 df.disableFeature(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);
 df.disableFeature(DeserializationFeature.FAIL_ON_NULL_FOR_PRIMITIVES);]]></script>
-</div></div><h3 id="BookDataFormatAppendix-FormattedJSONmarshalling(pretty-printing)">Formatted JSON marshalling (pretty-printing)</h3><p><strong>Available as of Camel 2.16</strong></p><p>Using the <code>prettyPrint</code> option&#160;one can output a well formatted JSON while marshalling:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+</div></div><h3 id="BookDataFormatAppendix-ConvertingMapstoPOJOusingJackson">Converting Maps to POJO using Jackson</h3><p>Available since <strong>Camel 2.16</strong>. Jackson <code>ObjectMapper</code> can be used to convert maps to POJO objects. Jackson component comes with the data converter that can be used to convert <code>java.util.Map</code> instance to non-String, non-primitive and non-Number objects.</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[Map&lt;String, Object&gt; invoiceData = new HashMap&lt;String, Object&gt;();
+invoiceData.put(&quot;netValue&quot;, 500);
+producerTemplate.sendBody(&quot;direct:mapToInvoice&quot;, invoiceData);
+...
+// Later in the processor
+Invoice invoice = exchange.getIn().getBody(Invoice.class);]]></script>
+</div></div><p>If there is a single <code>ObjectMapper</code> instance available in the Camel registry, it will used by the converter to perform the conversion. Otherwise the default mapper will be used. &#160;</p><h3 id="BookDataFormatAppendix-FormattedJSONmarshalling(pretty-printing)">Formatted JSON marshalling (pretty-printing)</h3><p><strong>Available as of Camel 2.16</strong></p><p>Using the <code>prettyPrint</code> option&#160;one can output a well formatted JSON while marshalling:</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[ &lt;dataFormats&gt;
       &lt;json id=&quot;xstream&quot; prettyPrint=&quot;true&quot;/&gt;
       &lt;json id=&quot;jackson&quot; prettyPrint=&quot;true&quot; library=&quot;Jackson&quot;/&gt;

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 Fri Apr 10 06:21:05 2015
@@ -4126,11 +4126,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.rbtoc1428329885524 {padding: 0px;}
-div.rbtoc1428329885524 ul {list-style: disc;margin-left: 0px;}
-div.rbtoc1428329885524 li {margin-left: 0px;padding-left: 0px;}
+div.rbtoc1428646735791 {padding: 0px;}
+div.rbtoc1428646735791 ul {list-style: disc;margin-left: 0px;}
+div.rbtoc1428646735791 li {margin-left: 0px;padding-left: 0px;}
 
-/*]]>*/</style></p><div class="toc-macro rbtoc1428329885524">
+/*]]>*/</style></p><div class="toc-macro rbtoc1428646735791">
 <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>
@@ -6316,11 +6316,11 @@ So we completed the last piece in the pi
 
 
 <style type="text/css">/*<![CDATA[*/
-div.rbtoc1428329885881 {padding: 0px;}
-div.rbtoc1428329885881 ul {list-style: disc;margin-left: 0px;}
-div.rbtoc1428329885881 li {margin-left: 0px;padding-left: 0px;}
+div.rbtoc1428646736118 {padding: 0px;}
+div.rbtoc1428646736118 ul {list-style: disc;margin-left: 0px;}
+div.rbtoc1428646736118 li {margin-left: 0px;padding-left: 0px;}
 
-/*]]>*/</style><div class="toc-macro rbtoc1428329885881">
+/*]]>*/</style><div class="toc-macro rbtoc1428646736118">
 <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>
@@ -10697,7 +10697,14 @@ format.setUnmarshalType(MyPojo.class);]]
 <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[JacksonDataFormat df = new JacksonDataFormat(MyPojo.class);
 df.disableFeature(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);
 df.disableFeature(DeserializationFeature.FAIL_ON_NULL_FOR_PRIMITIVES);]]></script>
-</div></div><h3 id="BookInOnePage-FormattedJSONmarshalling(pretty-printing)">Formatted JSON marshalling (pretty-printing)</h3><p><strong>Available as of Camel 2.16</strong></p><p>Using the <code>prettyPrint</code> option&#160;one can output a well formatted JSON while marshalling:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+</div></div><h3 id="BookInOnePage-ConvertingMapstoPOJOusingJackson">Converting Maps to POJO using Jackson</h3><p>Available since <strong>Camel 2.16</strong>. Jackson <code>ObjectMapper</code> can be used to convert maps to POJO objects. Jackson component comes with the data converter that can be used to convert <code>java.util.Map</code> instance to non-String, non-primitive and non-Number objects.</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[Map&lt;String, Object&gt; invoiceData = new HashMap&lt;String, Object&gt;();
+invoiceData.put(&quot;netValue&quot;, 500);
+producerTemplate.sendBody(&quot;direct:mapToInvoice&quot;, invoiceData);
+...
+// Later in the processor
+Invoice invoice = exchange.getIn().getBody(Invoice.class);]]></script>
+</div></div><p>If there is a single <code>ObjectMapper</code> instance available in the Camel registry, it will used by the converter to perform the conversion. Otherwise the default mapper will be used. &#160;</p><h3 id="BookInOnePage-FormattedJSONmarshalling(pretty-printing)">Formatted JSON marshalling (pretty-printing)</h3><p><strong>Available as of Camel 2.16</strong></p><p>Using the <code>prettyPrint</code> option&#160;one can output a well formatted JSON while marshalling:</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[ &lt;dataFormats&gt;
       &lt;json id=&quot;xstream&quot; prettyPrint=&quot;true&quot;/&gt;
       &lt;json id=&quot;jackson&quot; prettyPrint=&quot;true&quot; library=&quot;Jackson&quot;/&gt;
@@ -18930,11 +18937,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.rbtoc1428329905726 {padding: 0px;}
-div.rbtoc1428329905726 ul {list-style: disc;margin-left: 0px;}
-div.rbtoc1428329905726 li {margin-left: 0px;padding-left: 0px;}
+div.rbtoc1428646758139 {padding: 0px;}
+div.rbtoc1428646758139 ul {list-style: disc;margin-left: 0px;}
+div.rbtoc1428646758139 li {margin-left: 0px;padding-left: 0px;}
 
-/*]]>*/</style></p><div class="toc-macro rbtoc1428329905726">
+/*]]>*/</style></p><div class="toc-macro rbtoc1428646758139">
 <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/json.html
==============================================================================
--- websites/production/camel/content/json.html (original)
+++ websites/production/camel/content/json.html Fri Apr 10 06:21:05 2015
@@ -306,7 +306,14 @@ format.setUnmarshalType(MyPojo.class);]]
 <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[JacksonDataFormat df = new JacksonDataFormat(MyPojo.class);
 df.disableFeature(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);
 df.disableFeature(DeserializationFeature.FAIL_ON_NULL_FOR_PRIMITIVES);]]></script>
-</div></div><h3 id="JSON-FormattedJSONmarshalling(pretty-printing)">Formatted JSON marshalling (pretty-printing)</h3><p><strong>Available as of Camel 2.16</strong></p><p>Using the <code>prettyPrint</code> option&#160;one can output a well formatted JSON while marshalling:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+</div></div><h3 id="JSON-ConvertingMapstoPOJOusingJackson">Converting Maps to POJO using Jackson</h3><p>Available since <strong>Camel 2.16</strong>. Jackson <code>ObjectMapper</code> can be used to convert maps to POJO objects. Jackson component comes with the data converter that can be used to convert <code>java.util.Map</code> instance to non-String, non-primitive and non-Number objects.</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[Map&lt;String, Object&gt; invoiceData = new HashMap&lt;String, Object&gt;();
+invoiceData.put(&quot;netValue&quot;, 500);
+producerTemplate.sendBody(&quot;direct:mapToInvoice&quot;, invoiceData);
+...
+// Later in the processor
+Invoice invoice = exchange.getIn().getBody(Invoice.class);]]></script>
+</div></div><p>If there is a single <code>ObjectMapper</code> instance available in the Camel registry, it will used by the converter to perform the conversion. Otherwise the default mapper will be used. &#160;</p><h3 id="JSON-FormattedJSONmarshalling(pretty-printing)">Formatted JSON marshalling (pretty-printing)</h3><p><strong>Available as of Camel 2.16</strong></p><p>Using the <code>prettyPrint</code> option&#160;one can output a well formatted JSON while marshalling:</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[ &lt;dataFormats&gt;
       &lt;json id=&quot;xstream&quot; prettyPrint=&quot;true&quot;/&gt;
       &lt;json id=&quot;jackson&quot; prettyPrint=&quot;true&quot; library=&quot;Jackson&quot;/&gt;