Modified: websites/production/camel/content/book-cookbook.html
==============================================================================
--- websites/production/camel/content/book-cookbook.html (original)
+++ websites/production/camel/content/book-cookbook.html Thu Sep 14 19:25:46 
2017
@@ -199,7 +199,7 @@ public class MySimpleIdGenerator {
 
 <p>And finally we just need to remember to have our bean registered in the 
Spring <a shape="rect" href="registry.html">Registry</a>:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[
    &lt;bean id=&quot;myCorrelationIdGenerator&quot; 
class=&quot;com.mycompany.MySimpleIdGenerator&quot;/&gt;
 ]]></script>
 </div></div>
@@ -271,7 +271,7 @@ public class MySimpleIdGenerator {
 <p>For example to inject a bean named foo, you can enlist the bean in the <a 
shape="rect" href="registry.html">Registry</a> such as in a Spring XML file:</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[
 &lt;bean id=&quot;foo&quot; class=&quot;com.foo.MyFooBean&quot;/&gt;
 ]]></script>
 </div></div>
@@ -451,7 +451,7 @@ public class MySimpleIdGenerator {
 
 <p>And finally we just need to remember to have our bean registered in the 
Spring <a shape="rect" href="registry.html">Registry</a>:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[
    &lt;bean id=&quot;myCorrelationIdGenerator&quot; 
class=&quot;com.mycompany.MySimpleIdGenerator&quot;/&gt;
 ]]></script>
 </div></div>
@@ -512,7 +512,7 @@ from(uri).bean(theBean, &quot;methodName
 
 <p>The consumer above will only be created for the <a shape="rect" 
href="camelcontext.html">CamelContext</a> that have the context id = 
<code>camel-1</code>. You set this id in the XML tag:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[
 &lt;camelContext id=&quot;camel-1&quot; ...&gt;
 ]]></script>
 </div></div>
@@ -577,7 +577,7 @@ public class MyService {
 
 <p>If you define the bean in Spring XML or Blueprint, then you can configure 
the property as follows:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[
 &lt;bean id=&quot;myService&quot; class=&quot;com.foo.MyService&quot;&gt;
   &lt;property name=&quot;serviceEndpoint&quot; 
value=&quot;activemq:queue:foo&quot;/&gt;
 &lt;/bean&gt;
@@ -674,7 +674,7 @@ public class RouterBean {
 <p>For example if the above bean is configured in <a shape="rect" 
href="spring.html">Spring</a> when using a 
<strong>&lt;camelContext&gt;</strong> element as follows</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
 &lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot;
        xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
@@ -1110,7 +1110,7 @@ public class MyCamelTest extends Abstrac
 
 <p>Maven users will need to add the following dependency to their 
<code>pom.xml</code> for this component:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[
 &lt;dependency&gt;
     &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
     &lt;artifactId&gt;camel-guice&lt;/artifactId&gt;

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 Thu Sep 14 
19:25:46 2017
@@ -259,7 +259,7 @@ from(&quot;activemq:My.Queue&quot;).
 <p>If you use maven you could just add the following to your pom.xml, 
substituting the version number for the latest &amp; greatest release (see <a 
shape="rect" href="download.html">the download page for the latest 
versions</a>).</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[
 &lt;dependency&gt;
   &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
   &lt;artifactId&gt;camel-xmlbeans&lt;/artifactId&gt;
@@ -367,7 +367,7 @@ from(&quot;direct:start&quot;)
     .marshal(new CsvDataFormat().setDelimiter(&#39;|&#39;))
     .to(&quot;mock:result&quot;)]]></script>
 </div></div></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><span>or this XML route definition</span></td><td 
colspan="1" rowspan="1" class="confluenceTd"><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[&lt;route&gt;
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[&lt;route&gt;
   &lt;from uri=&quot;direct:start&quot; /&gt;
   &lt;marshal&gt;
     &lt;csv delimiter=&quot;|&quot; /&gt;
@@ -377,7 +377,7 @@ from(&quot;direct:start&quot;)
 </div></div></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><span>then it will produce</span></td><td colspan="1" 
rowspan="1" class="confluenceTd"><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <script class="brush: text; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[abc|123]]></script>
 </div></div></td></tr></tbody></table></div><h3 
id="BookDataFormatAppendix-UsingautogenColumns,configRefandstrategyRefattributesinsideXMLDSL">Using
 autogenColumns, configRef and strategyRef attributes inside XML 
DSL</h3><p><strong>Available as of Camel 2.9.2 / 2.10 and deleted for Camel 
2.15</strong></p><p>You can customize the CSV <a shape="rect" 
href="data-format.html">Data Format</a> to make use of your own 
<code>CSVConfig</code> and/or <code>CSVStrategy</code>. Also note that the 
default value of the <code>autogenColumns</code> option is true. The following 
example should illustrate this customization.</p><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[&lt;route&gt;
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[&lt;route&gt;
   &lt;from uri=&quot;direct:start&quot; /&gt;
   &lt;marshal&gt;
     &lt;!-- make use of a strategy other than the default one which is 
&#39;org.apache.commons.csv.CSVStrategy.DEFAULT_STRATEGY&#39; --&gt;
@@ -405,7 +405,7 @@ from(&quot;direct:start&quot;)
 &lt;/bean&gt;
 ]]></script>
 </div></div><h3 
id="BookDataFormatAppendix-UsingskipFirstLineoptionwhileunmarshaling">Using 
skipFirstLine option while unmarshaling</h3><p><strong>Available as of Camel 
2.10 and deleted for Camel 2.15</strong></p><p>You can instruct the CSV <a 
shape="rect" href="data-format.html">Data Format</a> to skip the first line 
which contains the CSV headers. Using the Spring/XML DSL:</p><div class="code 
panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[&lt;route&gt;
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[&lt;route&gt;
   &lt;from uri=&quot;direct:start&quot; /&gt;
   &lt;unmarshal&gt;
     &lt;csv skipFirstLine=&quot;true&quot; /&gt;
@@ -422,7 +422,7 @@ from(&quot;direct:start&quot;)
 .to(&quot;bean:myCsvHandler?method=doHandleCsv&quot;);
 ]]></script>
 </div></div><h3 
id="BookDataFormatAppendix-Unmarshalingwithapipeasdelimiter">Unmarshaling with 
a pipe as delimiter</h3><p>Using the Spring/XML DSL:</p><div class="code panel 
pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[&lt;route&gt;
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[&lt;route&gt;
   &lt;from uri=&quot;direct:start&quot; /&gt;
   &lt;unmarshal&gt;
     &lt;csv delimiter=&quot;|&quot; /&gt;
@@ -1643,7 +1643,7 @@ context.addRoutes(new RouteBuilder() {
 }
 ]]></script>
 </div></div><h5 id="BookDataFormatAppendix-SpringXML">Spring XML</h5><p>A 
namespace prefix that is defined as part of the <code>camelContext</code> 
definition can be re-used in context within the data format 
<code>secureTag</code> attribute of the <code>secureXML</code> element.</p><div 
class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[&lt;camelContext 
id=&quot;springXmlSecurityDataFormatTestCamelContext&quot; 
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[&lt;camelContext 
id=&quot;springXmlSecurityDataFormatTestCamelContext&quot; 
               xmlns=&quot;http://camel.apache.org/schema/spring&quot;
               
xmlns:cheese=&quot;http://cheese.xmlsecurity.camel.apache.org/&quot;&gt;        
     &lt;route&gt;
@@ -1655,7 +1655,7 @@ context.addRoutes(new RouteBuilder() {
             ...
 ]]></script>
 </div></div><h4 id="BookDataFormatAppendix-AsymmetricKeyEncryption">Asymmetric 
Key Encryption</h4><h5 id="BookDataFormatAppendix-SpringXMLSender">Spring XML 
Sender</h5><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[&lt;!--  trust store configuration --&gt;     
                     
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[&lt;!--  trust store configuration --&gt;     
                     
 &lt;camel:keyStoreParameters id=&quot;trustStoreParams&quot; 
resource=&quot;./sender.ts&quot; password=&quot;password&quot;/&gt;
 
 &lt;camelContext id=&quot;springXmlSecurityDataFormatTestCamelContext&quot; 
@@ -1674,7 +1674,7 @@ context.addRoutes(new RouteBuilder() {
             ...
 ]]></script>
 </div></div><h5 id="BookDataFormatAppendix-SpringXMLRecipient">Spring XML 
Recipient</h5><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[ 
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[ 
 &lt;!--  key store configuration --&gt;
 &lt;camel:keyStoreParameters id=&quot;keyStoreParams&quot; 
resource=&quot;./recipient.ks&quot; password=&quot;password&quot; /&gt;
 
@@ -2019,7 +2019,7 @@ from(&quot;direct:start&quot;)
 
 <p>When using XML DSL there is a version attribute you can set on the 
&lt;soapjaxb&gt; element.</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[
     &lt;!-- Defining a ServiceInterfaceStrategy for retrieving the element 
name when marshalling --&gt;
     &lt;bean id=&quot;myNameStrategy&quot; 
class=&quot;org.apache.camel.dataformat.soap.name.ServiceInterfaceStrategy&quot;&gt;
        &lt;constructor-arg 
value=&quot;com.example.customerservice.CustomerService&quot;/&gt;
@@ -2030,7 +2030,7 @@ from(&quot;direct:start&quot;)
 
 <p>And in the Camel route</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[
 &lt;route&gt;
   &lt;from uri=&quot;direct:start&quot;/&gt;
   &lt;marshal&gt;
@@ -2157,7 +2157,7 @@ from(&quot;jms://queue:customerServiceQu
 <p>To use the SOAP dataformat in your camel routes you need to add the 
following dependency to your pom.</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[
 &lt;dependency&gt;
   &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
   &lt;artifactId&gt;camel-soap&lt;/artifactId&gt;
@@ -2232,7 +2232,7 @@ from("direct:start")
 &lt;/dependency&gt;
 </plain-text-body><h3 id="BookDataFormatAppendix-SeeAlso">See 
Also</h3><ul><li><a shape="rect" href="data-format.html">Data 
Format</a></li><li><a shape="rect" href="crypto-digital-signatures.html">Crypto 
(Digital Signatures)</a></li><li><a shape="rect" class="external-link" 
href="http://www.bouncycastle.org/java.html"; 
rel="nofollow">http://www.bouncycastle.org/java.html</a></li></ul>
 <h2 id="BookDataFormatAppendix-SyslogDataFormat">Syslog 
DataFormat</h2><p><strong>Available as of Camel 2.6</strong></p><p>The 
<strong>syslog</strong> dataformat is used for working with <a shape="rect" 
class="external-link" href="http://www.ietf.org/rfc/rfc3164.txt"; 
rel="nofollow">RFC3164</a>&#160;and RFC5424 messages.</p><p>This component 
supports the following:</p><ul class="alternate"><li>UDP consumption of syslog 
messages</li><li>Agnostic data format using either plain String objects or 
SyslogMessage model objects.</li><li><a shape="rect" 
href="type-converter.html">Type Converter</a> from/to SyslogMessage and 
String</li><li>Integration with the <a shape="rect" 
href="mina.html">camel-mina</a> component.</li><li>Integration with the <a 
shape="rect" href="netty.html">camel-netty</a> component.</li><li><strong>Camel 
2.14:</strong> Encoder and decoder for the&#160;<a shape="rect" 
href="netty.html">camel-netty</a>&#160;component.</li><li><strong>Camel 
2.14:</strong>&#160;Support for 
 RFC5424 also.</li></ul><p>Maven users will need to add the following 
dependency to their <code>pom.xml</code> for this component:</p><div 
class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[&lt;dependency&gt;
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[&lt;dependency&gt;
     &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
     &lt;artifactId&gt;camel-syslog&lt;/artifactId&gt;
     &lt;version&gt;x.x.x&lt;/version&gt;
@@ -2240,7 +2240,7 @@ from("direct:start")
 &lt;/dependency&gt;
 ]]></script>
 </div></div><h3 id="BookDataFormatAppendix-RFC3164Syslogprotocol">RFC3164 
Syslog protocol</h3><p>Syslog uses the user datagram protocol (UDP) <a 
shape="rect" class="unresolved" href="#">1</a> as its underlying transport 
layer mechanism. <br clear="none"> The UDP port that has been assigned to 
syslog is 514.</p><p>To expose a Syslog listener service we reuse the existing 
<a shape="rect" href="mina.html">camel-mina</a> component or <a shape="rect" 
href="netty.html">camel-netty</a> where we just use the 
<code>Rfc3164SyslogDataFormat</code> to marshal and unmarshal messages. Notice 
that from&#160;<strong>Camel 2.14</strong> onwards the syslog dataformat is 
renamed to <code>SyslogDataFormat</code>.</p><h3 
id="BookDataFormatAppendix-RFC5424Syslogprotocol">RFC5424 Syslog 
protocol</h3><p><strong>Available as of Camel 2.14</strong></p><p>To expose a 
Syslog listener service we reuse the existing&#160;<a shape="rect" 
href="mina.html">camel-mina</a>&#160;component or&#160;<a shape="rect" href="
 netty.html">camel-netty</a>&#160;where we just use 
the&#160;<code>SyslogDataFormat</code>&#160;to marshal and unmarshal 
messages</p><h4 id="BookDataFormatAppendix-ExposingaSysloglistener">Exposing a 
Syslog listener</h4><p>In our Spring XML file, we configure an endpoint to 
listen for udp messages on port 10514, note that in netty we disable the 
defaultCodec, this <br clear="none"> will allow a fallback to a 
NettyTypeConverter and delivers the message as an InputStream:</p><div 
class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[&lt;camelContext id=&quot;myCamel&quot; 
xmlns=&quot;http://camel.apache.org/schema/spring&quot;&gt;
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[&lt;camelContext id=&quot;myCamel&quot; 
xmlns=&quot;http://camel.apache.org/schema/spring&quot;&gt;
 
     &lt;dataFormats&gt;
           &lt;syslog id=&quot;mySyslog&quot;/&gt;
@@ -2255,7 +2255,7 @@ from("direct:start")
 &lt;/camelContext&gt;
 ]]></script>
 </div></div><p>The same route using <a shape="rect" 
href="mina.html">camel-mina</a></p><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[&lt;camelContext id=&quot;myCamel&quot; 
xmlns=&quot;http://camel.apache.org/schema/spring&quot;&gt;
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[&lt;camelContext id=&quot;myCamel&quot; 
xmlns=&quot;http://camel.apache.org/schema/spring&quot;&gt;
 
     &lt;dataFormats&gt;
           &lt;syslog id=&quot;mySyslog&quot;/&gt;
@@ -2270,7 +2270,7 @@ from("direct:start")
 &lt;/camelContext&gt;
 ]]></script>
 </div></div><h4 
id="BookDataFormatAppendix-Sendingsyslogmessagestoaremotedestination">Sending 
syslog messages to a remote destination</h4><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[&lt;camelContext id=&quot;myCamel&quot; 
xmlns=&quot;http://camel.apache.org/schema/spring&quot;&gt;
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[&lt;camelContext id=&quot;myCamel&quot; 
xmlns=&quot;http://camel.apache.org/schema/spring&quot;&gt;
 
     &lt;dataFormats&gt;
         &lt;syslog id=&quot;mySyslog&quot;/&gt;


Reply via email to