camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r955782 [2/2] - in /websites/production/camel/content: book-in-one-page.html book-languages-appendix.html cache/main.pageCache mvel.html
Date Tue, 23 Jun 2015 17:19:32 GMT
Modified: websites/production/camel/content/book-languages-appendix.html
==============================================================================
--- websites/production/camel/content/book-languages-appendix.html (original)
+++ websites/production/camel/content/book-languages-appendix.html Tue Jun 23 17:19:32 2015
@@ -359,32 +359,13 @@ This is done using the following syntax:
 </div></div>
 
 <p>Otherwise, you'll also need <a shape="rect" class="external-link" href="http://repo2.maven.org/maven2/commons-jxpath/commons-jxpath/1.3/commons-jxpath-1.3.jar"
rel="nofollow">Commons JXPath</a>.</p>
-<h2 id="BookLanguagesAppendix-Mvel">Mvel</h2>
-
-<p>Camel allows <a shape="rect" class="external-link" href="http://mvel.codehaus.org/"
rel="nofollow">Mvel</a> to be used as an <a shape="rect" href="expression.html">Expression</a>
or <a shape="rect" href="predicate.html">Predicate</a> the <a shape="rect"
href="dsl.html">DSL</a> or <a shape="rect" href="xml-configuration.html">Xml
Configuration</a>.</p>
-
-<p>You could use Mvel to create an <a shape="rect" href="predicate.html">Predicate</a>
in a <a shape="rect" href="message-filter.html">Message Filter</a> or as an <a
shape="rect" href="expression.html">Expression</a> for a <a shape="rect" href="recipient-list.html">Recipient
List</a></p>
-
-<p>You can use Mvel dot notation to invoke operations. If you for instance have a body
that contains a POJO that has a <code>getFamiliyName</code> method then you can
construct the syntax 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[
-&quot;request.body.familyName&quot;
+<h2 id="BookLanguagesAppendix-Mvel">Mvel</h2><p>Camel allows Mvel to be
used as an <a shape="rect" href="expression.html">Expression</a> or <a shape="rect"
href="predicate.html">Predicate</a> the <a shape="rect" href="dsl.html">DSL</a>
or <a shape="rect" href="xml-configuration.html">Xml Configuration</a>.</p><p>You
could use Mvel to create an <a shape="rect" href="predicate.html">Predicate</a>
in a <a shape="rect" href="message-filter.html">Message Filter</a> or as an <a
shape="rect" href="expression.html">Expression</a> for a <a shape="rect" href="recipient-list.html">Recipient
List</a></p><p>You can use Mvel dot notation to invoke operations. If you
for instance have a body that contains a POJO that has a <code>getFamiliyName</code>
method then you can construct the syntax 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[&quot;request.body.familyName&quot;
    // or 
 &quot;getRequest().getBody().getFamilyName()&quot;
 ]]></script>
-</div></div>
-
-<h3 id="BookLanguagesAppendix-Variables.2">Variables</h3>
-
-<div class="table-wrap"><table class="confluenceTable"><tbody><tr><th
colspan="1" rowspan="1" class="confluenceTh"><p> Variable </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> <strong>this</strong>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Exchange
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> the
Exchange is the root object </p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p> exchange </p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p> Exchange </p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p> the Exchange object </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> exception </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> Throwable </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> the Exchange exception
  (if any) </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>
exchangeId </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>
String </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>
the exchange id </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>
fault </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>
Message </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>
the Fault message (if any) </p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p> request </p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p> Message </p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p> the exchange.in message </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> response </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> Message </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> the exchange.out message (if any)
</p></td></tr><tr><td colspan="1" rowspan
 ="1" class="confluenceTd"><p> properties </p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p> Map </p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p> the exchange properties </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> property(name) </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> Object </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> the property by the given name </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> property(name, type) </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> Type </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> the property by the given name as
the given type </p></td></tr></tbody></table></div>
-
-
-<h3 id="BookLanguagesAppendix-Samples.1">Samples</h3>
-<p>For example you could use Mvel inside a <a shape="rect" href="message-filter.html">Message
Filter</a> in XML</p>
-
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent
pdl">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-&lt;route&gt;
+</div></div><h3 id="BookLanguagesAppendix-Variables.2">Variables</h3><div
class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1"
rowspan="1" class="confluenceTh"><p>Variable</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><strong>this</strong></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Exchange</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>the Exchange is the root object</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>exchange</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Exchange</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>the Exchange object</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>exception</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Throwable</p></td><td
colspan="1" rowspan="1" 
 class="confluenceTd"><p>the Exchange exception (if any)</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>exchangeId</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>String</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>the exchange id</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>fault</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Message</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>the Fault message (if any)</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>request</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Message</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>the exchange.in message</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>response</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Message</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>the exchange.out message (if any)</p></td></tr><tr><t
 d colspan="1" rowspan="1" class="confluenceTd"><p>properties</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Map</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>the exchange properties</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>property(name)</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Object</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>the property by the given name</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>property(name, type)</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Type</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>the property by the given name as the given type</p></td></tr></tbody></table></div><h3
id="BookLanguagesAppendix-Samples.1">Samples</h3><p>For example you could use
Mvel inside a <a shape="rect" href="message-filter.html">Message Filter</a> in
XML</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent

 panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[&lt;route&gt;
   &lt;from uri=&quot;seda:foo&quot;/&gt;
   &lt;filter&gt;
     &lt;mvel&gt;request.headers.foo == &#39;bar&#39;&lt;/mvel&gt;
@@ -392,44 +373,20 @@ This is done using the following syntax:
   &lt;/filter&gt;
 &lt;/route&gt;
 ]]></script>
-</div></div>
-
-<p>And the sample using Java DSL:</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;seda:foo&quot;).filter().mvel(&quot;request.headers.foo == &#39;bar&#39;&quot;).to(&quot;seda:bar&quot;);
+</div></div><p>And the sample using Java DSL:</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;seda:foo&quot;).filter().mvel(&quot;request.headers.foo == &#39;bar&#39;&quot;).to(&quot;seda:bar&quot;);
 ]]></script>
-</div></div>
-
-<h3 id="BookLanguagesAppendix-Loadingscriptfromexternalresource.1">Loading script from
external resource</h3>
-<p><strong>Available as of Camel 2.11</strong></p>
-
-<p>You can externalize the script and have Camel load it from a resource such as <code>"classpath:"</code>,
<code>"file:"</code>, or <code>"http:"</code>.<br clear="none">
-This is done using the following syntax: <code>"resource:scheme:location"</code>,
eg to refer to a file on the classpath you can do:</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[
-.setHeader(&quot;myHeader&quot;).mvel(&quot;resource:classpath:script.mvel&quot;)
+</div></div><h3 id="BookLanguagesAppendix-Loadingscriptfromexternalresource.1">Loading
script from external resource</h3><p><strong>Available as of Camel 2.11</strong></p><p>You
can externalize the script and have Camel load it from a resource such as <code>"classpath:"</code>,
<code>"file:"</code>, or <code>"http:"</code>.<br clear="none">
This is done using the following syntax: <code>"resource:scheme:location"</code>,
eg to refer to a file on the classpath you can do:</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[.setHeader(&quot;myHeader&quot;).mvel(&quot;resource:classpath:script.mvel&quot;)
 ]]></script>
-</div></div>
-
-
-<h3 id="BookLanguagesAppendix-Dependencies.5">Dependencies</h3>
-
-<p>To use Mvel in your camel routes you need to add the a dependency on <strong>camel-mvel</strong>
which implements the Mvel language. </p>
-
-<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="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-&lt;dependency&gt;
+</div></div><h3 id="BookLanguagesAppendix-Dependencies.5">Dependencies</h3><p>To
use Mvel in your camel routes you need to add the a dependency on <strong>camel-mvel</strong>
which implements the Mvel language.</p><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="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[&lt;dependency&gt;
   &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
   &lt;artifactId&gt;camel-mvel&lt;/artifactId&gt;
   &lt;version&gt;x.x.x&lt;/version&gt;
 &lt;/dependency&gt;
 ]]></script>
 </div></div>
-
-<p>Otherwise, you'll also need <a shape="rect" class="external-link" href="http://repo2.maven.org/maven2/org/mvel/mvel2/2.0.18/mvel2-2.0.18.jar"
rel="nofollow">MVEL</a></p>
 <h2 id="BookLanguagesAppendix-OGNL">OGNL</h2><p>Camel allows <a shape="rect"
class="external-link" href="http://commons.apache.org/proper/commons-ognl/">OGNL</a>
to be used as an <a shape="rect" href="expression.html">Expression</a> or <a
shape="rect" href="predicate.html">Predicate</a> the <a shape="rect" href="dsl.html">DSL</a>
or <a shape="rect" href="xml-configuration.html">Xml Configuration</a>.</p><p>You
could use OGNL to create an <a shape="rect" href="predicate.html">Predicate</a>
in a <a shape="rect" href="message-filter.html">Message Filter</a> or as an <a
shape="rect" href="expression.html">Expression</a> for a <a shape="rect" href="recipient-list.html">Recipient
List</a></p><p>You can use OGNL dot notation to invoke operations. If you
for instance have a body that contains a POJO that has a <code>getFamiliyName</code>
method then you can construct the syntax 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[&quot;request.body.familyName&quot;
    // or 

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

Modified: websites/production/camel/content/mvel.html
==============================================================================
--- websites/production/camel/content/mvel.html (original)
+++ websites/production/camel/content/mvel.html Tue Jun 23 17:19:32 2015
@@ -84,32 +84,13 @@
 	<tbody>
         <tr>
         <td valign="top" width="100%">
-<div class="wiki-content maincontent"><h2 id="Mvel-Mvel">Mvel</h2>
-
-<p>Camel allows <a shape="rect" class="external-link" href="http://mvel.codehaus.org/"
rel="nofollow">Mvel</a> to be used as an <a shape="rect" href="expression.html">Expression</a>
or <a shape="rect" href="predicate.html">Predicate</a> the <a shape="rect"
href="dsl.html">DSL</a> or <a shape="rect" href="xml-configuration.html">Xml
Configuration</a>.</p>
-
-<p>You could use Mvel to create an <a shape="rect" href="predicate.html">Predicate</a>
in a <a shape="rect" href="message-filter.html">Message Filter</a> or as an <a
shape="rect" href="expression.html">Expression</a> for a <a shape="rect" href="recipient-list.html">Recipient
List</a></p>
-
-<p>You can use Mvel dot notation to invoke operations. If you for instance have a body
that contains a POJO that has a <code>getFamiliyName</code> method then you can
construct the syntax 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[
-&quot;request.body.familyName&quot;
+<div class="wiki-content maincontent"><h2 id="Mvel-Mvel">Mvel</h2><p>Camel
allows Mvel to be used as an <a shape="rect" href="expression.html">Expression</a>
or <a shape="rect" href="predicate.html">Predicate</a> the <a shape="rect"
href="dsl.html">DSL</a> or <a shape="rect" href="xml-configuration.html">Xml
Configuration</a>.</p><p>You could use Mvel to create an <a shape="rect"
href="predicate.html">Predicate</a> in a <a shape="rect" href="message-filter.html">Message
Filter</a> or as an <a shape="rect" href="expression.html">Expression</a>
for a <a shape="rect" href="recipient-list.html">Recipient List</a></p><p>You
can use Mvel dot notation to invoke operations. If you for instance have a body that contains
a POJO that has a <code>getFamiliyName</code> method then you can construct the
syntax 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[&quot;request.body.familyName&quot;
    // or 
 &quot;getRequest().getBody().getFamilyName()&quot;
 ]]></script>
-</div></div>
-
-<h3 id="Mvel-Variables">Variables</h3>
-
-<div class="table-wrap"><table class="confluenceTable"><tbody><tr><th
colspan="1" rowspan="1" class="confluenceTh"><p> Variable </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> <strong>this</strong>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Exchange
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> the
Exchange is the root object </p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p> exchange </p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p> Exchange </p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p> the Exchange object </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> exception </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> Throwable </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> the Exchange exception
  (if any) </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>
exchangeId </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>
String </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>
the exchange id </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>
fault </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>
Message </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>
the Fault message (if any) </p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p> request </p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p> Message </p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p> the exchange.in message </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> response </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> Message </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> the exchange.out message (if any)
</p></td></tr><tr><td colspan="1" rowspan
 ="1" class="confluenceTd"><p> properties </p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p> Map </p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p> the exchange properties </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> property(name) </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> Object </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> the property by the given name </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> property(name, type) </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> Type </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> the property by the given name as
the given type </p></td></tr></tbody></table></div>
-
-
-<h3 id="Mvel-Samples">Samples</h3>
-<p>For example you could use Mvel inside a <a shape="rect" href="message-filter.html">Message
Filter</a> in XML</p>
-
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent
pdl">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-&lt;route&gt;
+</div></div><h3 id="Mvel-Variables">Variables</h3><div class="table-wrap"><table
class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Variable</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><strong>this</strong></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Exchange</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>the Exchange is the root object</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>exchange</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Exchange</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>the Exchange object</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>exception</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Throwable</p></td><td
colspan="1" rowspan="1" class="confluenceTd
 "><p>the Exchange exception (if any)</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>exchangeId</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>String</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>the exchange id</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>fault</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Message</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>the Fault message (if any)</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>request</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Message</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>the exchange.in message</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>response</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Message</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>the exchange.out message (if any)</p></td></tr><tr><td
colspan="1" rowsp
 an="1" class="confluenceTd"><p>properties</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>Map</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p>the exchange properties</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>property(name)</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Object</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>the property by the given name</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>property(name, type)</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Type</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>the property by the given name as the given type</p></td></tr></tbody></table></div><h3
id="Mvel-Samples">Samples</h3><p>For example you could use Mvel inside a <a
shape="rect" href="message-filter.html">Message Filter</a> in XML</p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent
pdl">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[&lt;route&gt;
   &lt;from uri=&quot;seda:foo&quot;/&gt;
   &lt;filter&gt;
     &lt;mvel&gt;request.headers.foo == &#39;bar&#39;&lt;/mvel&gt;
@@ -117,44 +98,20 @@
   &lt;/filter&gt;
 &lt;/route&gt;
 ]]></script>
-</div></div>
-
-<p>And the sample using Java DSL:</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;seda:foo&quot;).filter().mvel(&quot;request.headers.foo == &#39;bar&#39;&quot;).to(&quot;seda:bar&quot;);
+</div></div><p>And the sample using Java DSL:</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;seda:foo&quot;).filter().mvel(&quot;request.headers.foo == &#39;bar&#39;&quot;).to(&quot;seda:bar&quot;);
 ]]></script>
-</div></div>
-
-<h3 id="Mvel-Loadingscriptfromexternalresource">Loading script from external resource</h3>
-<p><strong>Available as of Camel 2.11</strong></p>
-
-<p>You can externalize the script and have Camel load it from a resource such as <code>"classpath:"</code>,
<code>"file:"</code>, or <code>"http:"</code>.<br clear="none">
-This is done using the following syntax: <code>"resource:scheme:location"</code>,
eg to refer to a file on the classpath you can do:</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[
-.setHeader(&quot;myHeader&quot;).mvel(&quot;resource:classpath:script.mvel&quot;)
+</div></div><h3 id="Mvel-Loadingscriptfromexternalresource">Loading script
from external resource</h3><p><strong>Available as of Camel 2.11</strong></p><p>You
can externalize the script and have Camel load it from a resource such as <code>"classpath:"</code>,
<code>"file:"</code>, or <code>"http:"</code>.<br clear="none">
This is done using the following syntax: <code>"resource:scheme:location"</code>,
eg to refer to a file on the classpath you can do:</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[.setHeader(&quot;myHeader&quot;).mvel(&quot;resource:classpath:script.mvel&quot;)
 ]]></script>
-</div></div>
-
-
-<h3 id="Mvel-Dependencies">Dependencies</h3>
-
-<p>To use Mvel in your camel routes you need to add the a dependency on <strong>camel-mvel</strong>
which implements the Mvel language. </p>
-
-<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="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-&lt;dependency&gt;
+</div></div><h3 id="Mvel-Dependencies">Dependencies</h3><p>To
use Mvel in your camel routes you need to add the a dependency on <strong>camel-mvel</strong>
which implements the Mvel language.</p><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="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[&lt;dependency&gt;
   &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
   &lt;artifactId&gt;camel-mvel&lt;/artifactId&gt;
   &lt;version&gt;x.x.x&lt;/version&gt;
 &lt;/dependency&gt;
 ]]></script>
-</div></div>
-
-<p>Otherwise, you'll also need <a shape="rect" class="external-link" href="http://repo2.maven.org/maven2/org/mvel/mvel2/2.0.18/mvel2-2.0.18.jar"
rel="nofollow">MVEL</a></p></div>
+</div></div></div>
         </td>
         <td valign="top">
           <div class="navigation">



Mime
View raw message