This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
commit 1098bb3b05cb5e63526c574fdcd4741bf8bdce57 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Mon Jan 13 09:12:28 2020 +0100 Regen docs --- docs/components/modules/ROOT/pages/file-component.adoc | 12 ++++++++++-- docs/components/modules/ROOT/pages/ftp-component.adoc | 6 +++--- docs/components/modules/ROOT/pages/ignite.adoc | 5 ++++- .../components/modules/ROOT/pages/jacksonxml-dataformat.adoc | 5 ++++- docs/components/modules/ROOT/pages/jasypt.adoc | 6 ++++-- docs/components/modules/ROOT/pages/log-component.adoc | 6 +++++- 6 files changed, 30 insertions(+), 10 deletions(-) diff --git a/docs/components/modules/ROOT/pages/file-component.adoc b/docs/components/modules/ROOT/pages/file-component.adoc index 0b1d096..0156d64 100644 --- a/docs/components/modules/ROOT/pages/file-component.adoc +++ b/docs/components/modules/ROOT/pages/file-component.adoc @@ -209,8 +209,12 @@ Notice: The various read locks is not all suited to work in clustered mode, wher |=== // endpoint options: END +[TIP] +==== +*Default behavior for file producer* -TIP: *Default behavior for file producer* By default it will override any existing file, if one exist with the same name. +By default it will override any existing file, if one exist with the same name. +==== // spring-boot-auto-configure options: START == Spring Boot Auto-Configuration @@ -1028,11 +1032,15 @@ file: </route> ---- -TIP: *URI options can reference beans using the # syntax* +[TIP] +==== +*URI options can reference beans using the # syntax* + In the Spring DSL route above notice that we can refer to beans in the Registry by prefixing the id with `#`. So writing `sorter=#mySorter`, will instruct Camel to go look in the Registry for a bean with the ID, `mySorter`. +==== === Sorting using sortBy diff --git a/docs/components/modules/ROOT/pages/ftp-component.adoc b/docs/components/modules/ROOT/pages/ftp-component.adoc index d48e5eb..ec1bd77 100644 --- a/docs/components/modules/ROOT/pages/ftp-component.adoc +++ b/docs/components/modules/ROOT/pages/ftp-component.adoc @@ -449,13 +449,13 @@ as files then you need to route to a file endpoint such as: from("ftp://some...@someserver.com?password=secret&localWorkDirectory=/tmp").to("file://inbox"); ---- -[TIP, caption='Optimization by renaming work file'] -=== +[TIP] +==== The route above is ultra efficient as it avoids reading the entire file content into memory. It will download the remote file directly to a local file stream. The `java.io.File` handle is then used as the Exchange body. The file producer leverages this fact and can work directly on the work file `java.io.File` handle and perform a `java.io.File.rename` to the target filename. As Camel knows it's a local work file, it can optimize and use a rename instead of a file copy, as the work file is meant to be deleted anyway. -=== +==== == Stepwise changing directories diff --git a/docs/components/modules/ROOT/pages/ignite.adoc b/docs/components/modules/ROOT/pages/ignite.adoc index 5c1f5d0..7a045b0 100644 --- a/docs/components/modules/ROOT/pages/ignite.adoc +++ b/docs/components/modules/ROOT/pages/ignite.adoc @@ -96,7 +96,10 @@ Some Ignite operations can deal with multiple elements at once, if passed a Coll [[Ignite-OsgiSupport]] == OSGi Support -TIP: Apache Ignite supports OSGi from version 1.5.0.final onwards. +[TIP] +==== +Apache Ignite supports OSGi from version 1.5.0.final onwards. +==== When installing on Apache Karaf: diff --git a/docs/components/modules/ROOT/pages/jacksonxml-dataformat.adoc b/docs/components/modules/ROOT/pages/jacksonxml-dataformat.adoc index 16de590..065a33a 100644 --- a/docs/components/modules/ROOT/pages/jacksonxml-dataformat.adoc +++ b/docs/components/modules/ROOT/pages/jacksonxml-dataformat.adoc @@ -10,9 +10,12 @@ https://github.com/FasterXML/jackson-dataformat-xml[XMLMapper extension] to unmarshal an XML payload into Java objects or to marshal Java objects into an XML payload. -TIP: If you are familiar with Jackson, this XML data format behaves in the +[TIP] +==== +If you are familiar with Jackson, this XML data format behaves in the same way as its JSON counterpart, and thus can be used with classes annotated for JSON serialization/deserialization. +==== This extension also mimics https://github.com/FasterXML/jackson-dataformat-xml/blob/master/README.md[JAXB's diff --git a/docs/components/modules/ROOT/pages/jasypt.adoc b/docs/components/modules/ROOT/pages/jasypt.adoc index b7a4df7..61d122b 100644 --- a/docs/components/modules/ROOT/pages/jasypt.adoc +++ b/docs/components/modules/ROOT/pages/jasypt.adoc @@ -101,8 +101,10 @@ The idea is then to use those encrypted values in your xref:properties-component.adoc[Properties] files. Notice how the password value is encrypted and the value has the tokens surrounding `ENC(value here)` -TIP: When running jasypt tooling, if you come across `java.lang.NoClassDefFoundError: org/jasypt/encryption/pbe/StandardPBEStringEncryptor` this means you have to include jasypt\{version\}.jar in your classpath. Example of adding jar to classpath may be copying jasypt\{version\}.jar to $JAVA_HOME\jre\lib\ext if you are going to run as `java -jar ...`. The latter may be adding jasypt\{version\}.jar to classpath using `-cp`, in that case you should provide main class to execute as eg: `jav [...] - +[TIP] +==== +When running jasypt tooling, if you come across `java.lang.NoClassDefFoundError: org/jasypt/encryption/pbe/StandardPBEStringEncryptor` this means you have to include jasypt\{version\}.jar in your classpath. Example of adding jar to classpath may be copying jasypt\{version\}.jar to $JAVA_HOME\jre\lib\ext if you are going to run as `java -jar ...`. The latter may be adding jasypt\{version\}.jar to classpath using `-cp`, in that case you should provide main class to execute as eg: `java -cp [...] +==== == URI Options diff --git a/docs/components/modules/ROOT/pages/log-component.adoc b/docs/components/modules/ROOT/pages/log-component.adoc index 750e702..117a209 100644 --- a/docs/components/modules/ROOT/pages/log-component.adoc +++ b/docs/components/modules/ROOT/pages/log-component.adoc @@ -54,10 +54,14 @@ The default logger logs every exchange (_regular logging_). But Camel also ships with the `Throughput` logger, which is used whenever the `groupSize` option is specified. -TIP:*Also a log in the DSL* +[TIP] +==== +*Also a log in the DSL* + There is also a `log` directly in the DSL, but it has a different purpose. Its meant for lightweight and human logs. See more details at LogEIP. +==== == Options