camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r831334 [5/14] - in /websites/production/camel/content: ./ cache/
Date Fri, 07 Sep 2012 22:36:15 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 Fri Sep  7 22:36:12 2012
@@ -149,10 +149,9 @@ from(<span class="code-quote">"activemq:
 <p>So you can bind parameters of the method to the Exchange, the <a shape="rect" href="message.html" title="Message">Message</a> or individual headers, properties, the body or other expressions.</p>
 
 <h3><a shape="rect" name="BookLanguagesAppendix-Nonregistrybeans"></a>Non registry beans</h3>
-<p>As of Camel 1.5 the <a shape="rect" href="bean-language.html" title="Bean Language">Bean Language</a> also supports invoking beans that isn't registered in the <a shape="rect" href="registry.html" title="Registry">Registry</a>. This is usable for quickly to invoke a bean from Java DSL where you don't need to register the bean in the <a shape="rect" href="registry.html" title="Registry">Registry</a> such as the <a shape="rect" href="spring.html" title="Spring">Spring</a> ApplicationContext.</p>
+<p>The <a shape="rect" href="bean-language.html" title="Bean Language">Bean Language</a> also supports invoking beans that isn't registered in the <a shape="rect" href="registry.html" title="Registry">Registry</a>. This is usable for quickly to invoke a bean from Java DSL where you don't need to register the bean in the <a shape="rect" href="registry.html" title="Registry">Registry</a> such as the <a shape="rect" href="spring.html" title="Spring">Spring</a> ApplicationContext.</p>
 
-<p>Camel can instantiate the bean and invoke the method if given a class or invoke an already existing instance. This is illustrated from the example below:<br clear="none">
-<b>NOTE</b> This bean DSL is supported since Camel 2.0-M2</p>
+<p>Camel can instantiate the bean and invoke the method if given a class or invoke an already existing instance. This is illustrated from the example below:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
 <pre class="code-java">
         from(<span class="code-quote">"activemq:topic:OrdersTopic"</span>).
@@ -208,8 +207,6 @@ from(<span class="code-quote">"activemq:
 
 <p>The Constant Expression Language is really just a way to specify constant strings as a type of expression. </p>
 
-<p><b>Available as of Camel 1.5</b></p>
-
 <h3><a shape="rect" name="BookLanguagesAppendix-Exampleusage"></a>Example usage</h3>
 
 <p>The setHeader element of the Spring DSL can utilize a constant expression like:</p>
@@ -295,7 +292,7 @@ from(<span class="code-quote">"seda:a"</
 &lt;dependency&gt;
   &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
   &lt;artifactId&gt;camel-juel&lt;/artifactId&gt;
-  &lt;version&gt;1.6.1&lt;/version&gt;
+  &lt;version&gt;x.x.x&lt;/version&gt;
 &lt;/dependency&gt;
 </pre>
 </div></div>
@@ -305,8 +302,6 @@ from(<span class="code-quote">"seda:a"</
 
 <p>The Header Expression Language allows you to extract values of named headers.</p>
 
-<p><b>Available as of Camel 1.5</b></p>
-
 <h3><a shape="rect" name="BookLanguagesAppendix-Exampleusage"></a>Example usage</h3>
 
 <p>The recipientList element of the Spring DSL can utilize a header expression like: </p>
@@ -344,7 +339,7 @@ from(<span class="code-quote">"seda:a"</
 
 <p>Camel supports <a shape="rect" class="external-link" href="http://commons.apache.org/jxpath/">JXPath</a> to allow <a shape="rect" href="xpath.html" title="XPath">XPath</a> expressions to be used on beans in an <a shape="rect" href="expression.html" title="Expression">Expression</a> or <a shape="rect" href="predicate.html" title="Predicate">Predicate</a> to be used in the <a shape="rect" href="dsl.html" title="DSL">DSL</a> or <a shape="rect" href="xml-configuration.html" title="Xml Configuration">Xml Configuration</a>. For example you could use JXPath to create an <a shape="rect" href="predicate.html" title="Predicate">Predicate</a> in a <a shape="rect" href="message-filter.html" title="Message Filter">Message Filter</a> or as an <a shape="rect" href="expression.html" title="Expression">Expression</a> for a <a shape="rect" href="recipient-list.html" title="Recipient List">Recipient List</a>.</p>
 
-<p>From 1.3 of Camel onwards you can use XPath expressions directly using smart completion in your IDE as follows</p>
+<p>You can use XPath expressions directly using smart completion in your IDE as follows</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
 <pre class="code-java">
@@ -370,7 +365,7 @@ from(<span class="code-quote">"queue:foo
 &lt;beans xmlns=<span class="code-quote">"http://www.springframework.org/schema/beans"</span>
        <span class="code-keyword">xmlns:xsi</span>=<span class="code-quote">"http://www.w3.org/2001/XMLSchema-instance"</span>
        xsi:schemaLocation="
-       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
        http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd"&gt;
 
   <span class="code-tag">&lt;camelContext id=<span class="code-quote">"camel"</span> xmlns=<span class="code-quote">"http://activemq.apache.org/camel/schema/spring"</span>&gt;</span>
@@ -426,14 +421,13 @@ from(<span class="code-quote">"queue:foo
 &lt;dependency&gt;
   &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
   &lt;artifactId&gt;camel-jxpath&lt;/artifactId&gt;
-  &lt;version&gt;1.4.0&lt;/version&gt;
+  &lt;version&gt;x.x.x&lt;/version&gt;
 &lt;/dependency&gt;
 </pre>
 </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><a shape="rect" name="BookLanguagesAppendix-Mvel"></a>Mvel</h2>
-<p><b>Avialable in Camel 2.0</b></p>
 
 <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" title="Expression">Expression</a> or <a shape="rect" href="predicate.html" title="Predicate">Predicate</a> the <a shape="rect" href="dsl.html" title="DSL">DSL</a> or <a shape="rect" href="xml-configuration.html" title="Xml Configuration">Xml Configuration</a>.</p>
 
@@ -488,7 +482,7 @@ from(<span class="code-quote">"queue:foo
 &lt;dependency&gt;
   &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
   &lt;artifactId&gt;camel-mvel&lt;/artifactId&gt;
-  &lt;version&gt;2.0.0&lt;/version&gt;
+  &lt;version&gt;x.x.x&lt;/version&gt;
 &lt;/dependency&gt;
 </pre>
 </div></div>
@@ -549,7 +543,7 @@ from(<span class="code-quote">"queue:foo
 &lt;dependency&gt;
   &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
   &lt;artifactId&gt;camel-ognl&lt;/artifactId&gt;
-  &lt;version&gt;1.4.0&lt;/version&gt;
+  &lt;version&gt;x.x.x&lt;/version&gt;
 &lt;/dependency&gt;
 </pre>
 </div></div>
@@ -559,8 +553,6 @@ from(<span class="code-quote">"queue:foo
 
 <p>The Property Expression Language allows you to extract values of named exchange properties.</p>
 
-<p><b>Available as of Camel 2.0</b></p>
-
 <h3><a shape="rect" name="BookLanguagesAppendix-Exampleusage"></a>Example usage</h3>
 
 <p>The recipientList element of the Spring DSL can utilize a property expression like: </p>
@@ -1672,7 +1664,7 @@ From <b>Camel 2.9</b> onwards you can ne
 <h3><a shape="rect" name="BookLanguagesAppendix-Variables"></a>Variables</h3>
 
 <div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"> Variable </th><th colspan="1" rowspan="1" class="confluenceTh"> Type </th><th colspan="1" rowspan="1" class="confluenceTh">  Description </th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> camelId </td><td colspan="1" rowspan="1" class="confluenceTd"> String </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.10:</b> the CamelContext name </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> exchangeId </td><td colspan="1" rowspan="1" class="confluenceTd"> String </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.3:</b> the exchange id </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> id </td><td colspan="1" rowspan="1" class="confluenceTd"> String </td><td colspan="1" rowspan="1" class="confluenceTd"> the input message id </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> body </td><td colspan="1" rowspan="
 1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> the input body </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> in.body </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> the input body </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> body.<b>OGNL</b> </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.3:</b> the input body invoked using a Camel OGNL expression. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> in.body.<b>OGNL</b> </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.3:</b> the input body invoked using a Camel OGNL expression. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> bodyAs(<em>type</em>) </td><td colspan="1" rowspan="1" class="confluenceTd">
  Type </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.3:</b> Converts the body to the given type determined by its classname. The converted body can be null. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> mandatoryBodyAs(<em>type</em>) </td><td colspan="1" rowspan="1" class="confluenceTd"> Type </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.5:</b> Converts the body to the given type determined by its classname, and expects the body to be not null. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> out.body </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> the output body </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> header.foo </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> refer to the input foo header </td></tr><tr><td colspan="1" rowspan="1" class="conflu
 enceTd"> header[foo] </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.9.2:</b> refer to the input foo header </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> headers.foo </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> refer to the input foo header </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> headers[foo] </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.9.2:</b> refer to the input foo header </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> in.header.foo </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> refer to the input foo header </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> in.header[foo] </td><td colspan="1" rowspan="
 1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.9.2:</b> refer to the input foo header </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> in.headers.foo </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> refer to the input foo header </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> in.headers[foo] </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.9.2:</b> refer to the input foo header </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> header.foo[bar] </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.3:</b> regard input foo header as a map and perform lookup on the map with bar as key </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> in.header.foo[bar] </
 td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.3:</b> regard input foo header as a map and perform lookup on the map with bar as key </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> in.headers.foo[bar] </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.3:</b> regard input foo header as a map and perform lookup on the map with bar as key </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> header.foo.<b>OGNL</b> </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.3:</b> refer to the input foo header and invoke its value using a Camel OGNL expression. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> in.header.foo.<b>OGNL</b> </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" ro
 wspan="1" class="confluenceTd"> <b>Camel 2.3:</b> refer to the input foo header and invoke its value using a Camel OGNL expression. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> in.headers.foo.<b>OGNL</b> </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.3:</b> refer to the input foo header and invoke its value using a Camel OGNL expression. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> out.header.foo </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> refer to the out header foo </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> out.header[foo] </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.9.2:</b> refer to the out header foo </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> out.headers.foo 
 </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> refer to the out header foo </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> out.headers[foo] </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.9.2:</b> refer to the out header foo </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> headerAs(<em>key</em>,<em>type</em>) </td><td colspan="1" rowspan="1" class="confluenceTd"> Type </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.5:</b> Converts the header to the given type determined by its classname </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> headers </td><td colspan="1" rowspan="1" class="confluenceTd"> Map </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.9:</b> refer to the input headers </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> in.
 headers </td><td colspan="1" rowspan="1" class="confluenceTd"> Map </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.9:</b> refer to the input headers </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> property.foo </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> refer to the foo property on the exchange </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> property[foo] </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.9.2:</b> refer to the foo property on the exchange </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> property.foo.<b>OGNL</b> </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.8:</b> refer to the foo property on the exchange and invoke its value using a Camel OGNL expression. </td></tr><
 tr><td colspan="1" rowspan="1" class="confluenceTd"> sys.foo </td><td colspan="1" rowspan="1" class="confluenceTd"> String </td><td colspan="1" rowspan="1" class="confluenceTd"> refer to the system property </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> sysenv.foo </td><td colspan="1" rowspan="1" class="confluenceTd"> String </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.3:</b> refer to the system environment </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> exception </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.4:</b> Refer to the exception object on the exchange, is <b>null</b> if no exception set on exchange. Will fallback and grab caught exceptions (<tt>Exchange.EXCEPTION_CAUGHT</tt>) if the Exchange has any. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> exception.<b>OGNL</b> </td><td colspan="1" rowspan="1" class="conflue
 nceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.4:</b> Refer to the exchange exception invoked using a Camel OGNL expression object </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> exception.message </td><td colspan="1" rowspan="1" class="confluenceTd"> String </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.0.</b> Refer to the exception.message on the exchange, is <b>null</b> if no exception set on exchange. Will fallback and grab caught exceptions (<tt>Exchange.EXCEPTION_CAUGHT</tt>) if the Exchange has any. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> exception.stacktrace </td><td colspan="1" rowspan="1" class="confluenceTd"> String </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.6.</b> Refer to the exception.stracktrace on the exchange, is <b>null</b> if no exception set on exchange. Will fallback and grab caught exceptions (<tt>Exchange.EXCEPTION_CAUGHT</tt>) if the Exc
 hange has any. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> date:<em>command:pattern</em> </td><td colspan="1" rowspan="1" class="confluenceTd"> String </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 1.5.</b> Date formatting using the <tt>java.text.SimpleDataFormat</tt> patterns. Supported commands are: <b>now</b> for current timestamp, <b>in.header.xxx</b> or <b>header.xxx</b> to use the Date object in the IN header with the key xxx. <b>out.header.xxx</b> to use the Date object in the OUT header with the key xxx.</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> bean:<em>bean expression</em> </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 1.5.</b> Invoking a bean expression using the <a shape="rect" href="bean.html" title="Bean">Bean</a> language. Specifying a method name you must use dot as separator. In Camel 2.0 we also support the ?method=methodn
 ame syntax that is used by the <a shape="rect" href="bean.html" title="Bean">Bean</a> component. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> properties:<em>locations:key</em> </td><td colspan="1" rowspan="1" class="confluenceTd"> String </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.3:</b> Lookup a property with the given key. The <tt>locations</tt> option is optional. See more at <a shape="rect" href="using-propertyplaceholder.html" title="Using PropertyPlaceholder">Using PropertyPlaceholder</a>. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> threadName </td><td colspan="1" rowspan="1" class="confluenceTd"> String </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.3:</b> Returns the name of the current thread. Can be used for logging purpose. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> ref:xxx </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="
 1" class="confluenceTd"> <b>Camel 2.6:</b> To lookup a bean from the <a shape="rect" href="registry.html" title="Registry">Registry</a> with the given id. </td></tr></tbody></table>
+<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"> Variable </th><th colspan="1" rowspan="1" class="confluenceTh"> Type </th><th colspan="1" rowspan="1" class="confluenceTh">  Description </th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> camelId </td><td colspan="1" rowspan="1" class="confluenceTd"> String </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.10:</b> the CamelContext name </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> exchangeId </td><td colspan="1" rowspan="1" class="confluenceTd"> String </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.3:</b> the exchange id </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> id </td><td colspan="1" rowspan="1" class="confluenceTd"> String </td><td colspan="1" rowspan="1" class="confluenceTd"> the input message id </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> body </td><td colspan="1" rowspan="
 1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> the input body </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> in.body </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> the input body </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> body.<b>OGNL</b> </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.3:</b> the input body invoked using a Camel OGNL expression. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> in.body.<b>OGNL</b> </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.3:</b> the input body invoked using a Camel OGNL expression. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> bodyAs(<em>type</em>) </td><td colspan="1" rowspan="1" class="confluenceTd">
  Type </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.3:</b> Converts the body to the given type determined by its classname. The converted body can be null. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> mandatoryBodyAs(<em>type</em>) </td><td colspan="1" rowspan="1" class="confluenceTd"> Type </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.5:</b> Converts the body to the given type determined by its classname, and expects the body to be not null. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> out.body </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> the output body </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> header.foo </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> refer to the input foo header </td></tr><tr><td colspan="1" rowspan="1" class="conflu
 enceTd"> header[foo] </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.9.2:</b> refer to the input foo header </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> headers.foo </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> refer to the input foo header </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> headers[foo] </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.9.2:</b> refer to the input foo header </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> in.header.foo </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> refer to the input foo header </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> in.header[foo] </td><td colspan="1" rowspan="
 1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.9.2:</b> refer to the input foo header </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> in.headers.foo </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> refer to the input foo header </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> in.headers[foo] </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.9.2:</b> refer to the input foo header </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> header.foo[bar] </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.3:</b> regard input foo header as a map and perform lookup on the map with bar as key </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> in.header.foo[bar] </
 td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.3:</b> regard input foo header as a map and perform lookup on the map with bar as key </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> in.headers.foo[bar] </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.3:</b> regard input foo header as a map and perform lookup on the map with bar as key </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> header.foo.<b>OGNL</b> </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.3:</b> refer to the input foo header and invoke its value using a Camel OGNL expression. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> in.header.foo.<b>OGNL</b> </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" ro
 wspan="1" class="confluenceTd"> <b>Camel 2.3:</b> refer to the input foo header and invoke its value using a Camel OGNL expression. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> in.headers.foo.<b>OGNL</b> </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.3:</b> refer to the input foo header and invoke its value using a Camel OGNL expression. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> out.header.foo </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> refer to the out header foo </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> out.header[foo] </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.9.2:</b> refer to the out header foo </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> out.headers.foo 
 </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> refer to the out header foo </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> out.headers[foo] </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.9.2:</b> refer to the out header foo </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> headerAs(<em>key</em>,<em>type</em>) </td><td colspan="1" rowspan="1" class="confluenceTd"> Type </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.5:</b> Converts the header to the given type determined by its classname </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> headers </td><td colspan="1" rowspan="1" class="confluenceTd"> Map </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.9:</b> refer to the input headers </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> in.
 headers </td><td colspan="1" rowspan="1" class="confluenceTd"> Map </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.9:</b> refer to the input headers </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> property.foo </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> refer to the foo property on the exchange </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> property[foo] </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.9.2:</b> refer to the foo property on the exchange </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> property.foo.<b>OGNL</b> </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.8:</b> refer to the foo property on the exchange and invoke its value using a Camel OGNL expression. </td></tr><
 tr><td colspan="1" rowspan="1" class="confluenceTd"> sys.foo </td><td colspan="1" rowspan="1" class="confluenceTd"> String </td><td colspan="1" rowspan="1" class="confluenceTd"> refer to the system property </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> sysenv.foo </td><td colspan="1" rowspan="1" class="confluenceTd"> String </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.3:</b> refer to the system environment </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> exception </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.4:</b> Refer to the exception object on the exchange, is <b>null</b> if no exception set on exchange. Will fallback and grab caught exceptions (<tt>Exchange.EXCEPTION_CAUGHT</tt>) if the Exchange has any. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> exception.<b>OGNL</b> </td><td colspan="1" rowspan="1" class="conflue
 nceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.4:</b> Refer to the exchange exception invoked using a Camel OGNL expression object </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> exception.message </td><td colspan="1" rowspan="1" class="confluenceTd"> String </td><td colspan="1" rowspan="1" class="confluenceTd"> Refer to the exception.message on the exchange, is <b>null</b> if no exception set on exchange. Will fallback and grab caught exceptions (<tt>Exchange.EXCEPTION_CAUGHT</tt>) if the Exchange has any. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> exception.stacktrace </td><td colspan="1" rowspan="1" class="confluenceTd"> String </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.6.</b> Refer to the exception.stracktrace on the exchange, is <b>null</b> if no exception set on exchange. Will fallback and grab caught exceptions (<tt>Exchange.EXCEPTION_CAUGHT</tt>) if the Exchange has any. </t
 d></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> date:<em>command:pattern</em> </td><td colspan="1" rowspan="1" class="confluenceTd"> String </td><td colspan="1" rowspan="1" class="confluenceTd"> Date formatting using the <tt>java.text.SimpleDataFormat</tt> patterns. Supported commands are: <b>now</b> for current timestamp, <b>in.header.xxx</b> or <b>header.xxx</b> to use the Date object in the IN header with the key xxx. <b>out.header.xxx</b> to use the Date object in the OUT header with the key xxx.</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> bean:<em>bean expression</em> </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> Invoking a bean expression using the <a shape="rect" href="bean.html" title="Bean">Bean</a> language. Specifying a method name you must use dot as separator. We also support the ?method=methodname syntax that is used by the <a shape="rect" href="bean.html" tit
 le="Bean">Bean</a> component. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> properties:<em>locations:key</em> </td><td colspan="1" rowspan="1" class="confluenceTd"> String </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.3:</b> Lookup a property with the given key. The <tt>locations</tt> option is optional. See more at <a shape="rect" href="using-propertyplaceholder.html" title="Using PropertyPlaceholder">Using PropertyPlaceholder</a>. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> threadName </td><td colspan="1" rowspan="1" class="confluenceTd"> String </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.3:</b> Returns the name of the current thread. Can be used for logging purpose. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> ref:xxx </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.6:</b> To lookup a bean from th
 e <a shape="rect" href="registry.html" title="Registry">Registry</a> with the given id. </td></tr></tbody></table>
 </div>
 
 
@@ -1769,8 +1761,7 @@ simple(<span class="code-quote">"${body.
 </div></div>
 
 <h3><a shape="rect" name="BookLanguagesAppendix-Operatorsupport"></a>Operator support</h3>
-<p><b>Available as of Camel 2.0</b><br clear="none">
-We added a basic set of operators supported in the simple language in Camel 2.0. The parser is limited to only support a single operator. </p>
+<p>The parser is limited to only support a single operator. </p>
 
 <p>To enable it the left value must be enclosed in ${ }. The syntax is:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
@@ -2014,7 +2005,7 @@ simple(<span class="code-quote">"${in.he
 </pre>
 </div></div>
 
-<p>And in Camel 2.0 we can use the <tt>?method=methodname</tt> option that we are familiar with the <a shape="rect" href="bean.html" title="Bean">Bean</a> component itself:</p>
+<p>We can use the <tt>?method=methodname</tt> option that we are familiar with the <a shape="rect" href="bean.html" title="Bean">Bean</a> component itself:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
 <pre class="code-java">
    from(<span class="code-quote">"direct:order"</span>).transform().simple(<span class="code-quote">"OrderId: ${bean:orderIdGenerator?method=generateId}"</span>).to(<span class="code-quote">"mock:reply"</span>);
@@ -2111,8 +2102,6 @@ For example in an OSGi server this may a
 <p>The <a shape="rect" href="simple.html" title="Simple">Simple</a> language is part of <b>camel-core</b>.</p>
 <h2><a shape="rect" name="BookLanguagesAppendix-FileExpressionLanguage"></a>File Expression Language</h2>
 
-<p><b>Available as of Camel 1.5</b></p>
-
 <div class="panelMacro"><table class="infoMacro"><colgroup span="1"><col span="1" width="24"><col span="1"></colgroup><tr><td colspan="1" rowspan="1" valign="top"><img align="middle" src="https://cwiki.apache.org/confluence/images/icons/emoticons/information.gif" width="16" height="16" alt="" border="0"></td><td colspan="1" rowspan="1"><b>File language is now merged with Simple language</b><br clear="none">From Camel 2.2 onwards, the file language is now merged with <a shape="rect" href="simple.html" title="Simple">Simple</a> language which means you can use all the file syntax directly within the simple language.</td></tr></table></div>
 
 <p>The File Expression Language is an extension to the <a shape="rect" href="simple.html" title="Simple">Simple</a> language, adding file related capabilities. These capabilities are related to common use cases working with file path and names. The goal is to allow expressions to be used with the <a shape="rect" href="file2.html" title="File2">File</a> and <a shape="rect" href="ftp.html" title="FTP">FTP</a> components for setting dynamic file patterns for both consumer and producer. </p>
@@ -2124,7 +2113,7 @@ As opposed to <a shape="rect" href="simp
 <p>All the file tokens use the same expression name as the method on the <tt>java.io.File</tt> object, for instance <tt><a shape="rect" class="external-link" href="file:absolute" rel="nofollow">file:absolute</a></tt> refers to the <tt>java.io.File.getAbsolute()</tt> method. Notice that not all expressions are supported by the current Exchange. For instance the <a shape="rect" href="ftp.html" title="FTP">FTP</a> component supports some of the options, where as the <a shape="rect" href="file2.html" title="File2">File</a> component supports all of them.</p>
 
 <div class="confluenceTableSmall"><div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"> Expression </th><th colspan="1" rowspan="1" class="confluenceTh"> Type </th><th colspan="1" rowspan="1" class="confluenceTh"> File Consumer </th><th colspan="1" rowspan="1" class="confluenceTh"> File Producer </th><th colspan="1" rowspan="1" class="confluenceTh"> FTP Consumer </th><th colspan="1" rowspan="1" class="confluenceTh"> FTP Producer </th><th colspan="1" rowspan="1" class="confluenceTh"> Description </th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" class="external-link" href="file:name" rel="nofollow">file:name</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> String </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="c
 onfluenceTd"> refers to the file name (is relative to the starting directory, see note below) </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" class="external-link" href="file:name.ext" rel="nofollow">file:name.ext</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> String </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.3:</b> refers to the file extension only </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" class="external-link" href="file:name.noext" rel="nofollow">file:name.noext</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> String </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> 
 no </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> refers to the file name with no extension (is relative to the starting directory, see note below) </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" class="external-link" href="file:onlyname" rel="nofollow">file:onlyname</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> String </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.0:</b> refers to the file name only with no leading paths. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" class="external-link" href="file:onlyname.noext" rel="nofol
 low">file:onlyname.noext</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> String </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.0:</b> refers to the file name only with no extension and with no leading paths. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" class="external-link" href="file:ext" rel="nofollow">file:ext</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> String </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 1.6.1/Camel
  2.0:</b> refers to the file extension only </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" class="external-link" href="file:parent" rel="nofollow">file:parent</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> String </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> refers to the file parent </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" class="external-link" href="file:path" rel="nofollow">file:path</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> String </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="
 1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> refers to the file path </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" class="external-link" href="file:absolute" rel="nofollow">file:absolute</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> Boolean </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.0:</b> refers to whether the file is regarded as absolute or relative </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" class="external-link" href="file:absolute.path" rel="nofollow">file:absolute.path</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> String </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><t
 d colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> refers to the absolute file path </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" class="external-link" href="file:length" rel="nofollow">file:length</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> Long </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> refers to the file length returned as a Long type </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" class="external-link" href="file:size" rel="nofollow">file:size</a> </td><td colspan="1" rowspan="1" cl
 ass="confluenceTd"> Long </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.5:</b> refers to the file length returned as a Long type </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" class="external-link" href="file:modified" rel="nofollow">file:modified</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> Date </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.0:</b> refers to the file last modified returned as a Date type </td></tr><tr><td colspan="
 1" rowspan="1" class="confluenceTd"> date:<em>command:pattern</em> </td><td colspan="1" rowspan="1" class="confluenceTd"> String </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> for date formatting using the <tt>java.text.SimepleDataFormat</tt> patterns. Is an <b>extension</b> to the <a shape="rect" href="simple.html" title="Simple">Simple</a> language. Additional command is: <b>file</b> (consumers only) for the last modified timestamp of the file. Notice: all the commands from the <a shape="rect" href="simple.html" title="Simple">Simple</a> language can also be used. </td></tr></tbody></table>
+<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"> Expression </th><th colspan="1" rowspan="1" class="confluenceTh"> Type </th><th colspan="1" rowspan="1" class="confluenceTh"> File Consumer </th><th colspan="1" rowspan="1" class="confluenceTh"> File Producer </th><th colspan="1" rowspan="1" class="confluenceTh"> FTP Consumer </th><th colspan="1" rowspan="1" class="confluenceTh"> FTP Producer </th><th colspan="1" rowspan="1" class="confluenceTh"> Description </th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" class="external-link" href="file:name" rel="nofollow">file:name</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> String </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="c
 onfluenceTd"> refers to the file name (is relative to the starting directory, see note below) </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" class="external-link" href="file:name.ext" rel="nofollow">file:name.ext</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> String </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.3:</b> refers to the file extension only </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" class="external-link" href="file:name.noext" rel="nofollow">file:name.noext</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> String </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> 
 no </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> refers to the file name with no extension (is relative to the starting directory, see note below) </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" class="external-link" href="file:onlyname" rel="nofollow">file:onlyname</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> String </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> refers to the file name only with no leading paths. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" class="external-link" href="file:onlyname.noext" rel="nofollow">file:onlyname
 .noext</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> String </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> refers to the file name only with no extension and with no leading paths. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" class="external-link" href="file:ext" rel="nofollow">file:ext</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> String </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> refers to the file extension only </td></tr><tr><td cols
 pan="1" rowspan="1" class="confluenceTd"> <a shape="rect" class="external-link" href="file:parent" rel="nofollow">file:parent</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> String </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> refers to the file parent </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" class="external-link" href="file:path" rel="nofollow">file:path</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> String </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class
 ="confluenceTd"> refers to the file path </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" class="external-link" href="file:absolute" rel="nofollow">file:absolute</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> Boolean </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> refers to whether the file is regarded as absolute or relative </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" class="external-link" href="file:absolute.path" rel="nofollow">file:absolute.path</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> String </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" 
 class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> refers to the absolute file path </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" class="external-link" href="file:length" rel="nofollow">file:length</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> Long </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> refers to the file length returned as a Long type </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" class="external-link" href="file:size" rel="nofollow">file:size</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> Long </td><td colspan="1" rowspan="1" class="confluenceTd"> yes 
 </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.5:</b> refers to the file length returned as a Long type </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" class="external-link" href="file:modified" rel="nofollow">file:modified</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> Date </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> no </td><td colspan="1" rowspan="1" class="confluenceTd"> efers to the file last modified returned as a Date type </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> date:<em>command:pattern</em> </td><td colspan="1" rowspan="1" cla
 ss="confluenceTd"> String </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> yes </td><td colspan="1" rowspan="1" class="confluenceTd"> for date formatting using the <tt>java.text.SimepleDataFormat</tt> patterns. Is an <b>extension</b> to the <a shape="rect" href="simple.html" title="Simple">Simple</a> language. Additional command is: <b>file</b> (consumers only) for the last modified timestamp of the file. Notice: all the commands from the <a shape="rect" href="simple.html" title="Simple">Simple</a> language can also be used. </td></tr></tbody></table>
 </div>
 </div>
 
@@ -2312,7 +2301,7 @@ from(<span class="code-quote">"queue:foo
 
 <h3><a shape="rect" name="BookLanguagesAppendix-Namespaces"></a>Namespaces</h3>
 
-<p>In 1.3 onwards you can easily use namespaces with XPath expressions using the Namespaces helper class.</p>
+<p>You can easily use namespaces with XPath expressions using the Namespaces helper class.</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
 <pre class="code-java">Namespaces ns = <span class="code-keyword">new</span> Namespaces(<span class="code-quote">"c"</span>, <span class="code-quote">"http:<span class="code-comment">//acme.com/cheese"</span>);
@@ -2401,7 +2390,7 @@ from(<span class="code-quote">"direct:in
 &lt;beans xmlns=<span class="code-quote">"http://www.springframework.org/schema/beans"</span>
        <span class="code-keyword">xmlns:xsi</span>=<span class="code-quote">"http://www.w3.org/2001/XMLSchema-instance"</span>
        xsi:schemaLocation="
-       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
        http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd"&gt;
 
   <span class="code-tag">&lt;camelContext id=<span class="code-quote">"camel"</span> xmlns=<span class="code-quote">"http://activemq.apache.org/camel/schema/spring"</span> <span class="code-keyword">xmlns:foo</span>=<span class="code-quote">"http://example.com/person"</span>&gt;</span>
@@ -2549,8 +2538,6 @@ If neither is true the message is routed
 
 <p>i.e. cut and paste upper code to your own project in a different package and/or annotation name then add whatever namespace prefix/uris you want in scope when you use your annotation on a method parameter. Then when you use your annotation on a method parameter all the namespaces you want will be available for use in your XPath expression.</p>
 
-<p><b>NOTE</b> this feature is supported from Camel 1.6.1.</p>
-
 <p>For example</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
@@ -2797,7 +2784,7 @@ from(<span class="code-quote">"direct:st
 <p>The IN message body will be set as the <tt>contextItem</tt>. Besides this these Variables is also added as parameters:</p>
 
 <div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"> Variable </th><th colspan="1" rowspan="1" class="confluenceTh"> Type </th><th colspan="1" rowspan="1" class="confluenceTh"> Description </th><th colspan="1" rowspan="1" class="confluenceTh"> Support version </th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> exchange </td><td colspan="1" rowspan="1" class="confluenceTd"> Exchange </td><td colspan="1" rowspan="1" class="confluenceTd"> The current Exchange </td><td colspan="1" rowspan="1" class="confluenceTd">&#160;</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> in.body </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> The In message's body  </td><td colspan="1" rowspan="1" class="confluenceTd">  &gt;= 1.6.1 </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> out.body </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </
 td><td colspan="1" rowspan="1" class="confluenceTd"> The OUT message's body (if any)</td><td colspan="1" rowspan="1" class="confluenceTd"> &gt;= 1.6.1 </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> in.headers.*</td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> You can access the value of exchange.in.headers with key <b>foo</b> by using the variable which name is in.headers.foo</td><td colspan="1" rowspan="1" class="confluenceTd"> &gt;=1.6.1 </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> out.headers.* </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> You can access the value of exchange.out.headers with key <b>foo</b> by using the variable which name is out.headers.foo variable</td><td colspan="1" rowspan="1" class="confluenceTd"> &gt;=1.6.1 </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <b>key 
 name</b> </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> Any exchange.properties and exchange.in.headers (exchange.in.headers support was removed since camel 1.6.1) and any additional parameters set using <tt>setParameters(Map)</tt>. These parameters is added with they own key name, for instance if there is an IN header with the key name <b>foo</b> then its added as <b>foo</b>. </td><td colspan="1" rowspan="1" class="confluenceTd">&#160;</td></tr></tbody></table>
+<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"> Variable </th><th colspan="1" rowspan="1" class="confluenceTh"> Type </th><th colspan="1" rowspan="1" class="confluenceTh"> Description </th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> exchange </td><td colspan="1" rowspan="1" class="confluenceTd"> Exchange </td><td colspan="1" rowspan="1" class="confluenceTd"> The current Exchange </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> in.body </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> The In message's body  </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> out.body </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> The OUT message's body (if any)</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> in.headers.*</td><td colspan="1" rowspan="1" class=
 "confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> You can access the value of exchange.in.headers with key <b>foo</b> by using the variable which name is in.headers.foo</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> out.headers.* </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> You can access the value of exchange.out.headers with key <b>foo</b> by using the variable which name is out.headers.foo variable</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <b>key name</b> </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> Any exchange.properties and exchange.in.headers and any additional parameters set using <tt>setParameters(Map)</tt>. These parameters is added with they own key name, for instance if there is an IN header with the key name <b>foo</b> then its added as <b>foo</b>. </td></t
 r></tbody></table>
 </div>
 
 
@@ -2811,7 +2798,7 @@ from(<span class="code-quote">"direct:st
        <span class="code-keyword">xmlns:xsi</span>=<span class="code-quote">"http://www.w3.org/2001/XMLSchema-instance"</span>
        <span class="code-keyword">xmlns:foo</span>=<span class="code-quote">"http://example.com/person"</span>
        xsi:schemaLocation="
-       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
        http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd"&gt;
 
   <span class="code-tag">&lt;camelContext id=<span class="code-quote">"camel"</span> xmlns=<span class="code-quote">"http://activemq.apache.org/camel/schema/spring"</span>&gt;</span>
@@ -2895,7 +2882,7 @@ from(<span class="code-quote">"direct:st
 &lt;dependency&gt;
   &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
   &lt;artifactId&gt;camel-saxon&lt;/artifactId&gt;
-  &lt;version&gt;1.4.0&lt;/version&gt;
+  &lt;version&gt;x.x.x&lt;/version&gt;
 &lt;/dependency&gt;
 </pre>
 </div></div></div>



Mime
View raw message