camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r849069 - in /websites/production/camel/content: book-in-one-page.html cache/main.pageCache
Date Sat, 02 Feb 2013 12:24:15 GMT
Author: buildbot
Date: Sat Feb  2 12:24:14 2013
New Revision: 849069

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/book-in-one-page.html
    websites/production/camel/content/cache/main.pageCache

Modified: websites/production/camel/content/book-in-one-page.html
==============================================================================
--- websites/production/camel/content/book-in-one-page.html (original)
+++ websites/production/camel/content/book-in-one-page.html Sat Feb  2 12:24:14 2013
@@ -9766,10 +9766,10 @@ From <b>Camel 2.9</b> onwards you can ne
 
 <h3><a shape="rect" name="BookInOnePage-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"> camelContext.<b>OGNL</b> </td><td
colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1"
class="confluenceTd"> <b>Camel 2.11:</b> the CamelContext invoked using a Camel
OGNL expression. </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 colsp
 an="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="confluen
 ceTd"> 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 b
 ody </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="confluenceTd"> 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="conf
 luenceTd"> 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="confluenc
 eTd"> <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" 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.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"
cl
 ass="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="confluenceTd"> 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"> Strin
 g </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. </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"> 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" c
 lass="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"
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>
+<div class="confluenceTableSmall"><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"> camelContext.<b>OGNL</b> </td><td
colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1"
class="confluenceTd"> <b>Camel 2.11:</b> the CamelContext invoked using a Camel
OGNL expression. </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 colsp
 an="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="confluen
 ceTd"> 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 b
 ody </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="confluenceTd"> 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="conf
 luenceTd"> 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="confluenc
 eTd"> <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" 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.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"
cl
 ass="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="confluenceTd"> 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"> Strin
 g </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. </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"> 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" c
 lass="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"
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><tr><td
colspan="1" rowspan="1" class="confluenceTd"> type:name.field </td><td colspan="1"
rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd">
<b>Camel 2.11:</b> To refer to a type or field by its FQN name. To refer to a
field you can append .FIELD_NAME. For example you can refer to the constant field from Exchange
as: <tt>org.apache.camel.Exchange.FILE_NAME</tt> </td><td colspan="1"
rowspan="1" class="confluenceTd">.</td></tr></tbody></table>
+</div>
 </div>
-
 
 <h3><a shape="rect" name="BookInOnePage-OGNLexpressionsupport"></a>OGNL
expression support</h3>
 <p><b>Available as of Camel 2.3</b></p>
@@ -10148,6 +10148,31 @@ If the header is not convertible to Map 
 </pre>
 </div></div>
 
+<h4><a shape="rect" name="BookInOnePage-Referringtoconstantsorenums"></a>Referring
to constants or enums</h4>
+<p><b>Available as of Camel 2.11</b></p>
+
+<p>Suppose you have an enum for customers</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java"><span class="code-keyword">public</span> <span
class="code-keyword">enum</span> Customer {
+
+    GOLD, SILVER, BRONZE
+}
+</pre>
+</div></div>
+
+<p>And in a <a shape="rect" href="content-based-router.html" title="Content Based
Router">Content Based Router</a> we can use the <a shape="rect" href="simple.html"
title="Simple">Simple</a> language to refer to this enum, to check the message which
enum it matches.</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">from(<span class="code-quote">"direct:start"</span>)
+    .choice()
+        .when().simple(<span class="code-quote">"${header.customer} == ${type:org.apache.camel.processor.Customer.GOLD}"</span>)
+            .to(<span class="code-quote">"mock:gold"</span>)
+        .when().simple(<span class="code-quote">"${header.customer} == ${type:org.apache.camel.processor.Customer.SILVER}"</span>)
+            .to(<span class="code-quote">"mock:silver"</span>)
+        .otherwise()
+            .to(<span class="code-quote">"mock:other"</span>);
+</pre>
+</div></div>
+
 <h3><a shape="rect" name="BookInOnePage-UsingnewlinesortabsinXMLDSLs"></a>Using
new lines or tabs in XML DSLs</h3>
 <p><b>Available as of Camel 2.9.3</b></p>
 

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



Mime
View raw message