camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r809160 - in /websites/production/camel/content: book-dataformat-appendix.html book-in-one-page.html cache/main.pageCache csv.html
Date Mon, 19 Mar 2012 11:21:55 GMT
Author: buildbot
Date: Mon Mar 19 11:21:55 2012
New Revision: 809160

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/csv.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 Mon Mar 19 11:21:55 2012
@@ -670,6 +670,42 @@ from(<span class="code-quote">"direct:st
 </pre>
 </div></div>
 
+<h3><a shape="rect" name="BookDataFormatAppendix-UsingautogenColumns%2CconfigRefandstrategyRefattributesinsideXMLDSL"></a>Using
autogenColumns, configRef and strategyRef attributes inside XML DSL</h3>
+<p><b>Available as of Camel 2.9.2 / 2.10</b></p>
+
+<p>You can customize the CSV <a shape="rect" href="data-format.html" title="Data
Format">Data Format</a> to make use of your own CVSConfig and/or CVSStrategy. Also
note that the default value for autogenColumns is true. The following example should illustrates
this.</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+<span class="code-tag">&lt;route&gt;</span>
+  <span class="code-tag">&lt;from uri=<span class="code-quote">"direct:start"</span>
/&gt;</span>
+  <span class="code-tag">&lt;marshal&gt;</span>
+    <span class="code-tag"><span class="code-comment">&lt;!-- make use of
a strategy other than the default one which is 'org.apache.commons.csv.CSVStrategy.DEFAULT_STRATEGY'
--&gt;</span></span>
+    <span class="code-tag">&lt;csv autogenColumns=<span class="code-quote">"false"</span>
delimiter=<span class="code-quote">"|"</span> configRef=<span class="code-quote">"csvConfig"</span>
strategyRef=<span class="code-quote">"excelStrategy"</span> /&gt;</span>
+  <span class="code-tag">&lt;/marshal&gt;</span>
+  <span class="code-tag">&lt;convertBodyTo type=<span class="code-quote">"java.lang.String"</span>
/&gt;</span>
+  <span class="code-tag">&lt;to uri=<span class="code-quote">"mock:result"</span>
/&gt;</span>
+<span class="code-tag">&lt;/route&gt;</span>
+
+<span class="code-tag">&lt;bean id=<span class="code-quote">"csvConfig"</span>
class=<span class="code-quote">"org.apache.commons.csv.writer.CSVConfig"</span>&gt;</span>
+  <span class="code-tag">&lt;property name=<span class="code-quote">"fields"</span>&gt;</span>
+    <span class="code-tag">&lt;list&gt;</span>
+      <span class="code-tag">&lt;bean class=<span class="code-quote">"org.apache.commons.csv.writer.CSVField"</span>&gt;</span>
+        <span class="code-tag">&lt;property name=<span class="code-quote">"name"</span>
value=<span class="code-quote">"orderId"</span> /&gt;</span>
+      <span class="code-tag">&lt;/bean&gt;</span>
+      <span class="code-tag">&lt;bean class=<span class="code-quote">"org.apache.commons.csv.writer.CSVField"</span>&gt;</span>
+        <span class="code-tag">&lt;property name=<span class="code-quote">"name"</span>
value=<span class="code-quote">"amount"</span> /&gt;</span>
+      <span class="code-tag">&lt;/bean&gt;</span>
+    <span class="code-tag">&lt;/list&gt;</span>
+  <span class="code-tag">&lt;/property&gt;</span>
+<span class="code-tag">&lt;/bean&gt;</span>
+
+<span class="code-tag">&lt;bean id=<span class="code-quote">"excelStrategy"</span>
class=<span class="code-quote">"org.springframework.beans.factory.config.FieldRetrievingFactoryBean"</span>&gt;</span>
+  <span class="code-tag">&lt;property name=<span class="code-quote">"staticField"</span>
value=<span class="code-quote">"org.apache.commons.csv.CSVStrategy.EXCEL_STRATEGY"</span>
/&gt;</span>
+<span class="code-tag">&lt;/bean&gt;</span>
+</pre>
+</div></div>
+
 <h3><a shape="rect" name="BookDataFormatAppendix-Dependencies"></a>Dependencies</h3>
 
 <p>To use CSV in your camel routes you need to add the a dependency on <b>camel-csv</b>
which implements this data format. </p>

Modified: websites/production/camel/content/book-in-one-page.html
==============================================================================
--- websites/production/camel/content/book-in-one-page.html (original)
+++ websites/production/camel/content/book-in-one-page.html Mon Mar 19 11:21:55 2012
@@ -11454,6 +11454,42 @@ from(<span class="code-quote">"direct:st
 </pre>
 </div></div>
 
+<h3><a shape="rect" name="BookInOnePage-UsingautogenColumns%2CconfigRefandstrategyRefattributesinsideXMLDSL"></a>Using
autogenColumns, configRef and strategyRef attributes inside XML DSL</h3>
+<p><b>Available as of Camel 2.9.2 / 2.10</b></p>
+
+<p>You can customize the CSV <a shape="rect" href="data-format.html" title="Data
Format">Data Format</a> to make use of your own CVSConfig and/or CVSStrategy. Also
note that the default value for autogenColumns is true. The following example should illustrates
this.</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+<span class="code-tag">&lt;route&gt;</span>
+  <span class="code-tag">&lt;from uri=<span class="code-quote">"direct:start"</span>
/&gt;</span>
+  <span class="code-tag">&lt;marshal&gt;</span>
+    <span class="code-tag"><span class="code-comment">&lt;!-- make use of
a strategy other than the default one which is 'org.apache.commons.csv.CSVStrategy.DEFAULT_STRATEGY'
--&gt;</span></span>
+    <span class="code-tag">&lt;csv autogenColumns=<span class="code-quote">"false"</span>
delimiter=<span class="code-quote">"|"</span> configRef=<span class="code-quote">"csvConfig"</span>
strategyRef=<span class="code-quote">"excelStrategy"</span> /&gt;</span>
+  <span class="code-tag">&lt;/marshal&gt;</span>
+  <span class="code-tag">&lt;convertBodyTo type=<span class="code-quote">"java.lang.String"</span>
/&gt;</span>
+  <span class="code-tag">&lt;to uri=<span class="code-quote">"mock:result"</span>
/&gt;</span>
+<span class="code-tag">&lt;/route&gt;</span>
+
+<span class="code-tag">&lt;bean id=<span class="code-quote">"csvConfig"</span>
class=<span class="code-quote">"org.apache.commons.csv.writer.CSVConfig"</span>&gt;</span>
+  <span class="code-tag">&lt;property name=<span class="code-quote">"fields"</span>&gt;</span>
+    <span class="code-tag">&lt;list&gt;</span>
+      <span class="code-tag">&lt;bean class=<span class="code-quote">"org.apache.commons.csv.writer.CSVField"</span>&gt;</span>
+        <span class="code-tag">&lt;property name=<span class="code-quote">"name"</span>
value=<span class="code-quote">"orderId"</span> /&gt;</span>
+      <span class="code-tag">&lt;/bean&gt;</span>
+      <span class="code-tag">&lt;bean class=<span class="code-quote">"org.apache.commons.csv.writer.CSVField"</span>&gt;</span>
+        <span class="code-tag">&lt;property name=<span class="code-quote">"name"</span>
value=<span class="code-quote">"amount"</span> /&gt;</span>
+      <span class="code-tag">&lt;/bean&gt;</span>
+    <span class="code-tag">&lt;/list&gt;</span>
+  <span class="code-tag">&lt;/property&gt;</span>
+<span class="code-tag">&lt;/bean&gt;</span>
+
+<span class="code-tag">&lt;bean id=<span class="code-quote">"excelStrategy"</span>
class=<span class="code-quote">"org.springframework.beans.factory.config.FieldRetrievingFactoryBean"</span>&gt;</span>
+  <span class="code-tag">&lt;property name=<span class="code-quote">"staticField"</span>
value=<span class="code-quote">"org.apache.commons.csv.CSVStrategy.EXCEL_STRATEGY"</span>
/&gt;</span>
+<span class="code-tag">&lt;/bean&gt;</span>
+</pre>
+</div></div>
+
 <h3><a shape="rect" name="BookInOnePage-Dependencies"></a>Dependencies</h3>
 
 <p>To use CSV in your camel routes you need to add the a dependency on <b>camel-csv</b>
which implements this data format. </p>

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

Modified: websites/production/camel/content/csv.html
==============================================================================
--- websites/production/camel/content/csv.html (original)
+++ websites/production/camel/content/csv.html Mon Mar 19 11:21:55 2012
@@ -255,6 +255,42 @@ from(<span class="code-quote">"direct:st
 </pre>
 </div></div>
 
+<h3><a shape="rect" name="CSV-UsingautogenColumns%2CconfigRefandstrategyRefattributesinsideXMLDSL"></a>Using
autogenColumns, configRef and strategyRef attributes inside XML DSL</h3>
+<p><b>Available as of Camel 2.9.2 / 2.10</b></p>
+
+<p>You can customize the CSV <a shape="rect" href="data-format.html" title="Data
Format">Data Format</a> to make use of your own CVSConfig and/or CVSStrategy. Also
note that the default value for autogenColumns is true. The following example should illustrates
this.</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+<span class="code-tag">&lt;route&gt;</span>
+  <span class="code-tag">&lt;from uri=<span class="code-quote">"direct:start"</span>
/&gt;</span>
+  <span class="code-tag">&lt;marshal&gt;</span>
+    <span class="code-tag"><span class="code-comment">&lt;!-- make use of
a strategy other than the default one which is 'org.apache.commons.csv.CSVStrategy.DEFAULT_STRATEGY'
--&gt;</span></span>
+    <span class="code-tag">&lt;csv autogenColumns=<span class="code-quote">"false"</span>
delimiter=<span class="code-quote">"|"</span> configRef=<span class="code-quote">"csvConfig"</span>
strategyRef=<span class="code-quote">"excelStrategy"</span> /&gt;</span>
+  <span class="code-tag">&lt;/marshal&gt;</span>
+  <span class="code-tag">&lt;convertBodyTo type=<span class="code-quote">"java.lang.String"</span>
/&gt;</span>
+  <span class="code-tag">&lt;to uri=<span class="code-quote">"mock:result"</span>
/&gt;</span>
+<span class="code-tag">&lt;/route&gt;</span>
+
+<span class="code-tag">&lt;bean id=<span class="code-quote">"csvConfig"</span>
class=<span class="code-quote">"org.apache.commons.csv.writer.CSVConfig"</span>&gt;</span>
+  <span class="code-tag">&lt;property name=<span class="code-quote">"fields"</span>&gt;</span>
+    <span class="code-tag">&lt;list&gt;</span>
+      <span class="code-tag">&lt;bean class=<span class="code-quote">"org.apache.commons.csv.writer.CSVField"</span>&gt;</span>
+        <span class="code-tag">&lt;property name=<span class="code-quote">"name"</span>
value=<span class="code-quote">"orderId"</span> /&gt;</span>
+      <span class="code-tag">&lt;/bean&gt;</span>
+      <span class="code-tag">&lt;bean class=<span class="code-quote">"org.apache.commons.csv.writer.CSVField"</span>&gt;</span>
+        <span class="code-tag">&lt;property name=<span class="code-quote">"name"</span>
value=<span class="code-quote">"amount"</span> /&gt;</span>
+      <span class="code-tag">&lt;/bean&gt;</span>
+    <span class="code-tag">&lt;/list&gt;</span>
+  <span class="code-tag">&lt;/property&gt;</span>
+<span class="code-tag">&lt;/bean&gt;</span>
+
+<span class="code-tag">&lt;bean id=<span class="code-quote">"excelStrategy"</span>
class=<span class="code-quote">"org.springframework.beans.factory.config.FieldRetrievingFactoryBean"</span>&gt;</span>
+  <span class="code-tag">&lt;property name=<span class="code-quote">"staticField"</span>
value=<span class="code-quote">"org.apache.commons.csv.CSVStrategy.EXCEL_STRATEGY"</span>
/&gt;</span>
+<span class="code-tag">&lt;/bean&gt;</span>
+</pre>
+</div></div>
+
 <h3><a shape="rect" name="CSV-Dependencies"></a>Dependencies</h3>
 
 <p>To use CSV in your camel routes you need to add the a dependency on <b>camel-csv</b>
which implements this data format. </p>



Mime
View raw message