You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bu...@apache.org on 2013/09/06 10:19:35 UTC
svn commit: r877468 [1/2] - in /websites/production/camel/content: ./ cache/
Author: buildbot
Date: Fri Sep 6 08:19:34 2013
New Revision: 877468
Log:
Production update by buildbot for camel
Modified:
websites/production/camel/content/beanshell.html
websites/production/camel/content/book-in-one-page.html
websites/production/camel/content/book-languages-appendix.html
websites/production/camel/content/cache/main.pageCache
websites/production/camel/content/groovy.html
websites/production/camel/content/javascript.html
websites/production/camel/content/php.html
websites/production/camel/content/python.html
websites/production/camel/content/ruby.html
websites/production/camel/content/scripting-languages-context.html
websites/production/camel/content/scripting-languages.html
Modified: websites/production/camel/content/beanshell.html
==============================================================================
--- websites/production/camel/content/beanshell.html (original)
+++ websites/production/camel/content/beanshell.html Fri Sep 6 08:19:34 2013
@@ -121,54 +121,8 @@
</div>
-<h3><a shape="rect" name="BeanShell-Attributes"></a>Attributes</h3>
-
-<p>You can add your own attributes with the <tt>attribute(name, value)</tt> DSL method, such as:</p>
-
-<p>In the sample below we add an attribute <tt>user</tt> that is an object we already have instantiated as myUser. This object has a getFirstName() method that we want to set as header on the message. We use the groovy language to concat the first and last name into a single string that is returned.</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("name").groovy("'$user.firstName $user.lastName'").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<h3><a shape="rect" name="BeanShell-Anyscriptinglanguage"></a>Any scripting language</h3>
-<p>Camel can run any JSR-223 scripting languages using the <tt>script</tt> DSL method such as:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("firstName").script("jaskel", "user.firstName").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<p>This is a bit different using the Spring DSL where you use the <b>expression</b> element that doesn't support setting attributes (yet):</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
- <from uri="direct:in"/>
- <setHeader headerName="firstName">
- <expression language="jaskel">user.firstName</expression>
- </setHeader>
- <to uri="seda:users"/>
-]]></script>
-</div></div>
-
-<p>You can also use predicates e.g. in a Filter:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
- <filter>
- <language language="beanshell">request.getHeaders().get("Foo").equals("Bar")</language>
- <to uri="direct:next" />
- </filter>
-]]></script>
-</div></div>
-
<p>See <a shape="rect" href="scripting-languages.html" title="Scripting Languages">Scripting Languages</a> for the list of languages with explicit DSL support.</p>
-<p>Some languages without specific DSL support but known to work with these generic methods include:</p>
-<div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh">Language</th><th colspan="1" rowspan="1" class="confluenceTh">Implementation</th><th colspan="1" rowspan="1" class="confluenceTh">language="..." value</th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">BeanShell</td><td colspan="1" rowspan="1" class="confluenceTd"><a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/servicemix/m2-repo/org/beanshell/bsh/2.0b5/bsh-2.0b5.jar">BeanShell 2.0b5</a></td><td colspan="1" rowspan="1" class="confluenceTd"><tt>beanshell</tt> or <tt>bsh</tt></td></tr></tbody></table>
-</div>
-
-
<h3><a shape="rect" name="BeanShell-AdditionalargumentstoScriptingEngine"></a>Additional arguments to ScriptingEngine</h3>
<p><b>Available as of Camel 2.8</b></p>
@@ -236,7 +190,7 @@ This is done using the following syntax:
<p>If you use maven you could just add the following to your pom.xml, substituting the version number for the latest & greatest release (see <a shape="rect" href="download.html" title="Download">the download page for the latest versions</a>).</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-script</artifactId>
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 Fri Sep 6 08:19:34 2013
@@ -8970,54 +8970,8 @@ from("direct:a").recipientList(property(
</div>
-<h3><a shape="rect" name="BookInOnePage-Attributes"></a>Attributes</h3>
-
-<p>You can add your own attributes with the <tt>attribute(name, value)</tt> DSL method, such as:</p>
-
-<p>In the sample below we add an attribute <tt>user</tt> that is an object we already have instantiated as myUser. This object has a getFirstName() method that we want to set as header on the message. We use the groovy language to concat the first and last name into a single string that is returned.</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("name").groovy("'$user.firstName $user.lastName'").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<h3><a shape="rect" name="BookInOnePage-Anyscriptinglanguage"></a>Any scripting language</h3>
-<p>Camel can run any JSR-223 scripting languages using the <tt>script</tt> DSL method such as:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("firstName").script("jaskel", "user.firstName").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<p>This is a bit different using the Spring DSL where you use the <b>expression</b> element that doesn't support setting attributes (yet):</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
- <from uri="direct:in"/>
- <setHeader headerName="firstName">
- <expression language="jaskel">user.firstName</expression>
- </setHeader>
- <to uri="seda:users"/>
-]]></script>
-</div></div>
-
-<p>You can also use predicates e.g. in a Filter:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
- <filter>
- <language language="beanshell">request.getHeaders().get("Foo").equals("Bar")</language>
- <to uri="direct:next" />
- </filter>
-]]></script>
-</div></div>
-
<p>See <a shape="rect" href="scripting-languages.html" title="Scripting Languages">Scripting Languages</a> for the list of languages with explicit DSL support.</p>
-<p>Some languages without specific DSL support but known to work with these generic methods include:</p>
-<div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh">Language</th><th colspan="1" rowspan="1" class="confluenceTh">Implementation</th><th colspan="1" rowspan="1" class="confluenceTh">language="..." value</th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">BeanShell</td><td colspan="1" rowspan="1" class="confluenceTd"><a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/servicemix/m2-repo/org/beanshell/bsh/2.0b5/bsh-2.0b5.jar">BeanShell 2.0b5</a></td><td colspan="1" rowspan="1" class="confluenceTd"><tt>beanshell</tt> or <tt>bsh</tt></td></tr></tbody></table>
-</div>
-
-
<h3><a shape="rect" name="BookInOnePage-AdditionalargumentstoScriptingEngine"></a>Additional arguments to ScriptingEngine</h3>
<p><b>Available as of Camel 2.8</b></p>
@@ -9085,7 +9039,7 @@ This is done using the following syntax:
<p>If you use maven you could just add the following to your pom.xml, substituting the version number for the latest & greatest release (see <a shape="rect" href="download.html" title="Download">the download page for the latest versions</a>).</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-script</artifactId>
@@ -9135,54 +9089,8 @@ This is done using the following syntax:
</div>
-<h3><a shape="rect" name="BookInOnePage-Attributes"></a>Attributes</h3>
-
-<p>You can add your own attributes with the <tt>attribute(name, value)</tt> DSL method, such as:</p>
-
-<p>In the sample below we add an attribute <tt>user</tt> that is an object we already have instantiated as myUser. This object has a getFirstName() method that we want to set as header on the message. We use the groovy language to concat the first and last name into a single string that is returned.</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("name").groovy("'$user.firstName $user.lastName'").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<h3><a shape="rect" name="BookInOnePage-Anyscriptinglanguage"></a>Any scripting language</h3>
-<p>Camel can run any JSR-223 scripting languages using the <tt>script</tt> DSL method such as:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("firstName").script("jaskel", "user.firstName").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<p>This is a bit different using the Spring DSL where you use the <b>expression</b> element that doesn't support setting attributes (yet):</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
- <from uri="direct:in"/>
- <setHeader headerName="firstName">
- <expression language="jaskel">user.firstName</expression>
- </setHeader>
- <to uri="seda:users"/>
-]]></script>
-</div></div>
-
-<p>You can also use predicates e.g. in a Filter:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
- <filter>
- <language language="beanshell">request.getHeaders().get("Foo").equals("Bar")</language>
- <to uri="direct:next" />
- </filter>
-]]></script>
-</div></div>
-
<p>See <a shape="rect" href="scripting-languages.html" title="Scripting Languages">Scripting Languages</a> for the list of languages with explicit DSL support.</p>
-<p>Some languages without specific DSL support but known to work with these generic methods include:</p>
-<div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh">Language</th><th colspan="1" rowspan="1" class="confluenceTh">Implementation</th><th colspan="1" rowspan="1" class="confluenceTh">language="..." value</th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">BeanShell</td><td colspan="1" rowspan="1" class="confluenceTd"><a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/servicemix/m2-repo/org/beanshell/bsh/2.0b5/bsh-2.0b5.jar">BeanShell 2.0b5</a></td><td colspan="1" rowspan="1" class="confluenceTd"><tt>beanshell</tt> or <tt>bsh</tt></td></tr></tbody></table>
-</div>
-
-
<h3><a shape="rect" name="BookInOnePage-AdditionalargumentstoScriptingEngine"></a>Additional arguments to ScriptingEngine</h3>
<p><b>Available as of Camel 2.8</b></p>
@@ -9250,7 +9158,7 @@ This is done using the following syntax:
<p>If you use maven you could just add the following to your pom.xml, substituting the version number for the latest & greatest release (see <a shape="rect" href="download.html" title="Download">the download page for the latest versions</a>).</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-script</artifactId>
@@ -9310,54 +9218,8 @@ This is done using the following syntax:
</div>
-<h3><a shape="rect" name="BookInOnePage-Attributes"></a>Attributes</h3>
-
-<p>You can add your own attributes with the <tt>attribute(name, value)</tt> DSL method, such as:</p>
-
-<p>In the sample below we add an attribute <tt>user</tt> that is an object we already have instantiated as myUser. This object has a getFirstName() method that we want to set as header on the message. We use the groovy language to concat the first and last name into a single string that is returned.</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("name").groovy("'$user.firstName $user.lastName'").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<h3><a shape="rect" name="BookInOnePage-Anyscriptinglanguage"></a>Any scripting language</h3>
-<p>Camel can run any JSR-223 scripting languages using the <tt>script</tt> DSL method such as:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("firstName").script("jaskel", "user.firstName").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<p>This is a bit different using the Spring DSL where you use the <b>expression</b> element that doesn't support setting attributes (yet):</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
- <from uri="direct:in"/>
- <setHeader headerName="firstName">
- <expression language="jaskel">user.firstName</expression>
- </setHeader>
- <to uri="seda:users"/>
-]]></script>
-</div></div>
-
-<p>You can also use predicates e.g. in a Filter:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
- <filter>
- <language language="beanshell">request.getHeaders().get("Foo").equals("Bar")</language>
- <to uri="direct:next" />
- </filter>
-]]></script>
-</div></div>
-
<p>See <a shape="rect" href="scripting-languages.html" title="Scripting Languages">Scripting Languages</a> for the list of languages with explicit DSL support.</p>
-<p>Some languages without specific DSL support but known to work with these generic methods include:</p>
-<div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh">Language</th><th colspan="1" rowspan="1" class="confluenceTh">Implementation</th><th colspan="1" rowspan="1" class="confluenceTh">language="..." value</th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">BeanShell</td><td colspan="1" rowspan="1" class="confluenceTd"><a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/servicemix/m2-repo/org/beanshell/bsh/2.0b5/bsh-2.0b5.jar">BeanShell 2.0b5</a></td><td colspan="1" rowspan="1" class="confluenceTd"><tt>beanshell</tt> or <tt>bsh</tt></td></tr></tbody></table>
-</div>
-
-
<h3><a shape="rect" name="BookInOnePage-AdditionalargumentstoScriptingEngine"></a>Additional arguments to ScriptingEngine</h3>
<p><b>Available as of Camel 2.8</b></p>
@@ -9425,7 +9287,7 @@ This is done using the following syntax:
<p>If you use maven you could just add the following to your pom.xml, substituting the version number for the latest & greatest release (see <a shape="rect" href="download.html" title="Download">the download page for the latest versions</a>).</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-script</artifactId>
@@ -9477,54 +9339,8 @@ from("queue:foo").filter(groovy("request
</div>
-<h3><a shape="rect" name="BookInOnePage-Attributes"></a>Attributes</h3>
-
-<p>You can add your own attributes with the <tt>attribute(name, value)</tt> DSL method, such as:</p>
-
-<p>In the sample below we add an attribute <tt>user</tt> that is an object we already have instantiated as myUser. This object has a getFirstName() method that we want to set as header on the message. We use the groovy language to concat the first and last name into a single string that is returned.</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("name").groovy("'$user.firstName $user.lastName'").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<h3><a shape="rect" name="BookInOnePage-Anyscriptinglanguage"></a>Any scripting language</h3>
-<p>Camel can run any JSR-223 scripting languages using the <tt>script</tt> DSL method such as:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("firstName").script("jaskel", "user.firstName").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<p>This is a bit different using the Spring DSL where you use the <b>expression</b> element that doesn't support setting attributes (yet):</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
- <from uri="direct:in"/>
- <setHeader headerName="firstName">
- <expression language="jaskel">user.firstName</expression>
- </setHeader>
- <to uri="seda:users"/>
-]]></script>
-</div></div>
-
-<p>You can also use predicates e.g. in a Filter:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
- <filter>
- <language language="beanshell">request.getHeaders().get("Foo").equals("Bar")</language>
- <to uri="direct:next" />
- </filter>
-]]></script>
-</div></div>
-
<p>See <a shape="rect" href="scripting-languages.html" title="Scripting Languages">Scripting Languages</a> for the list of languages with explicit DSL support.</p>
-<p>Some languages without specific DSL support but known to work with these generic methods include:</p>
-<div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh">Language</th><th colspan="1" rowspan="1" class="confluenceTh">Implementation</th><th colspan="1" rowspan="1" class="confluenceTh">language="..." value</th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">BeanShell</td><td colspan="1" rowspan="1" class="confluenceTd"><a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/servicemix/m2-repo/org/beanshell/bsh/2.0b5/bsh-2.0b5.jar">BeanShell 2.0b5</a></td><td colspan="1" rowspan="1" class="confluenceTd"><tt>beanshell</tt> or <tt>bsh</tt></td></tr></tbody></table>
-</div>
-
-
<h3><a shape="rect" name="BookInOnePage-AdditionalargumentstoScriptingEngine"></a>Additional arguments to ScriptingEngine</h3>
<p><b>Available as of Camel 2.8</b></p>
@@ -9592,7 +9408,7 @@ This is done using the following syntax:
<p>If you use maven you could just add the following to your pom.xml, substituting the version number for the latest & greatest release (see <a shape="rect" href="download.html" title="Download">the download page for the latest versions</a>).</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-script</artifactId>
@@ -9652,54 +9468,8 @@ This is done using the following syntax:
</div>
-<h3><a shape="rect" name="BookInOnePage-Attributes"></a>Attributes</h3>
-
-<p>You can add your own attributes with the <tt>attribute(name, value)</tt> DSL method, such as:</p>
-
-<p>In the sample below we add an attribute <tt>user</tt> that is an object we already have instantiated as myUser. This object has a getFirstName() method that we want to set as header on the message. We use the groovy language to concat the first and last name into a single string that is returned.</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("name").groovy("'$user.firstName $user.lastName'").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<h3><a shape="rect" name="BookInOnePage-Anyscriptinglanguage"></a>Any scripting language</h3>
-<p>Camel can run any JSR-223 scripting languages using the <tt>script</tt> DSL method such as:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("firstName").script("jaskel", "user.firstName").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<p>This is a bit different using the Spring DSL where you use the <b>expression</b> element that doesn't support setting attributes (yet):</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
- <from uri="direct:in"/>
- <setHeader headerName="firstName">
- <expression language="jaskel">user.firstName</expression>
- </setHeader>
- <to uri="seda:users"/>
-]]></script>
-</div></div>
-
-<p>You can also use predicates e.g. in a Filter:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
- <filter>
- <language language="beanshell">request.getHeaders().get("Foo").equals("Bar")</language>
- <to uri="direct:next" />
- </filter>
-]]></script>
-</div></div>
-
<p>See <a shape="rect" href="scripting-languages.html" title="Scripting Languages">Scripting Languages</a> for the list of languages with explicit DSL support.</p>
-<p>Some languages without specific DSL support but known to work with these generic methods include:</p>
-<div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh">Language</th><th colspan="1" rowspan="1" class="confluenceTh">Implementation</th><th colspan="1" rowspan="1" class="confluenceTh">language="..." value</th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">BeanShell</td><td colspan="1" rowspan="1" class="confluenceTd"><a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/servicemix/m2-repo/org/beanshell/bsh/2.0b5/bsh-2.0b5.jar">BeanShell 2.0b5</a></td><td colspan="1" rowspan="1" class="confluenceTd"><tt>beanshell</tt> or <tt>bsh</tt></td></tr></tbody></table>
-</div>
-
-
<h3><a shape="rect" name="BookInOnePage-AdditionalargumentstoScriptingEngine"></a>Additional arguments to ScriptingEngine</h3>
<p><b>Available as of Camel 2.8</b></p>
@@ -9767,7 +9537,7 @@ This is done using the following syntax:
<p>If you use maven you could just add the following to your pom.xml, substituting the version number for the latest & greatest release (see <a shape="rect" href="download.html" title="Download">the download page for the latest versions</a>).</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-script</artifactId>
@@ -9797,54 +9567,8 @@ This is done using the following syntax:
</div>
-<h3><a shape="rect" name="BookInOnePage-Attributes"></a>Attributes</h3>
-
-<p>You can add your own attributes with the <tt>attribute(name, value)</tt> DSL method, such as:</p>
-
-<p>In the sample below we add an attribute <tt>user</tt> that is an object we already have instantiated as myUser. This object has a getFirstName() method that we want to set as header on the message. We use the groovy language to concat the first and last name into a single string that is returned.</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("name").groovy("'$user.firstName $user.lastName'").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<h3><a shape="rect" name="BookInOnePage-Anyscriptinglanguage"></a>Any scripting language</h3>
-<p>Camel can run any JSR-223 scripting languages using the <tt>script</tt> DSL method such as:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("firstName").script("jaskel", "user.firstName").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<p>This is a bit different using the Spring DSL where you use the <b>expression</b> element that doesn't support setting attributes (yet):</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
- <from uri="direct:in"/>
- <setHeader headerName="firstName">
- <expression language="jaskel">user.firstName</expression>
- </setHeader>
- <to uri="seda:users"/>
-]]></script>
-</div></div>
-
-<p>You can also use predicates e.g. in a Filter:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
- <filter>
- <language language="beanshell">request.getHeaders().get("Foo").equals("Bar")</language>
- <to uri="direct:next" />
- </filter>
-]]></script>
-</div></div>
-
<p>See <a shape="rect" href="scripting-languages.html" title="Scripting Languages">Scripting Languages</a> for the list of languages with explicit DSL support.</p>
-<p>Some languages without specific DSL support but known to work with these generic methods include:</p>
-<div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh">Language</th><th colspan="1" rowspan="1" class="confluenceTh">Implementation</th><th colspan="1" rowspan="1" class="confluenceTh">language="..." value</th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">BeanShell</td><td colspan="1" rowspan="1" class="confluenceTd"><a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/servicemix/m2-repo/org/beanshell/bsh/2.0b5/bsh-2.0b5.jar">BeanShell 2.0b5</a></td><td colspan="1" rowspan="1" class="confluenceTd"><tt>beanshell</tt> or <tt>bsh</tt></td></tr></tbody></table>
-</div>
-
-
<h3><a shape="rect" name="BookInOnePage-AdditionalargumentstoScriptingEngine"></a>Additional arguments to ScriptingEngine</h3>
<p><b>Available as of Camel 2.8</b></p>
@@ -9912,7 +9636,7 @@ This is done using the following syntax:
<p>If you use maven you could just add the following to your pom.xml, substituting the version number for the latest & greatest release (see <a shape="rect" href="download.html" title="Download">the download page for the latest versions</a>).</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-script</artifactId>
@@ -9972,54 +9696,8 @@ This is done using the following syntax:
</div>
-<h3><a shape="rect" name="BookInOnePage-Attributes"></a>Attributes</h3>
-
-<p>You can add your own attributes with the <tt>attribute(name, value)</tt> DSL method, such as:</p>
-
-<p>In the sample below we add an attribute <tt>user</tt> that is an object we already have instantiated as myUser. This object has a getFirstName() method that we want to set as header on the message. We use the groovy language to concat the first and last name into a single string that is returned.</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("name").groovy("'$user.firstName $user.lastName'").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<h3><a shape="rect" name="BookInOnePage-Anyscriptinglanguage"></a>Any scripting language</h3>
-<p>Camel can run any JSR-223 scripting languages using the <tt>script</tt> DSL method such as:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("firstName").script("jaskel", "user.firstName").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<p>This is a bit different using the Spring DSL where you use the <b>expression</b> element that doesn't support setting attributes (yet):</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
- <from uri="direct:in"/>
- <setHeader headerName="firstName">
- <expression language="jaskel">user.firstName</expression>
- </setHeader>
- <to uri="seda:users"/>
-]]></script>
-</div></div>
-
-<p>You can also use predicates e.g. in a Filter:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
- <filter>
- <language language="beanshell">request.getHeaders().get("Foo").equals("Bar")</language>
- <to uri="direct:next" />
- </filter>
-]]></script>
-</div></div>
-
<p>See <a shape="rect" href="scripting-languages.html" title="Scripting Languages">Scripting Languages</a> for the list of languages with explicit DSL support.</p>
-<p>Some languages without specific DSL support but known to work with these generic methods include:</p>
-<div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh">Language</th><th colspan="1" rowspan="1" class="confluenceTh">Implementation</th><th colspan="1" rowspan="1" class="confluenceTh">language="..." value</th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">BeanShell</td><td colspan="1" rowspan="1" class="confluenceTd"><a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/servicemix/m2-repo/org/beanshell/bsh/2.0b5/bsh-2.0b5.jar">BeanShell 2.0b5</a></td><td colspan="1" rowspan="1" class="confluenceTd"><tt>beanshell</tt> or <tt>bsh</tt></td></tr></tbody></table>
-</div>
-
-
<h3><a shape="rect" name="BookInOnePage-AdditionalargumentstoScriptingEngine"></a>Additional arguments to ScriptingEngine</h3>
<p><b>Available as of Camel 2.8</b></p>
@@ -10087,7 +9765,7 @@ This is done using the following syntax:
<p>If you use maven you could just add the following to your pom.xml, substituting the version number for the latest & greatest release (see <a shape="rect" href="download.html" title="Download">the download page for the latest versions</a>).</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-script</artifactId>
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 6 08:19:34 2013
@@ -669,54 +669,8 @@ from("direct:a").recipientList(property(
</div>
-<h3><a shape="rect" name="BookLanguagesAppendix-Attributes"></a>Attributes</h3>
-
-<p>You can add your own attributes with the <tt>attribute(name, value)</tt> DSL method, such as:</p>
-
-<p>In the sample below we add an attribute <tt>user</tt> that is an object we already have instantiated as myUser. This object has a getFirstName() method that we want to set as header on the message. We use the groovy language to concat the first and last name into a single string that is returned.</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("name").groovy("'$user.firstName $user.lastName'").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<h3><a shape="rect" name="BookLanguagesAppendix-Anyscriptinglanguage"></a>Any scripting language</h3>
-<p>Camel can run any JSR-223 scripting languages using the <tt>script</tt> DSL method such as:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("firstName").script("jaskel", "user.firstName").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<p>This is a bit different using the Spring DSL where you use the <b>expression</b> element that doesn't support setting attributes (yet):</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
- <from uri="direct:in"/>
- <setHeader headerName="firstName">
- <expression language="jaskel">user.firstName</expression>
- </setHeader>
- <to uri="seda:users"/>
-]]></script>
-</div></div>
-
-<p>You can also use predicates e.g. in a Filter:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
- <filter>
- <language language="beanshell">request.getHeaders().get("Foo").equals("Bar")</language>
- <to uri="direct:next" />
- </filter>
-]]></script>
-</div></div>
-
<p>See <a shape="rect" href="scripting-languages.html" title="Scripting Languages">Scripting Languages</a> for the list of languages with explicit DSL support.</p>
-<p>Some languages without specific DSL support but known to work with these generic methods include:</p>
-<div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh">Language</th><th colspan="1" rowspan="1" class="confluenceTh">Implementation</th><th colspan="1" rowspan="1" class="confluenceTh">language="..." value</th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">BeanShell</td><td colspan="1" rowspan="1" class="confluenceTd"><a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/servicemix/m2-repo/org/beanshell/bsh/2.0b5/bsh-2.0b5.jar">BeanShell 2.0b5</a></td><td colspan="1" rowspan="1" class="confluenceTd"><tt>beanshell</tt> or <tt>bsh</tt></td></tr></tbody></table>
-</div>
-
-
<h3><a shape="rect" name="BookLanguagesAppendix-AdditionalargumentstoScriptingEngine"></a>Additional arguments to ScriptingEngine</h3>
<p><b>Available as of Camel 2.8</b></p>
@@ -784,7 +738,7 @@ This is done using the following syntax:
<p>If you use maven you could just add the following to your pom.xml, substituting the version number for the latest & greatest release (see <a shape="rect" href="download.html" title="Download">the download page for the latest versions</a>).</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-script</artifactId>
@@ -834,54 +788,8 @@ This is done using the following syntax:
</div>
-<h3><a shape="rect" name="BookLanguagesAppendix-Attributes"></a>Attributes</h3>
-
-<p>You can add your own attributes with the <tt>attribute(name, value)</tt> DSL method, such as:</p>
-
-<p>In the sample below we add an attribute <tt>user</tt> that is an object we already have instantiated as myUser. This object has a getFirstName() method that we want to set as header on the message. We use the groovy language to concat the first and last name into a single string that is returned.</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("name").groovy("'$user.firstName $user.lastName'").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<h3><a shape="rect" name="BookLanguagesAppendix-Anyscriptinglanguage"></a>Any scripting language</h3>
-<p>Camel can run any JSR-223 scripting languages using the <tt>script</tt> DSL method such as:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("firstName").script("jaskel", "user.firstName").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<p>This is a bit different using the Spring DSL where you use the <b>expression</b> element that doesn't support setting attributes (yet):</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
- <from uri="direct:in"/>
- <setHeader headerName="firstName">
- <expression language="jaskel">user.firstName</expression>
- </setHeader>
- <to uri="seda:users"/>
-]]></script>
-</div></div>
-
-<p>You can also use predicates e.g. in a Filter:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
- <filter>
- <language language="beanshell">request.getHeaders().get("Foo").equals("Bar")</language>
- <to uri="direct:next" />
- </filter>
-]]></script>
-</div></div>
-
<p>See <a shape="rect" href="scripting-languages.html" title="Scripting Languages">Scripting Languages</a> for the list of languages with explicit DSL support.</p>
-<p>Some languages without specific DSL support but known to work with these generic methods include:</p>
-<div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh">Language</th><th colspan="1" rowspan="1" class="confluenceTh">Implementation</th><th colspan="1" rowspan="1" class="confluenceTh">language="..." value</th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">BeanShell</td><td colspan="1" rowspan="1" class="confluenceTd"><a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/servicemix/m2-repo/org/beanshell/bsh/2.0b5/bsh-2.0b5.jar">BeanShell 2.0b5</a></td><td colspan="1" rowspan="1" class="confluenceTd"><tt>beanshell</tt> or <tt>bsh</tt></td></tr></tbody></table>
-</div>
-
-
<h3><a shape="rect" name="BookLanguagesAppendix-AdditionalargumentstoScriptingEngine"></a>Additional arguments to ScriptingEngine</h3>
<p><b>Available as of Camel 2.8</b></p>
@@ -949,7 +857,7 @@ This is done using the following syntax:
<p>If you use maven you could just add the following to your pom.xml, substituting the version number for the latest & greatest release (see <a shape="rect" href="download.html" title="Download">the download page for the latest versions</a>).</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-script</artifactId>
@@ -1009,54 +917,8 @@ This is done using the following syntax:
</div>
-<h3><a shape="rect" name="BookLanguagesAppendix-Attributes"></a>Attributes</h3>
-
-<p>You can add your own attributes with the <tt>attribute(name, value)</tt> DSL method, such as:</p>
-
-<p>In the sample below we add an attribute <tt>user</tt> that is an object we already have instantiated as myUser. This object has a getFirstName() method that we want to set as header on the message. We use the groovy language to concat the first and last name into a single string that is returned.</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("name").groovy("'$user.firstName $user.lastName'").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<h3><a shape="rect" name="BookLanguagesAppendix-Anyscriptinglanguage"></a>Any scripting language</h3>
-<p>Camel can run any JSR-223 scripting languages using the <tt>script</tt> DSL method such as:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("firstName").script("jaskel", "user.firstName").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<p>This is a bit different using the Spring DSL where you use the <b>expression</b> element that doesn't support setting attributes (yet):</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
- <from uri="direct:in"/>
- <setHeader headerName="firstName">
- <expression language="jaskel">user.firstName</expression>
- </setHeader>
- <to uri="seda:users"/>
-]]></script>
-</div></div>
-
-<p>You can also use predicates e.g. in a Filter:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
- <filter>
- <language language="beanshell">request.getHeaders().get("Foo").equals("Bar")</language>
- <to uri="direct:next" />
- </filter>
-]]></script>
-</div></div>
-
<p>See <a shape="rect" href="scripting-languages.html" title="Scripting Languages">Scripting Languages</a> for the list of languages with explicit DSL support.</p>
-<p>Some languages without specific DSL support but known to work with these generic methods include:</p>
-<div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh">Language</th><th colspan="1" rowspan="1" class="confluenceTh">Implementation</th><th colspan="1" rowspan="1" class="confluenceTh">language="..." value</th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">BeanShell</td><td colspan="1" rowspan="1" class="confluenceTd"><a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/servicemix/m2-repo/org/beanshell/bsh/2.0b5/bsh-2.0b5.jar">BeanShell 2.0b5</a></td><td colspan="1" rowspan="1" class="confluenceTd"><tt>beanshell</tt> or <tt>bsh</tt></td></tr></tbody></table>
-</div>
-
-
<h3><a shape="rect" name="BookLanguagesAppendix-AdditionalargumentstoScriptingEngine"></a>Additional arguments to ScriptingEngine</h3>
<p><b>Available as of Camel 2.8</b></p>
@@ -1124,7 +986,7 @@ This is done using the following syntax:
<p>If you use maven you could just add the following to your pom.xml, substituting the version number for the latest & greatest release (see <a shape="rect" href="download.html" title="Download">the download page for the latest versions</a>).</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-script</artifactId>
@@ -1176,54 +1038,8 @@ from("queue:foo").filter(groovy("request
</div>
-<h3><a shape="rect" name="BookLanguagesAppendix-Attributes"></a>Attributes</h3>
-
-<p>You can add your own attributes with the <tt>attribute(name, value)</tt> DSL method, such as:</p>
-
-<p>In the sample below we add an attribute <tt>user</tt> that is an object we already have instantiated as myUser. This object has a getFirstName() method that we want to set as header on the message. We use the groovy language to concat the first and last name into a single string that is returned.</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("name").groovy("'$user.firstName $user.lastName'").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<h3><a shape="rect" name="BookLanguagesAppendix-Anyscriptinglanguage"></a>Any scripting language</h3>
-<p>Camel can run any JSR-223 scripting languages using the <tt>script</tt> DSL method such as:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("firstName").script("jaskel", "user.firstName").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<p>This is a bit different using the Spring DSL where you use the <b>expression</b> element that doesn't support setting attributes (yet):</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
- <from uri="direct:in"/>
- <setHeader headerName="firstName">
- <expression language="jaskel">user.firstName</expression>
- </setHeader>
- <to uri="seda:users"/>
-]]></script>
-</div></div>
-
-<p>You can also use predicates e.g. in a Filter:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
- <filter>
- <language language="beanshell">request.getHeaders().get("Foo").equals("Bar")</language>
- <to uri="direct:next" />
- </filter>
-]]></script>
-</div></div>
-
<p>See <a shape="rect" href="scripting-languages.html" title="Scripting Languages">Scripting Languages</a> for the list of languages with explicit DSL support.</p>
-<p>Some languages without specific DSL support but known to work with these generic methods include:</p>
-<div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh">Language</th><th colspan="1" rowspan="1" class="confluenceTh">Implementation</th><th colspan="1" rowspan="1" class="confluenceTh">language="..." value</th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">BeanShell</td><td colspan="1" rowspan="1" class="confluenceTd"><a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/servicemix/m2-repo/org/beanshell/bsh/2.0b5/bsh-2.0b5.jar">BeanShell 2.0b5</a></td><td colspan="1" rowspan="1" class="confluenceTd"><tt>beanshell</tt> or <tt>bsh</tt></td></tr></tbody></table>
-</div>
-
-
<h3><a shape="rect" name="BookLanguagesAppendix-AdditionalargumentstoScriptingEngine"></a>Additional arguments to ScriptingEngine</h3>
<p><b>Available as of Camel 2.8</b></p>
@@ -1291,7 +1107,7 @@ This is done using the following syntax:
<p>If you use maven you could just add the following to your pom.xml, substituting the version number for the latest & greatest release (see <a shape="rect" href="download.html" title="Download">the download page for the latest versions</a>).</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-script</artifactId>
@@ -1351,54 +1167,8 @@ This is done using the following syntax:
</div>
-<h3><a shape="rect" name="BookLanguagesAppendix-Attributes"></a>Attributes</h3>
-
-<p>You can add your own attributes with the <tt>attribute(name, value)</tt> DSL method, such as:</p>
-
-<p>In the sample below we add an attribute <tt>user</tt> that is an object we already have instantiated as myUser. This object has a getFirstName() method that we want to set as header on the message. We use the groovy language to concat the first and last name into a single string that is returned.</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("name").groovy("'$user.firstName $user.lastName'").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<h3><a shape="rect" name="BookLanguagesAppendix-Anyscriptinglanguage"></a>Any scripting language</h3>
-<p>Camel can run any JSR-223 scripting languages using the <tt>script</tt> DSL method such as:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("firstName").script("jaskel", "user.firstName").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<p>This is a bit different using the Spring DSL where you use the <b>expression</b> element that doesn't support setting attributes (yet):</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
- <from uri="direct:in"/>
- <setHeader headerName="firstName">
- <expression language="jaskel">user.firstName</expression>
- </setHeader>
- <to uri="seda:users"/>
-]]></script>
-</div></div>
-
-<p>You can also use predicates e.g. in a Filter:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
- <filter>
- <language language="beanshell">request.getHeaders().get("Foo").equals("Bar")</language>
- <to uri="direct:next" />
- </filter>
-]]></script>
-</div></div>
-
<p>See <a shape="rect" href="scripting-languages.html" title="Scripting Languages">Scripting Languages</a> for the list of languages with explicit DSL support.</p>
-<p>Some languages without specific DSL support but known to work with these generic methods include:</p>
-<div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh">Language</th><th colspan="1" rowspan="1" class="confluenceTh">Implementation</th><th colspan="1" rowspan="1" class="confluenceTh">language="..." value</th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">BeanShell</td><td colspan="1" rowspan="1" class="confluenceTd"><a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/servicemix/m2-repo/org/beanshell/bsh/2.0b5/bsh-2.0b5.jar">BeanShell 2.0b5</a></td><td colspan="1" rowspan="1" class="confluenceTd"><tt>beanshell</tt> or <tt>bsh</tt></td></tr></tbody></table>
-</div>
-
-
<h3><a shape="rect" name="BookLanguagesAppendix-AdditionalargumentstoScriptingEngine"></a>Additional arguments to ScriptingEngine</h3>
<p><b>Available as of Camel 2.8</b></p>
@@ -1466,7 +1236,7 @@ This is done using the following syntax:
<p>If you use maven you could just add the following to your pom.xml, substituting the version number for the latest & greatest release (see <a shape="rect" href="download.html" title="Download">the download page for the latest versions</a>).</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-script</artifactId>
@@ -1496,54 +1266,8 @@ This is done using the following syntax:
</div>
-<h3><a shape="rect" name="BookLanguagesAppendix-Attributes"></a>Attributes</h3>
-
-<p>You can add your own attributes with the <tt>attribute(name, value)</tt> DSL method, such as:</p>
-
-<p>In the sample below we add an attribute <tt>user</tt> that is an object we already have instantiated as myUser. This object has a getFirstName() method that we want to set as header on the message. We use the groovy language to concat the first and last name into a single string that is returned.</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("name").groovy("'$user.firstName $user.lastName'").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<h3><a shape="rect" name="BookLanguagesAppendix-Anyscriptinglanguage"></a>Any scripting language</h3>
-<p>Camel can run any JSR-223 scripting languages using the <tt>script</tt> DSL method such as:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("firstName").script("jaskel", "user.firstName").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<p>This is a bit different using the Spring DSL where you use the <b>expression</b> element that doesn't support setting attributes (yet):</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
- <from uri="direct:in"/>
- <setHeader headerName="firstName">
- <expression language="jaskel">user.firstName</expression>
- </setHeader>
- <to uri="seda:users"/>
-]]></script>
-</div></div>
-
-<p>You can also use predicates e.g. in a Filter:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
- <filter>
- <language language="beanshell">request.getHeaders().get("Foo").equals("Bar")</language>
- <to uri="direct:next" />
- </filter>
-]]></script>
-</div></div>
-
<p>See <a shape="rect" href="scripting-languages.html" title="Scripting Languages">Scripting Languages</a> for the list of languages with explicit DSL support.</p>
-<p>Some languages without specific DSL support but known to work with these generic methods include:</p>
-<div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh">Language</th><th colspan="1" rowspan="1" class="confluenceTh">Implementation</th><th colspan="1" rowspan="1" class="confluenceTh">language="..." value</th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">BeanShell</td><td colspan="1" rowspan="1" class="confluenceTd"><a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/servicemix/m2-repo/org/beanshell/bsh/2.0b5/bsh-2.0b5.jar">BeanShell 2.0b5</a></td><td colspan="1" rowspan="1" class="confluenceTd"><tt>beanshell</tt> or <tt>bsh</tt></td></tr></tbody></table>
-</div>
-
-
<h3><a shape="rect" name="BookLanguagesAppendix-AdditionalargumentstoScriptingEngine"></a>Additional arguments to ScriptingEngine</h3>
<p><b>Available as of Camel 2.8</b></p>
@@ -1611,7 +1335,7 @@ This is done using the following syntax:
<p>If you use maven you could just add the following to your pom.xml, substituting the version number for the latest & greatest release (see <a shape="rect" href="download.html" title="Download">the download page for the latest versions</a>).</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-script</artifactId>
@@ -1671,54 +1395,8 @@ This is done using the following syntax:
</div>
-<h3><a shape="rect" name="BookLanguagesAppendix-Attributes"></a>Attributes</h3>
-
-<p>You can add your own attributes with the <tt>attribute(name, value)</tt> DSL method, such as:</p>
-
-<p>In the sample below we add an attribute <tt>user</tt> that is an object we already have instantiated as myUser. This object has a getFirstName() method that we want to set as header on the message. We use the groovy language to concat the first and last name into a single string that is returned.</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("name").groovy("'$user.firstName $user.lastName'").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<h3><a shape="rect" name="BookLanguagesAppendix-Anyscriptinglanguage"></a>Any scripting language</h3>
-<p>Camel can run any JSR-223 scripting languages using the <tt>script</tt> DSL method such as:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("firstName").script("jaskel", "user.firstName").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<p>This is a bit different using the Spring DSL where you use the <b>expression</b> element that doesn't support setting attributes (yet):</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
- <from uri="direct:in"/>
- <setHeader headerName="firstName">
- <expression language="jaskel">user.firstName</expression>
- </setHeader>
- <to uri="seda:users"/>
-]]></script>
-</div></div>
-
-<p>You can also use predicates e.g. in a Filter:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
- <filter>
- <language language="beanshell">request.getHeaders().get("Foo").equals("Bar")</language>
- <to uri="direct:next" />
- </filter>
-]]></script>
-</div></div>
-
<p>See <a shape="rect" href="scripting-languages.html" title="Scripting Languages">Scripting Languages</a> for the list of languages with explicit DSL support.</p>
-<p>Some languages without specific DSL support but known to work with these generic methods include:</p>
-<div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh">Language</th><th colspan="1" rowspan="1" class="confluenceTh">Implementation</th><th colspan="1" rowspan="1" class="confluenceTh">language="..." value</th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">BeanShell</td><td colspan="1" rowspan="1" class="confluenceTd"><a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/servicemix/m2-repo/org/beanshell/bsh/2.0b5/bsh-2.0b5.jar">BeanShell 2.0b5</a></td><td colspan="1" rowspan="1" class="confluenceTd"><tt>beanshell</tt> or <tt>bsh</tt></td></tr></tbody></table>
-</div>
-
-
<h3><a shape="rect" name="BookLanguagesAppendix-AdditionalargumentstoScriptingEngine"></a>Additional arguments to ScriptingEngine</h3>
<p><b>Available as of Camel 2.8</b></p>
@@ -1786,7 +1464,7 @@ This is done using the following syntax:
<p>If you use maven you could just add the following to your pom.xml, substituting the version number for the latest & greatest release (see <a shape="rect" href="download.html" title="Download">the download page for the latest versions</a>).</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-script</artifactId>
Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.
Modified: websites/production/camel/content/groovy.html
==============================================================================
--- websites/production/camel/content/groovy.html (original)
+++ websites/production/camel/content/groovy.html Fri Sep 6 08:19:34 2013
@@ -129,54 +129,8 @@ from("queue:foo").filter(groovy("request
</div>
-<h3><a shape="rect" name="Groovy-Attributes"></a>Attributes</h3>
-
-<p>You can add your own attributes with the <tt>attribute(name, value)</tt> DSL method, such as:</p>
-
-<p>In the sample below we add an attribute <tt>user</tt> that is an object we already have instantiated as myUser. This object has a getFirstName() method that we want to set as header on the message. We use the groovy language to concat the first and last name into a single string that is returned.</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("name").groovy("'$user.firstName $user.lastName'").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<h3><a shape="rect" name="Groovy-Anyscriptinglanguage"></a>Any scripting language</h3>
-<p>Camel can run any JSR-223 scripting languages using the <tt>script</tt> DSL method such as:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("firstName").script("jaskel", "user.firstName").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<p>This is a bit different using the Spring DSL where you use the <b>expression</b> element that doesn't support setting attributes (yet):</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
- <from uri="direct:in"/>
- <setHeader headerName="firstName">
- <expression language="jaskel">user.firstName</expression>
- </setHeader>
- <to uri="seda:users"/>
-]]></script>
-</div></div>
-
-<p>You can also use predicates e.g. in a Filter:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
- <filter>
- <language language="beanshell">request.getHeaders().get("Foo").equals("Bar")</language>
- <to uri="direct:next" />
- </filter>
-]]></script>
-</div></div>
-
<p>See <a shape="rect" href="scripting-languages.html" title="Scripting Languages">Scripting Languages</a> for the list of languages with explicit DSL support.</p>
-<p>Some languages without specific DSL support but known to work with these generic methods include:</p>
-<div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh">Language</th><th colspan="1" rowspan="1" class="confluenceTh">Implementation</th><th colspan="1" rowspan="1" class="confluenceTh">language="..." value</th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">BeanShell</td><td colspan="1" rowspan="1" class="confluenceTd"><a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/servicemix/m2-repo/org/beanshell/bsh/2.0b5/bsh-2.0b5.jar">BeanShell 2.0b5</a></td><td colspan="1" rowspan="1" class="confluenceTd"><tt>beanshell</tt> or <tt>bsh</tt></td></tr></tbody></table>
-</div>
-
-
<h3><a shape="rect" name="Groovy-AdditionalargumentstoScriptingEngine"></a>Additional arguments to ScriptingEngine</h3>
<p><b>Available as of Camel 2.8</b></p>
@@ -244,7 +198,7 @@ This is done using the following syntax:
<p>If you use maven you could just add the following to your pom.xml, substituting the version number for the latest & greatest release (see <a shape="rect" href="download.html" title="Download">the download page for the latest versions</a>).</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-script</artifactId>
Modified: websites/production/camel/content/javascript.html
==============================================================================
--- websites/production/camel/content/javascript.html (original)
+++ websites/production/camel/content/javascript.html Fri Sep 6 08:19:34 2013
@@ -137,54 +137,8 @@
</div>
-<h3><a shape="rect" name="JavaScript-Attributes"></a>Attributes</h3>
-
-<p>You can add your own attributes with the <tt>attribute(name, value)</tt> DSL method, such as:</p>
-
-<p>In the sample below we add an attribute <tt>user</tt> that is an object we already have instantiated as myUser. This object has a getFirstName() method that we want to set as header on the message. We use the groovy language to concat the first and last name into a single string that is returned.</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("name").groovy("'$user.firstName $user.lastName'").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<h3><a shape="rect" name="JavaScript-Anyscriptinglanguage"></a>Any scripting language</h3>
-<p>Camel can run any JSR-223 scripting languages using the <tt>script</tt> DSL method such as:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("firstName").script("jaskel", "user.firstName").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<p>This is a bit different using the Spring DSL where you use the <b>expression</b> element that doesn't support setting attributes (yet):</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
- <from uri="direct:in"/>
- <setHeader headerName="firstName">
- <expression language="jaskel">user.firstName</expression>
- </setHeader>
- <to uri="seda:users"/>
-]]></script>
-</div></div>
-
-<p>You can also use predicates e.g. in a Filter:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
- <filter>
- <language language="beanshell">request.getHeaders().get("Foo").equals("Bar")</language>
- <to uri="direct:next" />
- </filter>
-]]></script>
-</div></div>
-
<p>See <a shape="rect" href="scripting-languages.html" title="Scripting Languages">Scripting Languages</a> for the list of languages with explicit DSL support.</p>
-<p>Some languages without specific DSL support but known to work with these generic methods include:</p>
-<div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh">Language</th><th colspan="1" rowspan="1" class="confluenceTh">Implementation</th><th colspan="1" rowspan="1" class="confluenceTh">language="..." value</th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">BeanShell</td><td colspan="1" rowspan="1" class="confluenceTd"><a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/servicemix/m2-repo/org/beanshell/bsh/2.0b5/bsh-2.0b5.jar">BeanShell 2.0b5</a></td><td colspan="1" rowspan="1" class="confluenceTd"><tt>beanshell</tt> or <tt>bsh</tt></td></tr></tbody></table>
-</div>
-
-
<h3><a shape="rect" name="JavaScript-AdditionalargumentstoScriptingEngine"></a>Additional arguments to ScriptingEngine</h3>
<p><b>Available as of Camel 2.8</b></p>
@@ -252,7 +206,7 @@ This is done using the following syntax:
<p>If you use maven you could just add the following to your pom.xml, substituting the version number for the latest & greatest release (see <a shape="rect" href="download.html" title="Download">the download page for the latest versions</a>).</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-script</artifactId>
Modified: websites/production/camel/content/php.html
==============================================================================
--- websites/production/camel/content/php.html (original)
+++ websites/production/camel/content/php.html Fri Sep 6 08:19:34 2013
@@ -107,54 +107,8 @@
</div>
-<h3><a shape="rect" name="PHP-Attributes"></a>Attributes</h3>
-
-<p>You can add your own attributes with the <tt>attribute(name, value)</tt> DSL method, such as:</p>
-
-<p>In the sample below we add an attribute <tt>user</tt> that is an object we already have instantiated as myUser. This object has a getFirstName() method that we want to set as header on the message. We use the groovy language to concat the first and last name into a single string that is returned.</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("name").groovy("'$user.firstName $user.lastName'").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<h3><a shape="rect" name="PHP-Anyscriptinglanguage"></a>Any scripting language</h3>
-<p>Camel can run any JSR-223 scripting languages using the <tt>script</tt> DSL method such as:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("firstName").script("jaskel", "user.firstName").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<p>This is a bit different using the Spring DSL where you use the <b>expression</b> element that doesn't support setting attributes (yet):</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
- <from uri="direct:in"/>
- <setHeader headerName="firstName">
- <expression language="jaskel">user.firstName</expression>
- </setHeader>
- <to uri="seda:users"/>
-]]></script>
-</div></div>
-
-<p>You can also use predicates e.g. in a Filter:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
- <filter>
- <language language="beanshell">request.getHeaders().get("Foo").equals("Bar")</language>
- <to uri="direct:next" />
- </filter>
-]]></script>
-</div></div>
-
<p>See <a shape="rect" href="scripting-languages.html" title="Scripting Languages">Scripting Languages</a> for the list of languages with explicit DSL support.</p>
-<p>Some languages without specific DSL support but known to work with these generic methods include:</p>
-<div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh">Language</th><th colspan="1" rowspan="1" class="confluenceTh">Implementation</th><th colspan="1" rowspan="1" class="confluenceTh">language="..." value</th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">BeanShell</td><td colspan="1" rowspan="1" class="confluenceTd"><a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/servicemix/m2-repo/org/beanshell/bsh/2.0b5/bsh-2.0b5.jar">BeanShell 2.0b5</a></td><td colspan="1" rowspan="1" class="confluenceTd"><tt>beanshell</tt> or <tt>bsh</tt></td></tr></tbody></table>
-</div>
-
-
<h3><a shape="rect" name="PHP-AdditionalargumentstoScriptingEngine"></a>Additional arguments to ScriptingEngine</h3>
<p><b>Available as of Camel 2.8</b></p>
@@ -222,7 +176,7 @@ This is done using the following syntax:
<p>If you use maven you could just add the following to your pom.xml, substituting the version number for the latest & greatest release (see <a shape="rect" href="download.html" title="Download">the download page for the latest versions</a>).</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-script</artifactId>
Modified: websites/production/camel/content/python.html
==============================================================================
--- websites/production/camel/content/python.html (original)
+++ websites/production/camel/content/python.html Fri Sep 6 08:19:34 2013
@@ -137,54 +137,8 @@
</div>
-<h3><a shape="rect" name="Python-Attributes"></a>Attributes</h3>
-
-<p>You can add your own attributes with the <tt>attribute(name, value)</tt> DSL method, such as:</p>
-
-<p>In the sample below we add an attribute <tt>user</tt> that is an object we already have instantiated as myUser. This object has a getFirstName() method that we want to set as header on the message. We use the groovy language to concat the first and last name into a single string that is returned.</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("name").groovy("'$user.firstName $user.lastName'").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<h3><a shape="rect" name="Python-Anyscriptinglanguage"></a>Any scripting language</h3>
-<p>Camel can run any JSR-223 scripting languages using the <tt>script</tt> DSL method such as:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("firstName").script("jaskel", "user.firstName").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<p>This is a bit different using the Spring DSL where you use the <b>expression</b> element that doesn't support setting attributes (yet):</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
- <from uri="direct:in"/>
- <setHeader headerName="firstName">
- <expression language="jaskel">user.firstName</expression>
- </setHeader>
- <to uri="seda:users"/>
-]]></script>
-</div></div>
-
-<p>You can also use predicates e.g. in a Filter:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
- <filter>
- <language language="beanshell">request.getHeaders().get("Foo").equals("Bar")</language>
- <to uri="direct:next" />
- </filter>
-]]></script>
-</div></div>
-
<p>See <a shape="rect" href="scripting-languages.html" title="Scripting Languages">Scripting Languages</a> for the list of languages with explicit DSL support.</p>
-<p>Some languages without specific DSL support but known to work with these generic methods include:</p>
-<div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh">Language</th><th colspan="1" rowspan="1" class="confluenceTh">Implementation</th><th colspan="1" rowspan="1" class="confluenceTh">language="..." value</th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">BeanShell</td><td colspan="1" rowspan="1" class="confluenceTd"><a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/servicemix/m2-repo/org/beanshell/bsh/2.0b5/bsh-2.0b5.jar">BeanShell 2.0b5</a></td><td colspan="1" rowspan="1" class="confluenceTd"><tt>beanshell</tt> or <tt>bsh</tt></td></tr></tbody></table>
-</div>
-
-
<h3><a shape="rect" name="Python-AdditionalargumentstoScriptingEngine"></a>Additional arguments to ScriptingEngine</h3>
<p><b>Available as of Camel 2.8</b></p>
@@ -252,7 +206,7 @@ This is done using the following syntax:
<p>If you use maven you could just add the following to your pom.xml, substituting the version number for the latest & greatest release (see <a shape="rect" href="download.html" title="Download">the download page for the latest versions</a>).</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-script</artifactId>
Modified: websites/production/camel/content/ruby.html
==============================================================================
--- websites/production/camel/content/ruby.html (original)
+++ websites/production/camel/content/ruby.html Fri Sep 6 08:19:34 2013
@@ -137,54 +137,8 @@
</div>
-<h3><a shape="rect" name="Ruby-Attributes"></a>Attributes</h3>
-
-<p>You can add your own attributes with the <tt>attribute(name, value)</tt> DSL method, such as:</p>
-
-<p>In the sample below we add an attribute <tt>user</tt> that is an object we already have instantiated as myUser. This object has a getFirstName() method that we want to set as header on the message. We use the groovy language to concat the first and last name into a single string that is returned.</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("name").groovy("'$user.firstName $user.lastName'").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<h3><a shape="rect" name="Ruby-Anyscriptinglanguage"></a>Any scripting language</h3>
-<p>Camel can run any JSR-223 scripting languages using the <tt>script</tt> DSL method such as:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("firstName").script("jaskel", "user.firstName").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<p>This is a bit different using the Spring DSL where you use the <b>expression</b> element that doesn't support setting attributes (yet):</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
- <from uri="direct:in"/>
- <setHeader headerName="firstName">
- <expression language="jaskel">user.firstName</expression>
- </setHeader>
- <to uri="seda:users"/>
-]]></script>
-</div></div>
-
-<p>You can also use predicates e.g. in a Filter:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
- <filter>
- <language language="beanshell">request.getHeaders().get("Foo").equals("Bar")</language>
- <to uri="direct:next" />
- </filter>
-]]></script>
-</div></div>
-
<p>See <a shape="rect" href="scripting-languages.html" title="Scripting Languages">Scripting Languages</a> for the list of languages with explicit DSL support.</p>
-<p>Some languages without specific DSL support but known to work with these generic methods include:</p>
-<div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh">Language</th><th colspan="1" rowspan="1" class="confluenceTh">Implementation</th><th colspan="1" rowspan="1" class="confluenceTh">language="..." value</th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">BeanShell</td><td colspan="1" rowspan="1" class="confluenceTd"><a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/servicemix/m2-repo/org/beanshell/bsh/2.0b5/bsh-2.0b5.jar">BeanShell 2.0b5</a></td><td colspan="1" rowspan="1" class="confluenceTd"><tt>beanshell</tt> or <tt>bsh</tt></td></tr></tbody></table>
-</div>
-
-
<h3><a shape="rect" name="Ruby-AdditionalargumentstoScriptingEngine"></a>Additional arguments to ScriptingEngine</h3>
<p><b>Available as of Camel 2.8</b></p>
@@ -252,7 +206,7 @@ This is done using the following syntax:
<p>If you use maven you could just add the following to your pom.xml, substituting the version number for the latest & greatest release (see <a shape="rect" href="download.html" title="Download">the download page for the latest versions</a>).</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-script</artifactId>