This is an automated email from the ASF dual-hosted git repository. orpiske pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit 06e4bd860e5b963759a22308e1331b5b349c0aaa Author: Otavio Rodolfo Piske <[email protected]> AuthorDate: Wed Feb 21 14:54:10 2024 +0100 CAMEL-20410: documentation fixes for camel-ognl - Fixed samples - Fixed grammar and typos - Fixed punctuation - Added and/or fixed links - Converted to use tabs --- components/camel-ognl/src/main/docs/ognl-language.adoc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/components/camel-ognl/src/main/docs/ognl-language.adoc b/components/camel-ognl/src/main/docs/ognl-language.adoc index 9eea23f1bf3..259e1a23588 100644 --- a/components/camel-ognl/src/main/docs/ognl-language.adoc +++ b/components/camel-ognl/src/main/docs/ognl-language.adoc @@ -11,12 +11,13 @@ *Since Camel {since}* -Camel allows http://commons.apache.org/proper/commons-ognl/[OGNL] (Apache Commons OGNL) to be +Camel allows https://en.wikipedia.org/wiki/OGNL[OGNL], +supported by http://commons.apache.org/proper/commons-ognl/[(Apache Commons OGNL)], to be used as an xref:manual::expression.adoc[Expression] or xref:manual::predicate.adoc[Predicate] in Camel routes. For example, you can use MVEL in a xref:manual::predicate.adoc[Predicate] -with the xref:eips:choice-eip.adoc[Content Based Router] EIP. +with the xref:eips:choice-eip.adoc[Content-Based Router] EIP. You can use OGNL dot notation to invoke operations. If you for instance have a body that contains a POJO that has a `getFamilyName` method then @@ -92,10 +93,10 @@ And in XML: == Loading script from external resource -You can externalize the script and have Camel load it from a resource +You can externalize the script and have Apache Camel load it from a resource such as `"classpath:"`, `"file:"`, or `"http:"`. This is done using the following syntax: `"resource:scheme:location"`, -e.g. to refer to a file on the classpath you can do: +e.g., to refer to a file on the classpath you can do: [source,java] ---- @@ -104,12 +105,11 @@ e.g. to refer to a file on the classpath you can do: == Dependencies -To use OGNL in your camel routes you need to add the dependency on -*camel-ognl* which implements the OGNL language. +To use OGNL in your camel routes, you need to add the dependency on +*camel-ognl*, which implements the OGNL language. -If you use maven you could just add the following to your pom.xml, -substituting the version number for the latest & greatest release (see -the download page for the latest versions). +If you use Maven, you could add the following to your `pom.xml`, +substituting the version number for the latest & greatest release. [source,xml] -------------------------------------
