camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r891014 [1/3] - in /websites/production/camel/content: ./ cache/
Date Thu, 19 Dec 2013 02:22:12 GMT
Author: buildbot
Date: Thu Dec 19 02:22:12 2013
New Revision: 891014

Log:
Production update by buildbot for camel

Added:
    websites/production/camel/content/cache/main.pageCache   (with props)
Modified:
    websites/production/camel/content/avro.html
    websites/production/camel/content/book-component-appendix.html
    websites/production/camel/content/book-cookbook.html
    websites/production/camel/content/book-dataformat-appendix.html
    websites/production/camel/content/book-in-one-page.html
    websites/production/camel/content/book-pattern-appendix.html
    websites/production/camel/content/book-tutorials.html
    websites/production/camel/content/camel-30-ideas.html
    websites/production/camel/content/camel-jmx.html
    websites/production/camel/content/cxf.html
    websites/production/camel/content/disruptor.html
    websites/production/camel/content/http.html
    websites/production/camel/content/jt400.html
    websites/production/camel/content/scala-dsl-eip.html
    websites/production/camel/content/siteindex.html
    websites/production/camel/content/spring-testing.html
    websites/production/camel/content/tutorial-axis-camel.html
    websites/production/camel/content/tutorial-jmsremoting.html
    websites/production/camel/content/tutorial-osgi-camel-part2c.html
    websites/production/camel/content/user-guide.html
    websites/production/camel/content/zip-dataformat.html
    websites/production/camel/content/zip-file-dataformat.html

Modified: websites/production/camel/content/avro.html
==============================================================================
--- websites/production/camel/content/avro.html (original)
+++ websites/production/camel/content/avro.html Thu Dec 19 02:22:12 2013
@@ -254,11 +254,11 @@ avro:[transport]:[host]:[port][/messageN
 
 <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;route&gt;
-Ê Ê Ê Ê Ê Ê &lt;from uri=&quot;direct:start&quot;/&gt;
-Ê Ê Ê Ê Ê Ê &lt;to uri=&quot;avro:http:localhost:{{avroport}}/put?protocolClassName=org.apache.camel.avro.generated.KeyValueProtocol&quot;/&gt;
-Ê Ê Ê Ê Ê Ê &lt;to uri=&quot;log:avro&quot;/&gt;
-Ê Ê Ê Ê &lt;/route&gt;
+        &lt;route&gt;
+            &lt;from uri=&quot;direct:start&quot;/&gt;
+            &lt;to uri=&quot;avro:http:localhost:{{avroport}}/put?protocolClassName=org.apache.camel.avro.generated.KeyValueProtocol&quot;/&gt;
+            &lt;to uri=&quot;log:avro&quot;/&gt;
+        &lt;/route&gt;
 ]]></script>
 </div></div>
 <p>An example of consuming messages using camel avro consumers via netty:</p>

Modified: websites/production/camel/content/book-component-appendix.html
==============================================================================
--- websites/production/camel/content/book-component-appendix.html (original)
+++ websites/production/camel/content/book-component-appendix.html Thu Dec 19 02:22:12 2013
@@ -1930,11 +1930,11 @@ template.send(&quot;direct:alias-verify&
 <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>
 
 <style type="text/css">/*<![CDATA[*/
-div.rbtoc1387228761806 {padding: 0px;}
-div.rbtoc1387228761806 ul {list-style: disc;margin-left: 0px;}
-div.rbtoc1387228761806 li {margin-left: 0px;padding-left: 0px;}
+div.rbtoc1387419600208 {padding: 0px;}
+div.rbtoc1387419600208 ul {list-style: disc;margin-left: 0px;}
+div.rbtoc1387419600208 li {margin-left: 0px;padding-left: 0px;}
 
-/*]]>*/</style><div class="toc-macro rbtoc1387228761806">
+/*]]>*/</style><div class="toc-macro rbtoc1387419600208">
 <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>
@@ -7037,71 +7037,33 @@ hibernate:[entityClassName][?options]
 <h3 id="BookComponentAppendix-SeeAlso.21">See Also</h3>
 <ul><li><a shape="rect" href="configuring-camel.html">Configuring Camel</a></li><li><a shape="rect" href="component.html">Component</a></li><li><a shape="rect" href="endpoint.html">Endpoint</a></li><li><a shape="rect" href="getting-started.html">Getting Started</a></li></ul>
 <ul class="alternate"><li><a shape="rect" href="hibernate-example.html">Hibernate Example</a></li></ul>
-<h2 id="BookComponentAppendix-HL7Component">HL7 Component</h2>
-
-<p>The <strong>hl7</strong> component is used for working with the HL7 MLLP protocol and <a shape="rect" class="external-link" href="http://www.hl7.org/" rel="nofollow">HL7 v2 messages</a> using the <a shape="rect" class="external-link" href="http://hl7api.sourceforge.net" rel="nofollow">HAPI library</a>.</p>
-
-<p>This component supports the following:</p>
-<ul class="alternate"><li>HL7 MLLP codec for <a shape="rect" class="external-link" href="http://mina.apache.org/">Mina</a></li><li>Agnostic data format using either plain String objects or HAPI HL7 model objects.</li><li><a shape="rect" href="type-converter.html">Type Converter</a> from/to HAPI and String</li><li>HL7 DataFormat using HAPI library</li><li>Even more ease-of-use as it's integrated well with the <a shape="rect" href="mina.html">camel-mina</a> (<strong>Camel 2.11</strong>: <a shape="rect" href="mina2.html">camel-mina2</a> ) component.</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="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
-&lt;dependency&gt;
+<h2 id="BookComponentAppendix-HL7Component">HL7 Component</h2><p>The <strong>hl7</strong> component is used for working with the HL7 MLLP protocol and <a shape="rect" class="external-link" href="http://www.hl7.org/" rel="nofollow">HL7 v2 messages</a> using the <a shape="rect" class="external-link" href="http://hl7api.sourceforge.net" rel="nofollow">HAPI library</a>.</p><p>This component supports the following:</p><ul class="alternate"><li>HL7 MLLP codec for <a shape="rect" class="external-link" href="http://mina.apache.org/">Mina</a></li><li>Agnostic data format using either plain String objects or HAPI HL7 model objects.</li><li><a shape="rect" href="type-converter.html">Type Converter</a> from/to HAPI and String</li><li>HL7 DataFormat using HAPI library</li><li>Even more ease-of-use as it's integrated well with the <a shape="rect" href="mina.html">camel-mina</a> (<strong>Camel 2.11</strong>: <a shape="rect" href="mina2.html">camel-mina2</a> ) component.</li></ul><p>Maven users wil
 l 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="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[&lt;dependency&gt;
     &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
     &lt;artifactId&gt;camel-hl7&lt;/artifactId&gt;
     &lt;version&gt;x.x.x&lt;/version&gt;
     &lt;!-- use the same version as your Camel core version --&gt;
 &lt;/dependency&gt;
 ]]></script>
-</div></div>
-
-<h3 id="BookComponentAppendix-HL7MLLPprotocol">HL7 MLLP protocol</h3>
-<p>HL7 is often used with the HL7 MLLP protocol that is a text based TCP socket based protocol. This component ships with a Mina Codec that conforms to the MLLP protocol so you can easily expose a HL7 listener that accepts HL7 requests over the TCP transport. </p>
-
-<p>To expose a HL7 listener service we reuse the existing mina/mina2 component where we just use the <code>HL7MLLPCodec</code> as codec.</p>
-
-<p>The HL7 MLLP codec has the following options:</p>
-<div class="confluenceTableSmall">
+</div></div><h3 id="BookComponentAppendix-HL7MLLPprotocol">HL7 MLLP protocol</h3><p>HL7 is often used with the HL7 MLLP protocol that is a text based TCP socket based protocol. This component ships with a Mina Codec that conforms to the MLLP protocol so you can easily expose a HL7 listener that accepts HL7 requests over the TCP transport.</p><p>To expose a HL7 listener service we reuse the existing mina/mina2 component where we just use the <code>HL7MLLPCodec</code> as codec.</p><p>The HL7 MLLP codec has the following options:</p><div class="confluenceTableSmall">
 <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 Value </p></th><th colspan="1" rowspan="1" class="confluenceTh"><p> Description </p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>startByte</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>0x0b</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> The start byte spanning the HL7 payload. </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>endByte1</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>0x1c</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> The first end byte spanning the HL7 payload.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>endByte2</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>0x0d</code> </p></td><td colsp
 an="1" rowspan="1" class="confluenceTd"><p> The 2nd end byte spanning the HL7 payload. </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>charset</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> JVM Default </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> The encoding (is a <a shape="rect" class="external-link" href="http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html" rel="nofollow">charset name</a>) to use for the codec. If not provided, Camel will use the <a shape="rect" class="external-link" href="http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html#defaultCharset()" rel="nofollow">JVM default Charset</a>. </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>convertLFtoCR</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>true</code> (<strong>Camel 2.11</strong>:<code>false</code>) </p></td><td colspan="1" rowspan="1" class="confluenceTd
 "><p> Will convert <code>\n</code> to <code>\r</code> (<code>0x0d</code>, 13 decimal) as HL7 stipulates <code>\r</code> as segment terminators. The HAPI library requires the use of <code>\r</code>. </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>validate</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>true</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Whether HAPI Parser should validate or not. </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>parser</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>ca.uhn.hl7v2.parser.PipeParser</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel 2.11:</strong> To use a custom parser. Must be of type <code>ca.uhn.hl7v2.parser.Parser</code>. </p></td></tr></tbody></table>
-</div>
-
-<h4 id="BookComponentAppendix-ExposingaHL7listener">Exposing a HL7 listener</h4>
-<p>In our Spring XML file, we configure an endpoint to listen for HL7 requests using TCP:</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 id=&quot;hl7listener&quot; uri=&quot;mina:tcp://localhost:8888?sync=true&amp;amp;codec=#hl7codec&quot;/&gt;
+</div><h4 id="BookComponentAppendix-ExposingaHL7listener">Exposing a HL7 listener</h4><p>In our Spring XML file, we configure an endpoint to listen for HL7 requests using TCP:</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 id=&quot;hl7listener&quot; uri=&quot;mina:tcp://localhost:8888?sync=true&amp;amp;codec=#hl7codec&quot;/&gt;
         &lt;!-- Camel 2.11: uri=&quot;mina2:tcp... --&gt;
 ]]></script>
-</div></div>
-<p>Notice that we use TCP on <code>localhost</code> on port <code>8888</code>. We use <strong>sync=true</strong> to indicate that this listener is synchronous and therefore will return a HL7 response to the caller. Then we setup mina to use our HL7 codec with <strong>codec=#hl7codec</strong>. Notice that <code>hl7codec</code> is just a Spring bean ID, so we could have named it <code>mygreatcodecforhl7</code> or whatever. The codec is also set up in the Spring XML file:</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;hl7codec&quot; class=&quot;org.apache.camel.component.hl7.HL7MLLPCodec&quot;&gt;
+</div></div><p>Notice that we use TCP on <code>localhost</code> on port <code>8888</code>. We use <strong>sync=true</strong> to indicate that this listener is synchronous and therefore will return a HL7 response to the caller. Then we setup mina to use our HL7 codec with <strong>codec=#hl7codec</strong>. Notice that <code>hl7codec</code> is just a Spring bean ID, so we could have named it <code>mygreatcodecforhl7</code> or whatever. The codec is also set up in the Spring XML file:</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;hl7codec&quot; class=&quot;org.apache.camel.component.hl7.HL7MLLPCodec&quot;&gt;
         &lt;property name=&quot;charset&quot; value=&quot;iso-8859-1&quot;/&gt;
     &lt;/bean&gt;
 ]]></script>
-</div></div>
-<p>Above we also configure the charset encoding to use (<code>iso-8859-1</code>).</p>
-
-<p>The endpoint <strong>hl7listener</strong> can then be used in a route as a consumer, as this Java DSL example illustrates:</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[
-    from(&quot;hl7listener&quot;).to(&quot;patientLookupService&quot;);
+</div></div><p>Above we also configure the charset encoding to use (<code>iso-8859-1</code>).</p><p>The endpoint <strong>hl7listener</strong> can then be used in a route as a consumer, as this Java DSL example illustrates:</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[    from(&quot;hl7listener&quot;).to(&quot;patientLookupService&quot;);
 ]]></script>
-</div></div>
-<p>This is a very simple route that will listen for HL7 and route it to a service named <strong>patientLookupService</strong> that is also a Spring bean ID we have configured in the Spring XML as:</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;patientLookupService&quot; class=&quot;com.mycompany.healthcare.service.PatientLookupService&quot;/&gt;
+</div></div><p>This is a very simple route that will listen for HL7 and route it to a service named <strong>patientLookupService</strong> that is also a Spring bean ID we have configured in the Spring XML as:</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;patientLookupService&quot; class=&quot;com.mycompany.healthcare.service.PatientLookupService&quot;/&gt;
 ]]></script>
-</div></div>
-<p>Another powerful feature of Camel is that we can have our business logic in POJO classes that is not tied to Camel as shown here:</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[
-
-import ca.uhn.hl7v2.HL7Exception;
+</div></div><p>Another powerful feature of Camel is that we can have our business logic in POJO classes that is not tied to Camel as shown here:</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[import ca.uhn.hl7v2.HL7Exception;
 import ca.uhn.hl7v2.model.Message;
 import ca.uhn.hl7v2.model.v24.segment.QRD;
 
@@ -7115,53 +7077,23 @@ public class PatientLookupService {
         return response
     }
 ]]></script>
-</div></div>
-<p>Notice that this class uses just imports from the HAPI library and <strong>not</strong> from Camel.</p>
-
-<h3 id="BookComponentAppendix-HL7Modelusingjava.lang.String">HL7 Model using java.lang.String</h3>
-<p>The HL7MLLP codec uses plain <code>String</code> as its data format. Camel uses its <a shape="rect" href="type-converter.html">Type Converter</a> to convert to/from strings to the HAPI HL7 model objects. However, you can use plain <code>String</code> objects if you prefer, for instance if you wish to parse the data yourself.</p>
-
-<p>See samples for such an example.</p>
-
-<h3 id="BookComponentAppendix-HL7v2ModelusingHAPI">HL7v2 Model using HAPI</h3>
-<p>The HL7v2 model uses Java objects from the HAPI library. Using this library, we can encode and decode from the EDI format (ER7) that is mostly used with HL7v2.<br clear="none">
-With this model you can code with Java objects instead of the EDI based HL7 format that can be hard for humans to read and understand.</p>
-
-<p>The sample below is a request to lookup a patient with the patient ID <code>0101701234</code>.</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[
-MSH|^~\\&amp;|MYSENDER|MYRECEIVER|MYAPPLICATION||200612211200||QRY^A19|1234|P|2.4
+</div></div><p>Notice that this class uses just imports from the HAPI library and <strong>not</strong> from Camel.</p><h3 id="BookComponentAppendix-HL7Modelusingjava.lang.String">HL7 Model using java.lang.String</h3><p>The HL7MLLP codec uses plain <code>String</code> as its data format. Camel uses its <a shape="rect" href="type-converter.html">Type Converter</a> to convert to/from strings to the HAPI HL7 model objects. However, you can use plain <code>String</code> objects if you prefer, for instance if you wish to parse the data yourself.</p><p>See samples for such an example.</p><h3 id="BookComponentAppendix-HL7v2ModelusingHAPI">HL7v2 Model using HAPI</h3><p>The HL7v2 model uses Java objects from the HAPI library. Using this library, we can encode and decode from the EDI format (ER7) that is mostly used with HL7v2.<br clear="none"> With this model you can code with Java objects instead of the EDI based HL7 format that can be hard for humans to read and understand.</p><p>The sample
  below is a request to lookup a patient with the patient ID <code>0101701234</code>.</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[MSH|^~\\&amp;|MYSENDER|MYRECEIVER|MYAPPLICATION||200612211200||QRY^A19|1234|P|2.4
 QRD|200612211200|R|I|GetPatient|||1^RD|0101701234|DEM||
 ]]></script>
-</div></div>
-
-<p>Using the HL7 model we can work with the data as a <code>ca.uhn.hl7v2.model.Message</code> object.<br clear="none">
-To retrieve the patient ID in the message above, you can do this in Java code:</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[
-Message msg = exchange.getIn().getBody(Message.class);
+</div></div><p>Using the HL7 model we can work with the data as a <code>ca.uhn.hl7v2.model.Message</code> object.<br clear="none"> To retrieve the patient ID in the message above, you can do this in Java code:</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[Message msg = exchange.getIn().getBody(Message.class);
 QRD qrd = (QRD)msg.get(&quot;QRD&quot;);
 String patientId = qrd.getWhoSubjectFilter(0).getIDNumber().getValue();
 ]]></script>
-</div></div>
-
-<p>If you know the message type in advance, you can be more type-safe:</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[
-QRY_A19 msg = exchange.getIn().getBody(QRY_A19.class);
+</div></div><p>If you know the message type in advance, you can be more type-safe:</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[QRY_A19 msg = exchange.getIn().getBody(QRY_A19.class);
 String patientId = msg.getQRD().getWhoSubjectFilter(0).getIDNumber().getValue();
 ]]></script>
-</div></div>
-
-<p>Camel has built-in type converters, so when this operation is invoked:</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[
-Message msg = exchange.getIn().getBody(Message.class);
+</div></div><p>Camel has built-in type converters, so when this operation is invoked:</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[Message msg = exchange.getIn().getBody(Message.class);
 ]]></script>
-</div></div>
-<p>Camel will convert the received HL7 data from <code>String</code> to <code>Message</code>. This is powerful when combined with the HL7 listener, then you as the end-user don't have to work with <code>byte[]</code>, <code>String</code> or any other simple object formats. You can just use the HAPI HL7v2 model objects.</p>
-
-<h3 id="BookComponentAppendix-HL7DataFormat">HL7 DataFormat</h3>
+</div></div><p>Camel will convert the received HL7 data from <code>String</code> to <code>Message</code>. This is powerful when combined with the HL7 listener, then you as the end-user don't have to work with <code>byte[]</code>, <code>String</code> or any other simple object formats. You can just use the HAPI HL7v2 model objects.</p><p></p><h3 id="BookComponentAppendix-HL7DataFormat">HL7 DataFormat</h3>
 <p>The <a shape="rect" href="hl7.html">HL7</a> component ships with a HL7 data format that can be used to format between <code>String</code> and HL7 model objects. </p>
 <ul class="alternate"><li><code>marshal</code> = from Message to byte stream (can be used when returning as response using the HL7 MLLP codec)</li><li><code>unmarshal</code> = from byte stream to Message (can be used when receiving streamed data from the HL7 MLLP</li></ul>
 
@@ -7214,38 +7146,13 @@ Then you don't need to create an instanc
                     </div>
     </div>
 
-
-
-<h3 id="BookComponentAppendix-MessageHeaders.5">Message Headers</h3>
-<p>The <strong>unmarshal</strong> operation adds these MSH fields as headers on the Camel message:</p>
-
-<div class="confluenceTableSmall">
+<h3 id="BookComponentAppendix-MessageHeaders.5">Message Headers</h3><p>The <strong>unmarshal</strong> operation adds these MSH fields as headers on the Camel message:</p><div class="confluenceTableSmall">
 <table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p> Key </p></th><th colspan="1" rowspan="1" class="confluenceTh"><p> MSH field </p></th><th colspan="1" rowspan="1" class="confluenceTh"><p> Example </p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>CamelHL7SendingApplication</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>MSH-3</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>MYSERVER</code> </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>CamelHL7SendingFacility</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>MSH-4</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>MYSERVERAPP</code> </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>CamelHL7ReceivingApplication</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>MSH-5</code> </p></td><
 td colspan="1" rowspan="1" class="confluenceTd"><p> <code>MYCLIENT</code> </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>CamelHL7ReceivingFacility</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>MSH-6</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>MYCLIENTAPP</code> </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>CamelHL7Timestamp</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>MSH-7</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>20071231235900</code> </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>CamelHL7Security</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>MSH-8</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>null</code> </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>CamelHL7MessageType</code> </p></
 td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>MSH-9-1</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>ADT</code> </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>CamelHL7TriggerEvent</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>MSH-9-2</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>A01</code> </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>CamelHL7MessageControl</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>MSH-10</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>1234</code> </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>CamelHL7ProcessingId</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>MSH-11</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>P</code> </p></td></tr><tr><td colspan="1" rowspan
 ="1" class="confluenceTd"><p> <code>CamelHL7VersionId</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>MSH-12</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>2.4</code> </p></td></tr></tbody></table>
-</div>
-
-<p>All headers are <code>String</code> types. If a header value is missing, its value is <code>null</code>.</p>
-
-<h3 id="BookComponentAppendix-Options.20">Options</h3>
-<p>The HL7 Data Format supports the following options:</p>
-<div class="confluenceTableSmall">
+</div><p>All headers are <code>String</code> types. If a header value is missing, its value is <code>null</code>.</p><h3 id="BookComponentAppendix-Options.20">Options</h3><p>The HL7 Data Format supports the following options:</p><div class="confluenceTableSmall">
 <table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p> Option </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>validate</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> true </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Whether the HAPI Parser should validate using the default validation rules. <strong>Camel 2.11:</strong> better use the <code>parser</code> option and initialize the parser with the desired HAPI <code>ValidationContext</code> </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>parser</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>ca.uhn.hl7v2.parser.GenericParser</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel 2.11:</strong> To use a cus
 tom parser. Must be of type <code>ca.uhn.hl7v2.parser.Parser</code>. Note that <code>GenericParser</code> also allows to parse XML-encoded HL7v2 messages. </p></td></tr></tbody></table>
 
-</div>
-
-<h3 id="BookComponentAppendix-Dependencies.2">Dependencies</h3>
-
-<p>To use HL7 in your Camel routes you'll need to add a dependency on <strong>camel-hl7</strong> listed above, which implements this data format. </p>
-
-<p>The HAPI library since Version 0.6 has been split into a <a shape="rect" class="external-link" href="http://repo1.maven.org/maven2/ca/uhn/hapi/hapi-base" rel="nofollow">base library</a> and several structure libraries, one for each HL7v2 message version:</p>
-
-<ul><li><a shape="rect" class="external-link" href="http://repo1.maven.org/maven2/ca/uhn/hapi/hapi-structures-v21" rel="nofollow">v2.1 structures library</a></li><li><a shape="rect" class="external-link" href="http://repo1.maven.org/maven2/ca/uhn/hapi/hapi-structures-v22" rel="nofollow">v2.2 structures library</a></li><li><a shape="rect" class="external-link" href="http://repo1.maven.org/maven2/ca/uhn/hapi/hapi-structures-v23" rel="nofollow">v2.3 structures library</a></li><li><a shape="rect" class="external-link" href="http://repo1.maven.org/maven2/ca/uhn/hapi/hapi-structures-v231" rel="nofollow">v2.3.1 structures library</a></li><li><a shape="rect" class="external-link" href="http://repo1.maven.org/maven2/ca/uhn/hapi/hapi-structures-v24" rel="nofollow">v2.4 structures library</a></li><li><a shape="rect" class="external-link" href="http://repo1.maven.org/maven2/ca/uhn/hapi/hapi-structures-v25" rel="nofollow">v2.5 structures library</a></li><li><a shape="rect" class="external-link" 
 href="http://repo1.maven.org/maven2/ca/uhn/hapi/hapi-structures-v251" rel="nofollow">v2.5.1 structures library</a></li><li><a shape="rect" class="external-link" href="http://repo1.maven.org/maven2/ca/uhn/hapi/hapi-structures-v26" rel="nofollow">v2.6 structures library</a></li></ul>
-
-
-<p>By default <code>camel-hl7</code> only references the HAPI <a shape="rect" class="external-link" href="http://repo1.maven.org/maven2/ca/uhn/hapi/hapi-base" rel="nofollow">base library</a>. Applications are responsible for including structure libraries themselves. For example, if a application works with HL7v2 message versions 2.4 and 2.5 then the following dependencies must be added:</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;dependency&gt;
+</div><h3 id="BookComponentAppendix-Dependencies.2">Dependencies</h3><p>To use HL7 in your Camel routes you'll need to add a dependency on <strong>camel-hl7</strong> listed above, which implements this data format.</p><p>The HAPI library since Version 0.6 has been split into a <a shape="rect" class="external-link" href="http://repo1.maven.org/maven2/ca/uhn/hapi/hapi-base" rel="nofollow">base library</a> and several structure libraries, one for each HL7v2 message version:</p><ul><li><a shape="rect" class="external-link" href="http://repo1.maven.org/maven2/ca/uhn/hapi/hapi-structures-v21" rel="nofollow">v2.1 structures library</a></li><li><a shape="rect" class="external-link" href="http://repo1.maven.org/maven2/ca/uhn/hapi/hapi-structures-v22" rel="nofollow">v2.2 structures library</a></li><li><a shape="rect" class="external-link" href="http://repo1.maven.org/maven2/ca/uhn/hapi/hapi-structures-v23" rel="nofollow">v2.3 structures library</a></li><li><a shape="rect" class="external-link
 " href="http://repo1.maven.org/maven2/ca/uhn/hapi/hapi-structures-v231" rel="nofollow">v2.3.1 structures library</a></li><li><a shape="rect" class="external-link" href="http://repo1.maven.org/maven2/ca/uhn/hapi/hapi-structures-v24" rel="nofollow">v2.4 structures library</a></li><li><a shape="rect" class="external-link" href="http://repo1.maven.org/maven2/ca/uhn/hapi/hapi-structures-v25" rel="nofollow">v2.5 structures library</a></li><li><a shape="rect" class="external-link" href="http://repo1.maven.org/maven2/ca/uhn/hapi/hapi-structures-v251" rel="nofollow">v2.5.1 structures library</a></li><li><a shape="rect" class="external-link" href="http://repo1.maven.org/maven2/ca/uhn/hapi/hapi-structures-v26" rel="nofollow">v2.6 structures library</a></li></ul><p>By default <code>camel-hl7</code> only references the HAPI <a shape="rect" class="external-link" href="http://repo1.maven.org/maven2/ca/uhn/hapi/hapi-base" rel="nofollow">base library</a>. Applications are responsible for including s
 tructure libraries themselves. For example, if a application works with HL7v2 message versions 2.4 and 2.5 then the following dependencies must be added:</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;dependency&gt;
     &lt;groupId&gt;ca.uhn.hapi&lt;/groupId&gt;
     &lt;artifactId&gt;hapi-structures-v24&lt;/artifactId&gt;
     &lt;version&gt;1.2&lt;/version&gt;
@@ -7258,30 +7165,15 @@ Then you don't need to create an instanc
     &lt;!-- use the same version as your hapi-base version --&gt;
 &lt;/dependency&gt;
 ]]></script>
-</div></div>
-
-<p>Alternatively, an OSGi bundle containing the base library, all structures libraries and required dependencies (on the bundle classpath) can be downloaded from the <a shape="rect" class="external-link" href="http://repo1.maven.org/maven2/ca/uhn/hapi/hapi-osgi-base" rel="nofollow">central Maven repository</a>. </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;dependency&gt;
+</div></div><p>Alternatively, an OSGi bundle containing the base library, all structures libraries and required dependencies (on the bundle classpath) can be downloaded from the <a shape="rect" class="external-link" href="http://repo1.maven.org/maven2/ca/uhn/hapi/hapi-osgi-base" rel="nofollow">central Maven repository</a>.</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;dependency&gt;
     &lt;groupId&gt;ca.uhn.hapi&lt;/groupId&gt;
     &lt;artifactId&gt;hapi-osgi-base&lt;/artifactId&gt;
     &lt;version&gt;1.2&lt;/version&gt;
 &lt;/dependency&gt;
 ]]></script>
-</div></div>
-
-
-<h3 id="BookComponentAppendix-Terserlanguage(Camel2.11)">Terser language (<strong>Camel 2.11</strong>)</h3>
-
-<p><a shape="rect" class="external-link" href="http://hl7api.sourceforge.net" rel="nofollow">HAPI</a> provides a <a shape="rect" class="external-link" href="http://hl7api.sourceforge.net/base/apidocs/ca/uhn/hl7v2/util/Terser.html" rel="nofollow">Terser</a> class that provides access to fields using a commonly used terse location specification syntax. The Terser language allows to use this syntax to extract values from messages and to use them as expressions and predicates for filtering, content-based routing etc.</p>
-
-<p>Sample:</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[
-import static org.apache.camel.component.hl7.HL7.terser;
+</div></div><h3 id="BookComponentAppendix-Terserlanguage(Camel2.11)">Terser language (<strong>Camel 2.11</strong>)</h3><p><a shape="rect" class="external-link" href="http://hl7api.sourceforge.net" rel="nofollow">HAPI</a> provides a <a shape="rect" class="external-link" href="http://hl7api.sourceforge.net/base/apidocs/ca/uhn/hl7v2/util/Terser.html" rel="nofollow">Terser</a> class that provides access to fields using a commonly used terse location specification syntax. The Terser language allows to use this syntax to extract values from messages and to use them as expressions and predicates for filtering, content-based routing etc.</p><p>Sample:</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[import static org.apache.camel.component.hl7.HL7.terser;
 ...
 
    // extract patient ID from field QRD-8 in the QRY_A19 message above and put into message header
@@ -7295,19 +7187,8 @@ import static org.apache.camel.component
       .to(&quot;mock:test2&quot;);
 
 ]]></script>
-</div></div>
-
-
-<h3 id="BookComponentAppendix-HL7Validationpredicate(Camel2.11)">HL7 Validation predicate (<strong>Camel 2.11</strong>)</h3>
-
-<p>Often it is preferable to parse a HL7v2 message and validate it against a HAPI <a shape="rect" class="external-link" href="http://hl7api.sourceforge.net/base/apidocs/ca/uhn/hl7v2/validation/ValidationContext.html" rel="nofollow">ValidationContext</a> in a separate step afterwards.</p>
-
-<p>Sample:</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[
-
-import static org.apache.camel.component.hl7.HL7.messageConformsTo;
+</div></div><h3 id="BookComponentAppendix-HL7Validationpredicate(Camel2.11)">HL7 Validation predicate (<strong>Camel 2.11</strong>)</h3><p>Often it is preferable to parse a HL7v2 message and validate it against a HAPI <a shape="rect" class="external-link" href="http://hl7api.sourceforge.net/base/apidocs/ca/uhn/hl7v2/validation/ValidationContext.html" rel="nofollow">ValidationContext</a> in a separate step afterwards.</p><p>Sample:</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[import static org.apache.camel.component.hl7.HL7.messageConformsTo;
 import ca.uhn.hl7v2.validation.impl.DefaultValidation;
 ...
 
@@ -7317,17 +7198,8 @@ import ca.uhn.hl7v2.validation.impl.Defa
    // Throws PredicateValidationException if message does not validate
    from(&quot;direct:test1&quot;).validate(messageConformsTo(defaultContext)).to(&quot;mock:test1&quot;);
 ]]></script>
-</div></div>
-
-
-<h3 id="BookComponentAppendix-HL7Acknowledgementexpression(Camel2.11)">HL7 Acknowledgement expression (<strong>Camel 2.11</strong>)</h3>
-
-<p>A common task in HL7v2 processing is to generate an acknowledgement message as response to an incoming HL7v2 message, e.g. based on a validation result. The <code>ack</code> expression lets us accomplish this very elegantly:</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[
-
-import static org.apache.camel.component.hl7.HL7.messageConformsTo;
+</div></div><h3 id="BookComponentAppendix-HL7Acknowledgementexpression(Camel2.11)">HL7 Acknowledgement expression (<strong>Camel 2.11</strong>)</h3><p>A common task in HL7v2 processing is to generate an acknowledgement message as response to an incoming HL7v2 message, e.g. based on a validation result. The <code>ack</code> expression lets us accomplish this very elegantly:</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[import static org.apache.camel.component.hl7.HL7.messageConformsTo;
 import static org.apache.camel.component.hl7.HL7.ack;
 import ca.uhn.hl7v2.validation.impl.DefaultValidation;
 ...
@@ -7346,12 +7218,7 @@ import ca.uhn.hl7v2.validation.impl.Defa
       // acknowledgement
       .transform(ack())
 ]]></script>
-</div></div>
-
-
-<h3 id="BookComponentAppendix-MoreSamples">More Samples</h3>
-<p>In the following example we send a HL7 request to a HL7 listener and retrieves a response. We use plain <code>String</code> types in this example:</p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+</div></div><h3 id="BookComponentAppendix-MoreSamples">More Samples</h3><p>In the following example we send a HL7 request to a HL7 listener and retrieves a response. We use plain <code>String</code> types in this example:</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[
 String line1 = &quot;MSH|^~\\&amp;|MYSENDER|MYRECEIVER|MYAPPLICATION||200612211200||QRY^A19|1234|P|2.4&quot;;
 String line2 = &quot;QRD|200612211200|R|I|GetPatient|||1^RD|0101701234|DEM||&quot;;
@@ -7363,12 +7230,7 @@ in.append(line2);
 
 String out = (String)template.requestBody(&quot;mina2:tcp://127.0.0.1:8888?sync=true&amp;codec=#hl7codec&quot;, in.toString());
 ]]></script>
-</div></div>
-
-<p>In the next sample, we want to route HL7 requests from our HL7 listener to our business logic. We have our business logic in a plain POJO that we have registered in the registry as <code>hl7service</code> = for instance using Spring and letting the bean id = <code>hl7service</code>.</p>
-
-<p>Our business logic is a plain POJO only using the HAPI library so we have these operations defined:</p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+</div></div><p>In the next sample, we want to route HL7 requests from our HL7 listener to our business logic. We have our business logic in a plain POJO that we have registered in the registry as <code>hl7service</code> = for instance using Spring and letting the bean id = <code>hl7service</code>.</p><p>Our business logic is a plain POJO only using the HAPI library so we have these operations defined:</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[
 public class MyHL7BusinessLogic {
 
@@ -7390,10 +7252,7 @@ public class MyHL7BusinessLogic {
     }
 }
 ]]></script>
-</div></div>
-
-<p>Then we set up the Camel routes using the <code>RouteBuilder</code> as follows:</p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+</div></div><p>Then we set up the Camel routes using the <code>RouteBuilder</code> as follows:</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[
 DataFormat hl7 = new HL7DataFormat();
 // we setup or HL7 listener on port 8888 (using the hl7codec) and in sync mode so we can return a response
@@ -7420,14 +7279,7 @@ from(&quot;mina2:tcp://127.0.0.1:8888?sy
     // marshal response back
     .marshal(hl7);
 ]]></script>
-</div></div>
-
-<p>Notice that we use the HL7 DataFormat to enrich our Camel Message with the MSH fields preconfigured on the Camel Message. This lets us much more easily define our routes using the fluent builders.<br clear="none">
-If we do not use the HL7 DataFormat, then we do not gains these headers and we must resort to a different technique for computing the MSH trigger event (= what kind of HL7 message it is). This is a big advantage of the HL7 DataFormat over the plain HL7 type converters.</p>
-
-<h4 id="BookComponentAppendix-SampleusingplainStringobjects">Sample using plain String objects</h4>
-<p>In this sample we use plain <code>String</code> objects as the data format, that we send, process and receive. As the sample is part of a unit test, there is some code for assertions, but you should be able to understand what happens. First we send the plain string, <code>Hello World</code>, to the <code>HL7MLLPCodec</code> and receive the response as a plain string, <code>Bye World</code>.</p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+</div></div><p>Notice that we use the HL7 DataFormat to enrich our Camel Message with the MSH fields preconfigured on the Camel Message. This lets us much more easily define our routes using the fluent builders.<br clear="none"> If we do not use the HL7 DataFormat, then we do not gains these headers and we must resort to a different technique for computing the MSH trigger event (= what kind of HL7 message it is). This is a big advantage of the HL7 DataFormat over the plain HL7 type converters.</p><h4 id="BookComponentAppendix-SampleusingplainStringobjects">Sample using plain String objects</h4><p>In this sample we use plain <code>String</code> objects as the data format, that we send, process and receive. As the sample is part of a unit test, there is some code for assertions, but you should be able to understand what happens. First we send the plain string, <code>Hello World</code>, to the <code>HL7MLLPCodec</code> and receive the response as a plain string, <code>Bye World</code>.
 </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[
 MockEndpoint mock = getMockEndpoint(&quot;mock:result&quot;);
 mock.expectedBodiesReceived(&quot;Bye World&quot;);
@@ -7440,10 +7292,7 @@ assertMockEndpointsSatisfied();
 // and the response is also just plain String
 assertEquals(&quot;Bye World&quot;, out);
 ]]></script>
-</div></div>
-
-<p>Here we process the incoming data as plain String and send the response also as plain String:</p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+</div></div><p>Here we process the incoming data as plain String and send the response also as plain String:</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[
 from(&quot;mina2:tcp://127.0.0.1:8888?sync=true&amp;codec=#hl7codec&quot;)
     .process(new Processor() {
@@ -7458,9 +7307,7 @@ from(&quot;mina2:tcp://127.0.0.1:8888?sy
     })
     .to(&quot;mock:result&quot;);
 ]]></script>
-</div></div>
-
-<h3 id="BookComponentAppendix-SeeAlso.22">See Also</h3>
+</div></div><p></p><h3 id="BookComponentAppendix-SeeAlso.22">See Also</h3>
 <ul><li><a shape="rect" href="configuring-camel.html">Configuring Camel</a></li><li><a shape="rect" href="component.html">Component</a></li><li><a shape="rect" href="endpoint.html">Endpoint</a></li><li><a shape="rect" href="getting-started.html">Getting Started</a></li></ul>
 <h2 id="BookComponentAppendix-HTTPComponent">HTTP Component</h2>
 
@@ -7812,9 +7659,9 @@ ProtocolSocketFactory factory =
 
 Protocol.registerProtocol(&quot;https&quot;,
         new Protocol(
-ÊÊÊÊÊÊÊ &quot;https&quot;,
-ÊÊÊÊÊÊÊ factory,
-ÊÊÊÊÊÊÊ 443));
+        &quot;https&quot;,
+        factory,
+        443));
 
 from(&quot;direct:start&quot;)
         .to(&quot;https://mail.google.com/mail/&quot;).to(&quot;mock:results&quot;);
@@ -10695,7 +10542,7 @@ public class Jt400RouteBuilder extends R
 public class Jt400RouteBuilder extends RouteBuilder {
     @Override
     public void configure() throws Exception {
-       from(&quot;direct:work&quot;).to(&quot;jt400://GRUPO:ATWORK@server/QSYS.LIB/assets.LIB/compute.PGM?fieldsLength=10,10,512&amp;ouputFieldsIdx=2,3&quot;).to(Òdirect:playÓ);
+       from(&quot;direct:work&quot;).to(&quot;jt400://GRUPO:ATWORK@server/QSYS.LIB/assets.LIB/compute.PGM?fieldsLength=10,10,512&amp;ouputFieldsIdx=2,3&quot;).to(“direct:play”);
     }
 }
 ]]></script>
@@ -16287,39 +16134,16 @@ public final class ServletActivator impl
 <h3 id="BookComponentAppendix-SeeAlso.57">See Also</h3>
 <ul><li><a shape="rect" href="configuring-camel.html">Configuring Camel</a></li><li><a shape="rect" href="component.html">Component</a></li><li><a shape="rect" href="endpoint.html">Endpoint</a></li><li><a shape="rect" href="getting-started.html">Getting Started</a></li></ul>
 <ul class="alternate"><li><a shape="rect" href="servlet-tomcat-example.html">Servlet Tomcat Example</a></li><li><a shape="rect" href="servlet-tomcat-no-spring-example.html">Servlet Tomcat No Spring Example</a></li><li><a shape="rect" href="http.html">Http</a></li><li><a shape="rect" href="jetty.html">Jetty</a></li></ul>
-<h2 id="BookComponentAppendix-ShiroSecurityComponent">Shiro Security Component</h2>
-
-<p><strong>Available as of Camel 2.5</strong></p>
-
-<p>The <strong>shiro-security</strong> component in Camel is a security focused component, based on the Apache Shiro security project.</p>
-
-<p>Apache Shiro is a powerful and flexible open-source security framework that cleanly handles authentication, authorization, enterprise session management and cryptography. The objective of the Apache Shiro project is to provide the most robust and comprehensive application security framework available while also being very easy to understand and extremely simple to use.</p>
-
-<p>This camel shiro-security component allows authentication and authorization support to be applied to different segments of a camel route.</p>
-
-<p>Shiro security is applied on a route using a Camel Policy. A Policy in Camel utilizes a strategy pattern for applying interceptors on Camel Processors. It offering the ability to apply cross-cutting concerns (for example. security, transactions etc) on sections/segments of a camel route. </p>
-
-<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="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
-&lt;dependency&gt;
+<h2 id="BookComponentAppendix-ShiroSecurityComponent">Shiro Security Component</h2><p><strong>Available as of Camel 2.5</strong></p><p>The <strong>shiro-security</strong> component in Camel is a security focused component, based on the Apache Shiro security project.</p><p>Apache Shiro is a powerful and flexible open-source security framework that cleanly handles authentication, authorization, enterprise session management and cryptography. The objective of the Apache Shiro project is to provide the most robust and comprehensive application security framework available while also being very easy to understand and extremely simple to use.</p><p>This camel shiro-security component allows authentication and authorization support to be applied to different segments of a camel route.</p><p>Shiro security is applied on a route using a Camel Policy. A Policy in Camel utilizes a strategy pattern for applying interceptors on Camel Processors. It offering the ability to apply cross-cutting con
 cerns (for example. security, transactions etc) on sections/segments of a camel route.</p><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="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[&lt;dependency&gt;
     &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
     &lt;artifactId&gt;camel-shiro&lt;/artifactId&gt;
     &lt;version&gt;x.x.x&lt;/version&gt;
     &lt;!-- use the same version as your Camel core version --&gt;
 &lt;/dependency&gt;
 ]]></script>
-</div></div>
-
-<h3 id="BookComponentAppendix-ShiroSecurityBasics">Shiro Security Basics</h3>
-
-<p>To employ Shiro security on a camel route, a ShiroSecurityPolicy object must be instantiated with security configuration details (including users, passwords, roles etc). This object must then be applied to a camel route. This ShiroSecurityPolicy Object may also be registered in the Camel registry (JNDI or ApplicationContextRegistry) and then utilized on other routes in the Camel Context.</p>
-
-<p>Configuration details are provided to the ShiroSecurityPolicy using an Ini file (properties file) or an Ini object. The Ini file is a standard Shiro configuration file containing user/role details as shown below</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[
-[users]
+</div></div><h3 id="BookComponentAppendix-ShiroSecurityBasics">Shiro Security Basics</h3><p>To employ Shiro security on a camel route, a ShiroSecurityPolicy object must be instantiated with security configuration details (including users, passwords, roles etc). This object must then be applied to a camel route. This ShiroSecurityPolicy Object may also be registered in the Camel registry (JNDI or ApplicationContextRegistry) and then utilized on other routes in the Camel Context.</p><p>Configuration details are provided to the ShiroSecurityPolicy using an Ini file (properties file) or an Ini object. The Ini file is a standard Shiro configuration file containing user/role details as shown below</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[[users]
 # user &#39;ringo&#39; with password &#39;starr&#39; and the &#39;sec-level1&#39; role
 ringo = starr, sec-level1
 george = harrison, sec-level2
@@ -16339,15 +16163,8 @@ sec-level2 = zone1:*
 # readonly   
 sec-level1 = zone1:readonly:*
 ]]></script>
-</div></div>
-
-<h3 id="BookComponentAppendix-InstantiatingaShiroSecurityPolicyObject">Instantiating a ShiroSecurityPolicy Object</h3>
-
-<p>A ShiroSecurityPolicy object is instantiated as follows</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[
-        private final String iniResourcePath = &quot;classpath:shiro.ini&quot;;
+</div></div><h3 id="BookComponentAppendix-InstantiatingaShiroSecurityPolicyObject">Instantiating a ShiroSecurityPolicy Object</h3><p>A ShiroSecurityPolicy object is instantiated as follows</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[        private final String iniResourcePath = &quot;classpath:shiro.ini&quot;;
         private final byte[] passPhrase = {
             (byte) 0x08, (byte) 0x09, (byte) 0x0A, (byte) 0x0B,
             (byte) 0x0C, (byte) 0x0D, (byte) 0x0E, (byte) 0x0F,
@@ -16360,20 +16177,10 @@ sec-level1 = zone1:readonly:*
         final ShiroSecurityPolicy securityPolicy = 
             new ShiroSecurityPolicy(iniResourcePath, passPhrase, true, permissionsList);
 ]]></script>
-</div></div>
-
-<h3 id="BookComponentAppendix-ShiroSecurityPolicyOptions">ShiroSecurityPolicy Options</h3>
-<div class="confluenceTableSmall">
+</div></div><h3 id="BookComponentAppendix-ShiroSecurityPolicyOptions">ShiroSecurityPolicy Options</h3><div class="confluenceTableSmall">
 <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 Value </p></th><th colspan="1" rowspan="1" class="confluenceTh"><p> Type </p></th><th colspan="1" rowspan="1" class="confluenceTh"><p> Description </p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>iniResourcePath or ini</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>none</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Resource String or Ini Object </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> A mandatory Resource String for the iniResourcePath or an instance of an Ini object must be passed to the security policy. Resources can be acquired from the file system, classpath, or URLs when prefixed with "file:, classpath:, or url:" respectively. For e.g "classpath:shiro.ini" </p></td></tr><tr><td colspan="1" rowspan="1" class="conf
 luenceTd"><p> <code>passPhrase</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>An AES 128 based key</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> byte[] </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> A passPhrase to decrypt ShiroSecurityToken(s) sent along with Message Exchanges </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>alwaysReauthenticate</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>true</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> boolean </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Setting to ensure re-authentication on every individual request. If set to false, the user is authenticated and locked such than only requests from the same user going forward are authenticated. </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>permissionsList</code> </p></td><td colspan="1" rowspan="1" cla
 ss="confluenceTd"><p> <code>none</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> List&lt;Permission&gt; </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> A List of permissions required in order for an authenticated user to be authorized to perform further action i.e continue further on the route. If no Permissions list is provided to the ShiroSecurityPolicy object, then authorization is deemed as not required </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>cipherService</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>AES</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> org.apache.shiro.crypto.CipherService </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Shiro ships with AES &amp; Blowfish based CipherServices. You may use one these or pass in your own Cipher implementation </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>base64</code>
  </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>false</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>boolean</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel 2.12:</strong> To use base64 encoding for the security token header, which allows transferring the header over <a shape="rect" href="jms.html" title="JMS">JMS</a> etc. This option must also be set on <code>ShiroSecurityTokenInjector</code> as well. </p></td></tr></tbody></table>
-</div>
-
-<h3 id="BookComponentAppendix-ApplyingShiroAuthenticationonaCamelRoute">Applying Shiro Authentication on a Camel Route</h3>
-
-<p>The ShiroSecurityPolicy, tests and permits incoming message exchanges containing a encrypted SecurityToken in the Message Header to proceed further following proper authentication. The SecurityToken object contains a Username/Password details that are used to determine where the user is a valid user. </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[
-    protected RouteBuilder createRouteBuilder() throws Exception {
+</div><h3 id="BookComponentAppendix-ApplyingShiroAuthenticationonaCamelRoute">Applying Shiro Authentication on a Camel Route</h3><p>The ShiroSecurityPolicy, tests and permits incoming message exchanges containing a encrypted SecurityToken in the Message Header to proceed further following proper authentication. The SecurityToken object contains a Username/Password details that are used to determine where the user is a valid user.</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[    protected RouteBuilder createRouteBuilder() throws Exception {
         final ShiroSecurityPolicy securityPolicy = 
             new ShiroSecurityPolicy(&quot;classpath:shiro.ini&quot;, passPhrase);
         
@@ -16396,15 +16203,8 @@ sec-level1 = zone1:readonly:*
         };
     }
 ]]></script>
-</div></div>
-
-<h3 id="BookComponentAppendix-ApplyingShiroAuthorizationonaCamelRoute">Applying Shiro Authorization on a Camel Route</h3>
-
-<p>Authorization can be applied on a camel route by associating a Permissions List with the ShiroSecurityPolicy. The Permissions List specifies the permissions necessary for the user to proceed with the execution of the route segment. If the user does not have the proper permission set, the request is not authorized to continue any further.</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[
-    protected RouteBuilder createRouteBuilder() throws Exception {
+</div></div><h3 id="BookComponentAppendix-ApplyingShiroAuthorizationonaCamelRoute">Applying Shiro Authorization on a Camel Route</h3><p>Authorization can be applied on a camel route by associating a Permissions List with the ShiroSecurityPolicy. The Permissions List specifies the permissions necessary for the user to proceed with the execution of the route segment. If the user does not have the proper permission set, the request is not authorized to continue any further.</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[    protected RouteBuilder createRouteBuilder() throws Exception {
         final ShiroSecurityPolicy securityPolicy = 
             new ShiroSecurityPolicy(&quot;./src/test/resources/securityconfig.ini&quot;, passPhrase);
         
@@ -16427,15 +16227,8 @@ sec-level1 = zone1:readonly:*
         };
     }
 ]]></script>
-</div></div>
-
-<h3 id="BookComponentAppendix-CreatingaShiroSecurityTokenandinjectingitintoaMessageExchange">Creating a ShiroSecurityToken and injecting it into a Message Exchange</h3>
-
-<p>A ShiroSecurityToken object may be created and injected into a Message Exchange using a Shiro Processor called ShiroSecurityTokenInjector. An example of injecting a ShiroSecurityToken using a ShiroSecurityTokenInjector in the client is shown below</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[
-    ShiroSecurityToken shiroSecurityToken = new ShiroSecurityToken(&quot;ringo&quot;, &quot;starr&quot;);
+</div></div><h3 id="BookComponentAppendix-CreatingaShiroSecurityTokenandinjectingitintoaMessageExchange">Creating a ShiroSecurityToken and injecting it into a Message Exchange</h3><p>A ShiroSecurityToken object may be created and injected into a Message Exchange using a Shiro Processor called ShiroSecurityTokenInjector. An example of injecting a ShiroSecurityToken using a ShiroSecurityTokenInjector in the client is shown below</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[    ShiroSecurityToken shiroSecurityToken = new ShiroSecurityToken(&quot;ringo&quot;, &quot;starr&quot;);
     ShiroSecurityTokenInjector shiroSecurityTokenInjector = 
         new ShiroSecurityTokenInjector(shiroSecurityToken, passPhrase);
 
@@ -16443,15 +16236,7 @@ sec-level1 = zone1:readonly:*
         process(shiroSecurityTokenInjector).
         to(&quot;direct:secureEndpoint&quot;);
 ]]></script>
-</div></div>
-
-<h3 id="BookComponentAppendix-SendingMessagestoroutessecuredbyaShiroSecurityPolicy">Sending Messages to routes secured by a ShiroSecurityPolicy</h3>
-
-<p>Messages and Message Exchanges sent along the camel route where the security policy is applied need to be accompanied by a SecurityToken in the Exchange Header. The SecurityToken is an encrypted object that holds a Username and Password. The SecurityToken is encrypted using AES 128 bit security by default and can be changed to any cipher of your choice.</p>
-
-<p>Given below is an example of how a request may be sent using a ProducerTemplate in Camel along with a SecurityToken</p>
-
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+</div></div><h3 id="BookComponentAppendix-SendingMessagestoroutessecuredbyaShiroSecurityPolicy">Sending Messages to routes secured by a ShiroSecurityPolicy</h3><p>Messages and Message Exchanges sent along the camel route where the security policy is applied need to be accompanied by a SecurityToken in the Exchange Header. The SecurityToken is an encrypted object that holds a Username and Password. The SecurityToken is encrypted using AES 128 bit security by default and can be changed to any cipher of your choice.</p><p>Given below is an example of how a request may be sent using a ProducerTemplate in Camel along with a SecurityToken</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[ 
     @Test
     public void testSuccessfulShiroAuthenticationWithNoAuthorization() throws Exception {        
@@ -16471,34 +16256,18 @@ sec-level1 = zone1:readonly:*
         failureEndpoint.assertIsSatisfied();
     } 
 ]]></script>
-</div></div>
-
-<h3 id="BookComponentAppendix-SendingMessagestoroutessecuredbyaShiroSecurityPolicy(mucheasierfromCamel2.12onwards)">Sending Messages to routes secured by a ShiroSecurityPolicy (much easier from Camel 2.12 onwards)</h3>
-
-<p>From <strong>Camel 2.12</strong> onwards its even easier as you can provide the subject in two different ways.</p>
-
-<h4 id="BookComponentAppendix-UsingShiroSecurityToken">Using ShiroSecurityToken</h4>
-
-<p>You can send a message to a Camel route with a header of key <code>ShiroSecurityConstants.SHIRO_SECURITY_TOKEN</code> of the type <code>org.apache.camel.component.shiro.security.ShiroSecurityToken</code> that contains the username and password. For example:</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[
-        ShiroSecurityToken shiroSecurityToken = new ShiroSecurityToken(&quot;ringo&quot;, &quot;starr&quot;);
+</div></div><h3 id="BookComponentAppendix-SendingMessagestoroutessecuredbyaShiroSecurityPolicy(mucheasierfromCamel2.12onwards)">Sending Messages to routes secured by a ShiroSecurityPolicy (much easier from Camel 2.12 onwards)</h3><p>From <strong>Camel 2.12</strong> onwards its even easier as you can provide the subject in two different ways.</p><h4 id="BookComponentAppendix-UsingShiroSecurityToken">Using ShiroSecurityToken</h4><p>You can send a message to a Camel route with a header of key <code>ShiroSecurityConstants.SHIRO_SECURITY_TOKEN</code> of the type <code>org.apache.camel.component.shiro.security.ShiroSecurityToken</code> that contains the username and password. For example:</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[        ShiroSecurityToken shiroSecurityToken = new ShiroSecurityToken(&quot;ringo&quot;, &quot;starr&quot;);
 
         template.sendBodyAndHeader(&quot;direct:secureEndpoint&quot;, &quot;Beatle Mania&quot;, ShiroSecurityConstants.SHIRO_SECURITY_TOKEN, shiroSecurityToken);
 ]]></script>
-</div></div>
-
-<p>You can also provide the username and password in two different headers as shown below:</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; headers = new HashMap&lt;String, Object&gt;();
+</div></div><p>You can also provide the username and password in two different headers as shown below:</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; headers = new HashMap&lt;String, Object&gt;();
         headers.put(ShiroSecurityConstants.SHIRO_SECURITY_USERNAME, &quot;ringo&quot;);
         headers.put(ShiroSecurityConstants.SHIRO_SECURITY_PASSWORD, &quot;starr&quot;);
         template.sendBodyAndHeaders(&quot;direct:secureEndpoint&quot;, &quot;Beatle Mania&quot;, headers);
 ]]></script>
-</div></div>
-
-<p>When you use the username and password headers, then the ShiroSecurityPolicy in the Camel route will automatic transform those into a single header with key ShiroSecurityConstants.SHIRO_SECURITY_TOKEN with the token. Then token is either a <code>ShiroSecurityToken</code> instance, of a base64 representation as a String (the latter is when you have set base64=true).</p>
+</div></div><p>When you use the username and password headers, then the ShiroSecurityPolicy in the Camel route will automatic transform those into a single header with key ShiroSecurityConstants.SHIRO_SECURITY_TOKEN with the token. Then token is either a <code>ShiroSecurityToken</code> instance, or a base64 representation as a String (the latter is when you have set base64=true).</p>
 <h2 id="BookComponentAppendix-SIPComponent">SIP Component</h2>
 
 <p><strong>Available as of Camel 2.5</strong></p>

Modified: websites/production/camel/content/book-cookbook.html
==============================================================================
--- websites/production/camel/content/book-cookbook.html (original)
+++ websites/production/camel/content/book-cookbook.html Thu Dec 19 02:22:12 2013
@@ -2604,22 +2604,22 @@ public class FilterTest extends Abstract
 @ContextConfiguration
 public class MyCamelTest {
 
-Ê Ê @Autowired
-Ê Ê protected CamelContext camelContext;
+    @Autowired
+    protected CamelContext camelContext;
 
-Ê Ê @EndpointInject(uri = &quot;mock:foo&quot;)
-Ê Ê protected MockEndpoint foo;
+    @EndpointInject(uri = &quot;mock:foo&quot;)
+    protected MockEndpoint foo;
 
 
     @Test
     @DirtiesContext
-Ê Ê public void testMocksAreValid() throws Exception {
-        ...Ê Ê Ê Ê
+    public void testMocksAreValid() throws Exception {
+        ...       
 
-Ê Ê Ê Ê foo.message(0).header(&quot;bar&quot;).isEqualTo(&quot;ABC&quot;);
+        foo.message(0).header(&quot;bar&quot;).isEqualTo(&quot;ABC&quot;);
 
-Ê Ê Ê Ê MockEndpoint.assertIsSatisfied(camelContext);
-Ê Ê }
+        MockEndpoint.assertIsSatisfied(camelContext);
+    }
 }
 ]]></script>
 </div></div>

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 Dec 19 02:22:12 2013
@@ -1263,7 +1263,7 @@ from(&quot;direct:start&quot;).marshal()
 <p>In this example we unmarshal&#160;a zipped&#160;payload from an ActiveMQ queue called MY_QUEUE&#160;to its original format,&#160;and forward it for&#160;processing&#160;to the UnZippedMessageProcessor. Note that the compression Level employed during the marshalling should be identical to the one employed during unmarshalling to avoid errors.</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[
-from(&quot;activemq:queue:MY_QUEUE&quot;).unmarshal().zip().process(new UnZippedMessageProcessor());Ê
+from(&quot;activemq:queue:MY_QUEUE&quot;).unmarshal().zip().process(new UnZippedMessageProcessor()); 
 ]]></script>
 </div></div>
 



Mime
View raw message