Author: buildbot Date: Tue May 5 18:19:38 2015 New Revision: 950186 Log: Production update by buildbot for camel
Modified: 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/ognl.html 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 Tue May 5 18:19:38 2015 @@ -4040,11 +4040,11 @@ While not actual tutorials you might fin </div> </div> <h2 id="BookInOnePage-Preface">Preface</h2><p>This tutorial aims to guide the reader through the stages of creating a project which uses Camel to facilitate the routing of messages from a JMS queue to a <a shape="rect" class="external-link" href="http://www.springramework.org" rel="nofollow">Spring</a> service. The route works in a synchronous fashion returning a response to the client.</p><p><style type="text/css">/*<![CDATA[*/ -div.rbtoc1430792346435 {padding: 0px;} -div.rbtoc1430792346435 ul {list-style: disc;margin-left: 0px;} -div.rbtoc1430792346435 li {margin-left: 0px;padding-left: 0px;} +div.rbtoc1430849885330 {padding: 0px;} +div.rbtoc1430849885330 ul {list-style: disc;margin-left: 0px;} +div.rbtoc1430849885330 li {margin-left: 0px;padding-left: 0px;} -/*]]>*/</style></p><div class="toc-macro rbtoc1430792346435"> +/*]]>*/</style></p><div class="toc-macro rbtoc1430849885330"> <ul class="toc-indentation"><li><a shape="rect" href="#Tutorial-JmsRemoting-TutorialonSpringRemotingwithJMS">Tutorial on Spring Remoting with JMS</a></li><li><a shape="rect" href="#Tutorial-JmsRemoting-Preface">Preface</a></li><li><a shape="rect" href="#Tutorial-JmsRemoting-Prerequisites">Prerequisites</a></li><li><a shape="rect" href="#Tutorial-JmsRemoting-Distribution">Distribution</a></li><li><a shape="rect" href="#Tutorial-JmsRemoting-About">About</a></li><li><a shape="rect" href="#Tutorial-JmsRemoting-CreatetheCamelProject">Create the Camel Project</a> <ul class="toc-indentation"><li><a shape="rect" href="#Tutorial-JmsRemoting-UpdatethePOMwithDependencies">Update the POM with Dependencies</a></li></ul> </li><li><a shape="rect" href="#Tutorial-JmsRemoting-WritingtheServer">Writing the Server</a> @@ -6230,11 +6230,11 @@ So we completed the last piece in the pi <style type="text/css">/*<![CDATA[*/ -div.rbtoc1430792346720 {padding: 0px;} -div.rbtoc1430792346720 ul {list-style: disc;margin-left: 0px;} -div.rbtoc1430792346720 li {margin-left: 0px;padding-left: 0px;} +div.rbtoc1430849885746 {padding: 0px;} +div.rbtoc1430849885746 ul {list-style: disc;margin-left: 0px;} +div.rbtoc1430849885746 li {margin-left: 0px;padding-left: 0px;} -/*]]>*/</style><div class="toc-macro rbtoc1430792346720"> +/*]]>*/</style><div class="toc-macro rbtoc1430849885746"> <ul class="toc-indentation"><li><a shape="rect" href="#Tutorial-AXIS-Camel-TutorialusingAxis1.4withApacheCamel">Tutorial using Axis 1.4 with Apache Camel</a> <ul class="toc-indentation"><li><a shape="rect" href="#Tutorial-AXIS-Camel-Prerequisites">Prerequisites</a></li><li><a shape="rect" href="#Tutorial-AXIS-Camel-Distribution">Distribution</a></li><li><a shape="rect" href="#Tutorial-AXIS-Camel-Introduction">Introduction</a></li><li><a shape="rect" href="#Tutorial-AXIS-Camel-SettinguptheprojecttorunAxis">Setting up the project to run Axis</a> <ul class="toc-indentation"><li><a shape="rect" href="#Tutorial-AXIS-Camel-Maven2">Maven 2</a></li><li><a shape="rect" href="#Tutorial-AXIS-Camel-wsdl">wsdl</a></li><li><a shape="rect" href="#Tutorial-AXIS-Camel-ConfiguringAxis">Configuring Axis</a></li><li><a shape="rect" href="#Tutorial-AXIS-Camel-RunningtheExample">Running the Example</a></li></ul> @@ -8143,32 +8143,13 @@ This is done using the following syntax: </div></div> <p>Otherwise, you'll also need <a shape="rect" class="external-link" href="http://repo2.maven.org/maven2/org/mvel/mvel2/2.0.18/mvel2-2.0.18.jar" rel="nofollow">MVEL</a></p> -<h2 id="BookInOnePage-OGNL">OGNL</h2> - -<p>Camel allows <a shape="rect" class="external-link" href="http://www.opensymphony.com/ognl/" rel="nofollow">OGNL</a> to be used as an <a shape="rect" href="expression.html">Expression</a> or <a shape="rect" href="predicate.html">Predicate</a> the <a shape="rect" href="dsl.html">DSL</a> or <a shape="rect" href="xml-configuration.html">Xml Configuration</a>.</p> - -<p>You could use OGNL to create an <a shape="rect" href="predicate.html">Predicate</a> in a <a shape="rect" href="message-filter.html">Message Filter</a> or as an <a shape="rect" href="expression.html">Expression</a> for a <a shape="rect" href="recipient-list.html">Recipient List</a></p> - -<p>You can use OGNL dot notation to invoke operations. If you for instance have a body that contains a POJO that has a <code>getFamiliyName</code> method then you can construct the syntax as follows:</p> -<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> -<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[ -"request.body.familyName" +<h2 id="BookInOnePage-OGNL">OGNL</h2><p>Camel allows <a shape="rect" class="external-link" href="http://commons.apache.org/proper/commons-ognl/">OGNL</a> to be used as an <a shape="rect" href="expression.html">Expression</a> or <a shape="rect" href="predicate.html">Predicate</a> the <a shape="rect" href="dsl.html">DSL</a> or <a shape="rect" href="xml-configuration.html">Xml Configuration</a>.</p><p>You could use OGNL to create an <a shape="rect" href="predicate.html">Predicate</a> in a <a shape="rect" href="message-filter.html">Message Filter</a> or as an <a shape="rect" href="expression.html">Expression</a> for a <a shape="rect" href="recipient-list.html">Recipient List</a></p><p>You can use OGNL dot notation to invoke operations. If you for instance have a body that contains a POJO that has a <code>getFamiliyName</code> method then you can construct the syntax as follows:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA["request.body.familyName" // or "getRequest().getBody().getFamilyName()" ]]></script> -</div></div> - -<h3 id="BookInOnePage-Variables.3">Variables</h3> - -<div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p> Variable </p></th><th colspan="1" rowspan="1" class="confluenceTh"><p> Type </p></th><th colspan="1" rowspan="1" class="confluenceTh"><p> Description </p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>this</strong> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Exchange </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> the Exchange is the root object </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> exchange </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Exchange </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> the Exchange object </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> exception </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Throwable </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> the Exchange exception (if any) </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> exchangeId </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> String </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> the exchange id </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> fault </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Message </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> the Fault message (if any) </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> request </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Message </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> the exchange.in message </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> response </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Message </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> the exchange.out message (if any) </p></td></tr><tr><td colspan="1" rowspan ="1" class="confluenceTd"><p> properties </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Map </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> the exchange properties </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> property(name) </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Object </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> the property by the given name </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> property(name, type) </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Type </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> the property by the given name as the given type </p></td></tr></tbody></table></div> - - -<h3 id="BookInOnePage-Samples.2">Samples</h3> -<p>For example you could use OGNL inside a <a shape="rect" href="message-filter.html">Message Filter</a> in XML</p> - -<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> -<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[ -<route> +</div></div><h3 id="BookInOnePage-Variables.3">Variables</h3><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Variable</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>this</strong></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Exchange</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the Exchange is the root object</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>exchange</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Exchange</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the Exchange object</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>exception</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Throwable</p></td><td colspan="1" rowspan="1" class="c onfluenceTd"><p>the Exchange exception (if any)</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>exchangeId</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>String</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the exchange id</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>fault</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Message</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the Fault message (if any)</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>request</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Message</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the exchange.in message</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>response</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Message</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the exchange.out message (if any)</p></td></tr><tr><td colspa n="1" rowspan="1" class="confluenceTd"><p>properties</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Map</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the exchange properties</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>property(name)</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Object</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the property by the given name</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>property(name, type)</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Type</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the property by the given name as the given type</p></td></tr></tbody></table></div><h3 id="BookInOnePage-Samples.2">Samples</h3><p>For example you could use OGNL inside a <a shape="rect" href="message-filter.html">Message Filter</a> in XML</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl "> +<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[<route> <from uri="seda:foo"/> <filter> <ognl>request.headers.foo == 'bar'</ognl> @@ -8176,44 +8157,20 @@ This is done using the following syntax: </filter> </route> ]]></script> -</div></div> - -<p>And the sample using Java DSL:</p> -<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> -<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[ - from("seda:foo").filter().ognl("request.headers.foo == 'bar'").to("seda:bar"); +</div></div><p>And the sample using Java DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[ from("seda:foo").filter().ognl("request.headers.foo == 'bar'").to("seda:bar"); ]]></script> -</div></div> - -<h3 id="BookInOnePage-Loadingscriptfromexternalresource.2">Loading script from external resource</h3> -<p><strong>Available as of Camel 2.11</strong></p> - -<p>You can externalize the script and have Camel load it from a resource such as <code>"classpath:"</code>, <code>"file:"</code>, or <code>"http:"</code>.<br clear="none"> -This is done using the following syntax: <code>"resource:scheme:location"</code>, eg to refer to a file on the classpath you can do:</p> -<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> -<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[ -.setHeader("myHeader").ognl("resource:classpath:myognl.txt") +</div></div><h3 id="BookInOnePage-Loadingscriptfromexternalresource.2">Loading script from external resource</h3><p><strong>Available as of Camel 2.11</strong></p><p>You can externalize the script and have Camel load it from a resource such as <code>"classpath:"</code>, <code>"file:"</code>, or <code>"http:"</code>.<br clear="none"> This is done using the following syntax: <code>"resource:scheme:location"</code>, eg to refer to a file on the classpath you can do:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[.setHeader("myHeader").ognl("resource:classpath:myognl.txt") ]]></script> -</div></div> - - -<h3 id="BookInOnePage-Dependencies.6">Dependencies</h3> - -<p>To use OGNL in your camel routes you need to add the a dependency on <strong>camel-ognl</strong> which implements the OGNL language. </p> - -<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">the download page for the latest versions</a>).</p> - -<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> -<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[ -<dependency> +</div></div><h3 id="BookInOnePage-Dependencies.6">Dependencies</h3><p>To use OGNL in your camel routes you need to add the a dependency on <strong>camel-ognl</strong> which implements the OGNL language.</p><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">the download page for the latest versions</a>).</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[<dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-ognl</artifactId> <version>x.x.x</version> </dependency> ]]></script> -</div></div> - -<p>Otherwise, you'll also need <a shape="rect" class="external-link" href="http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.ognl/2.7.3_4/org.apache.servicemix.bundles.ognl-2.7.3_4.jar" rel="nofollow">OGNL</a></p> +</div></div><p>Otherwise, you'll also need <a shape="rect" class="external-link" href="http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.ognl/2.7.3_4/org.apache.servicemix.bundles.ognl-2.7.3_4.jar" rel="nofollow">OGNL</a></p> <h2 id="BookInOnePage-PropertyExpressionLanguage">Property Expression Language</h2><p>The Property Expression Language allows you to extract values of named exchange properties.</p> <div class="aui-message warning shadowed information-macro"> <span class="aui-icon icon-warning">Icon</span> <div class="message-content"> @@ -18860,11 +18817,11 @@ template.send("direct:alias-verify& </div> </div> <p>The <strong>cxf:</strong> component provides integration with <a shape="rect" href="http://cxf.apache.org">Apache CXF</a> for connecting to JAX-WS services hosted in CXF.</p><p><style type="text/css">/*<![CDATA[*/ -div.rbtoc1430792355702 {padding: 0px;} -div.rbtoc1430792355702 ul {list-style: disc;margin-left: 0px;} -div.rbtoc1430792355702 li {margin-left: 0px;padding-left: 0px;} +div.rbtoc1430849907590 {padding: 0px;} +div.rbtoc1430849907590 ul {list-style: disc;margin-left: 0px;} +div.rbtoc1430849907590 li {margin-left: 0px;padding-left: 0px;} -/*]]>*/</style></p><div class="toc-macro rbtoc1430792355702"> +/*]]>*/</style></p><div class="toc-macro rbtoc1430849907590"> <ul class="toc-indentation"><li><a shape="rect" href="#CXF-CXFComponent">CXF Component</a> <ul class="toc-indentation"><li><a shape="rect" href="#CXF-URIformat">URI format</a></li><li><a shape="rect" href="#CXF-Options">Options</a> <ul class="toc-indentation"><li><a shape="rect" href="#CXF-Thedescriptionsofthedataformats">The descriptions of the dataformats</a> Modified: websites/production/camel/content/book-languages-appendix.html ============================================================================== --- websites/production/camel/content/book-languages-appendix.html (original) +++ websites/production/camel/content/book-languages-appendix.html Tue May 5 18:19:38 2015 @@ -430,32 +430,13 @@ This is done using the following syntax: </div></div> <p>Otherwise, you'll also need <a shape="rect" class="external-link" href="http://repo2.maven.org/maven2/org/mvel/mvel2/2.0.18/mvel2-2.0.18.jar" rel="nofollow">MVEL</a></p> -<h2 id="BookLanguagesAppendix-OGNL">OGNL</h2> - -<p>Camel allows <a shape="rect" class="external-link" href="http://www.opensymphony.com/ognl/" rel="nofollow">OGNL</a> to be used as an <a shape="rect" href="expression.html">Expression</a> or <a shape="rect" href="predicate.html">Predicate</a> the <a shape="rect" href="dsl.html">DSL</a> or <a shape="rect" href="xml-configuration.html">Xml Configuration</a>.</p> - -<p>You could use OGNL to create an <a shape="rect" href="predicate.html">Predicate</a> in a <a shape="rect" href="message-filter.html">Message Filter</a> or as an <a shape="rect" href="expression.html">Expression</a> for a <a shape="rect" href="recipient-list.html">Recipient List</a></p> - -<p>You can use OGNL dot notation to invoke operations. If you for instance have a body that contains a POJO that has a <code>getFamiliyName</code> method then you can construct the syntax as follows:</p> -<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> -<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[ -"request.body.familyName" +<h2 id="BookLanguagesAppendix-OGNL">OGNL</h2><p>Camel allows <a shape="rect" class="external-link" href="http://commons.apache.org/proper/commons-ognl/">OGNL</a> to be used as an <a shape="rect" href="expression.html">Expression</a> or <a shape="rect" href="predicate.html">Predicate</a> the <a shape="rect" href="dsl.html">DSL</a> or <a shape="rect" href="xml-configuration.html">Xml Configuration</a>.</p><p>You could use OGNL to create an <a shape="rect" href="predicate.html">Predicate</a> in a <a shape="rect" href="message-filter.html">Message Filter</a> or as an <a shape="rect" href="expression.html">Expression</a> for a <a shape="rect" href="recipient-list.html">Recipient List</a></p><p>You can use OGNL dot notation to invoke operations. If you for instance have a body that contains a POJO that has a <code>getFamiliyName</code> method then you can construct the syntax as follows:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA["request.body.familyName" // or "getRequest().getBody().getFamilyName()" ]]></script> -</div></div> - -<h3 id="BookLanguagesAppendix-Variables.3">Variables</h3> - -<div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p> Variable </p></th><th colspan="1" rowspan="1" class="confluenceTh"><p> Type </p></th><th colspan="1" rowspan="1" class="confluenceTh"><p> Description </p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>this</strong> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Exchange </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> the Exchange is the root object </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> exchange </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Exchange </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> the Exchange object </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> exception </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Throwable </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> the Exchange exception (if any) </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> exchangeId </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> String </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> the exchange id </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> fault </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Message </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> the Fault message (if any) </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> request </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Message </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> the exchange.in message </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> response </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Message </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> the exchange.out message (if any) </p></td></tr><tr><td colspan="1" rowspan ="1" class="confluenceTd"><p> properties </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Map </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> the exchange properties </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> property(name) </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Object </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> the property by the given name </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> property(name, type) </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Type </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> the property by the given name as the given type </p></td></tr></tbody></table></div> - - -<h3 id="BookLanguagesAppendix-Samples.2">Samples</h3> -<p>For example you could use OGNL inside a <a shape="rect" href="message-filter.html">Message Filter</a> in XML</p> - -<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> -<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[ -<route> +</div></div><h3 id="BookLanguagesAppendix-Variables.3">Variables</h3><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Variable</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>this</strong></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Exchange</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the Exchange is the root object</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>exchange</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Exchange</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the Exchange object</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>exception</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Throwable</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the Exchange exception (if any)</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>exchangeId</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>String</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the exchange id</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>fault</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Message</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the Fault message (if any)</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>request</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Message</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the exchange.in message</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>response</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Message</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the exchange.out message (if any)</p></td></tr><tr><t d colspan="1" rowspan="1" class="confluenceTd"><p>properties</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Map</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the exchange properties</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>property(name)</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Object</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the property by the given name</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>property(name, type)</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Type</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the property by the given name as the given type</p></td></tr></tbody></table></div><h3 id="BookLanguagesAppendix-Samples.2">Samples</h3><p>For example you could use OGNL inside a <a shape="rect" href="message-filter.html">Message Filter</a> in XML</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[<route> <from uri="seda:foo"/> <filter> <ognl>request.headers.foo == 'bar'</ognl> @@ -463,44 +444,20 @@ This is done using the following syntax: </filter> </route> ]]></script> -</div></div> - -<p>And the sample using Java DSL:</p> -<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> -<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[ - from("seda:foo").filter().ognl("request.headers.foo == 'bar'").to("seda:bar"); +</div></div><p>And the sample using Java DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[ from("seda:foo").filter().ognl("request.headers.foo == 'bar'").to("seda:bar"); ]]></script> -</div></div> - -<h3 id="BookLanguagesAppendix-Loadingscriptfromexternalresource.2">Loading script from external resource</h3> -<p><strong>Available as of Camel 2.11</strong></p> - -<p>You can externalize the script and have Camel load it from a resource such as <code>"classpath:"</code>, <code>"file:"</code>, or <code>"http:"</code>.<br clear="none"> -This is done using the following syntax: <code>"resource:scheme:location"</code>, eg to refer to a file on the classpath you can do:</p> -<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> -<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[ -.setHeader("myHeader").ognl("resource:classpath:myognl.txt") +</div></div><h3 id="BookLanguagesAppendix-Loadingscriptfromexternalresource.2">Loading script from external resource</h3><p><strong>Available as of Camel 2.11</strong></p><p>You can externalize the script and have Camel load it from a resource such as <code>"classpath:"</code>, <code>"file:"</code>, or <code>"http:"</code>.<br clear="none"> This is done using the following syntax: <code>"resource:scheme:location"</code>, eg to refer to a file on the classpath you can do:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[.setHeader("myHeader").ognl("resource:classpath:myognl.txt") ]]></script> -</div></div> - - -<h3 id="BookLanguagesAppendix-Dependencies.6">Dependencies</h3> - -<p>To use OGNL in your camel routes you need to add the a dependency on <strong>camel-ognl</strong> which implements the OGNL language. </p> - -<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">the download page for the latest versions</a>).</p> - -<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> -<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[ -<dependency> +</div></div><h3 id="BookLanguagesAppendix-Dependencies.6">Dependencies</h3><p>To use OGNL in your camel routes you need to add the a dependency on <strong>camel-ognl</strong> which implements the OGNL language.</p><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">the download page for the latest versions</a>).</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[<dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-ognl</artifactId> <version>x.x.x</version> </dependency> ]]></script> -</div></div> - -<p>Otherwise, you'll also need <a shape="rect" class="external-link" href="http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.ognl/2.7.3_4/org.apache.servicemix.bundles.ognl-2.7.3_4.jar" rel="nofollow">OGNL</a></p> +</div></div><p>Otherwise, you'll also need <a shape="rect" class="external-link" href="http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.ognl/2.7.3_4/org.apache.servicemix.bundles.ognl-2.7.3_4.jar" rel="nofollow">OGNL</a></p> <h2 id="BookLanguagesAppendix-PropertyExpressionLanguage">Property Expression Language</h2><p>The Property Expression Language allows you to extract values of named exchange properties.</p> <div class="aui-message warning shadowed information-macro"> <span class="aui-icon icon-warning">Icon</span> <div class="message-content"> Modified: websites/production/camel/content/cache/main.pageCache ============================================================================== Binary files - no diff available. Modified: websites/production/camel/content/ognl.html ============================================================================== --- websites/production/camel/content/ognl.html (original) +++ websites/production/camel/content/ognl.html Tue May 5 18:19:38 2015 @@ -84,32 +84,13 @@ <tbody> <tr> <td valign="top" width="100%"> -<div class="wiki-content maincontent"><h2 id="OGNL-OGNL">OGNL</h2> - -<p>Camel allows <a shape="rect" class="external-link" href="http://www.opensymphony.com/ognl/" rel="nofollow">OGNL</a> to be used as an <a shape="rect" href="expression.html">Expression</a> or <a shape="rect" href="predicate.html">Predicate</a> the <a shape="rect" href="dsl.html">DSL</a> or <a shape="rect" href="xml-configuration.html">Xml Configuration</a>.</p> - -<p>You could use OGNL to create an <a shape="rect" href="predicate.html">Predicate</a> in a <a shape="rect" href="message-filter.html">Message Filter</a> or as an <a shape="rect" href="expression.html">Expression</a> for a <a shape="rect" href="recipient-list.html">Recipient List</a></p> - -<p>You can use OGNL dot notation to invoke operations. If you for instance have a body that contains a POJO that has a <code>getFamiliyName</code> method then you can construct the syntax as follows:</p> -<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> -<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[ -"request.body.familyName" +<div class="wiki-content maincontent"><h2 id="OGNL-OGNL">OGNL</h2><p>Camel allows <a shape="rect" class="external-link" href="http://commons.apache.org/proper/commons-ognl/">OGNL</a> to be used as an <a shape="rect" href="expression.html">Expression</a> or <a shape="rect" href="predicate.html">Predicate</a> the <a shape="rect" href="dsl.html">DSL</a> or <a shape="rect" href="xml-configuration.html">Xml Configuration</a>.</p><p>You could use OGNL to create an <a shape="rect" href="predicate.html">Predicate</a> in a <a shape="rect" href="message-filter.html">Message Filter</a> or as an <a shape="rect" href="expression.html">Expression</a> for a <a shape="rect" href="recipient-list.html">Recipient List</a></p><p>You can use OGNL dot notation to invoke operations. If you for instance have a body that contains a POJO that has a <code>getFamiliyName</code> method then you can construct the syntax as follows:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA["request.body.familyName" // or "getRequest().getBody().getFamilyName()" ]]></script> -</div></div> - -<h3 id="OGNL-Variables">Variables</h3> - -<div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p> Variable </p></th><th colspan="1" rowspan="1" class="confluenceTh"><p> Type </p></th><th colspan="1" rowspan="1" class="confluenceTh"><p> Description </p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>this</strong> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Exchange </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> the Exchange is the root object </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> exchange </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Exchange </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> the Exchange object </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> exception </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Throwable </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> the Exchange exception (if any) </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> exchangeId </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> String </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> the exchange id </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> fault </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Message </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> the Fault message (if any) </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> request </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Message </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> the exchange.in message </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> response </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Message </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> the exchange.out message (if any) </p></td></tr><tr><td colspan="1" rowspan ="1" class="confluenceTd"><p> properties </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Map </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> the exchange properties </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> property(name) </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Object </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> the property by the given name </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> property(name, type) </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Type </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> the property by the given name as the given type </p></td></tr></tbody></table></div> - - -<h3 id="OGNL-Samples">Samples</h3> -<p>For example you could use OGNL inside a <a shape="rect" href="message-filter.html">Message Filter</a> in XML</p> - -<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> -<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[ -<route> +</div></div><h3 id="OGNL-Variables">Variables</h3><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Variable</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>this</strong></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Exchange</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the Exchange is the root object</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>exchange</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Exchange</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the Exchange object</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>exception</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Throwable</p></td><td colspan="1" rowspan="1" class="confluenceTd "><p>the Exchange exception (if any)</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>exchangeId</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>String</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the exchange id</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>fault</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Message</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the Fault message (if any)</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>request</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Message</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the exchange.in message</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>response</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Message</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the exchange.out message (if any)</p></td></tr><tr><td colspan="1" rowsp an="1" class="confluenceTd"><p>properties</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Map</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the exchange properties</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>property(name)</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Object</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the property by the given name</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>property(name, type)</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Type</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the property by the given name as the given type</p></td></tr></tbody></table></div><h3 id="OGNL-Samples">Samples</h3><p>For example you could use OGNL inside a <a shape="rect" href="message-filter.html">Message Filter</a> in XML</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[<route> <from uri="seda:foo"/> <filter> <ognl>request.headers.foo == 'bar'</ognl> @@ -117,44 +98,20 @@ </filter> </route> ]]></script> -</div></div> - -<p>And the sample using Java DSL:</p> -<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> -<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[ - from("seda:foo").filter().ognl("request.headers.foo == 'bar'").to("seda:bar"); +</div></div><p>And the sample using Java DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[ from("seda:foo").filter().ognl("request.headers.foo == 'bar'").to("seda:bar"); ]]></script> -</div></div> - -<h3 id="OGNL-Loadingscriptfromexternalresource">Loading script from external resource</h3> -<p><strong>Available as of Camel 2.11</strong></p> - -<p>You can externalize the script and have Camel load it from a resource such as <code>"classpath:"</code>, <code>"file:"</code>, or <code>"http:"</code>.<br clear="none"> -This is done using the following syntax: <code>"resource:scheme:location"</code>, eg to refer to a file on the classpath you can do:</p> -<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> -<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[ -.setHeader("myHeader").ognl("resource:classpath:myognl.txt") +</div></div><h3 id="OGNL-Loadingscriptfromexternalresource">Loading script from external resource</h3><p><strong>Available as of Camel 2.11</strong></p><p>You can externalize the script and have Camel load it from a resource such as <code>"classpath:"</code>, <code>"file:"</code>, or <code>"http:"</code>.<br clear="none"> This is done using the following syntax: <code>"resource:scheme:location"</code>, eg to refer to a file on the classpath you can do:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[.setHeader("myHeader").ognl("resource:classpath:myognl.txt") ]]></script> -</div></div> - - -<h3 id="OGNL-Dependencies">Dependencies</h3> - -<p>To use OGNL in your camel routes you need to add the a dependency on <strong>camel-ognl</strong> which implements the OGNL language. </p> - -<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">the download page for the latest versions</a>).</p> - -<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> -<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[ -<dependency> +</div></div><h3 id="OGNL-Dependencies">Dependencies</h3><p>To use OGNL in your camel routes you need to add the a dependency on <strong>camel-ognl</strong> which implements the OGNL language.</p><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">the download page for the latest versions</a>).</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[<dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-ognl</artifactId> <version>x.x.x</version> </dependency> ]]></script> -</div></div> - -<p>Otherwise, you'll also need <a shape="rect" class="external-link" href="http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.ognl/2.7.3_4/org.apache.servicemix.bundles.ognl-2.7.3_4.jar" rel="nofollow">OGNL</a></p></div> +</div></div><p>Otherwise, you'll also need <a shape="rect" class="external-link" href="http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.ognl/2.7.3_4/org.apache.servicemix.bundles.ognl-2.7.3_4.jar" rel="nofollow">OGNL</a></p></div> </td> <td valign="top"> <div class="navigation">