From 48ae91e3d9f2e45a1d81a3bbf0f9f37822f7e3dd Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Thu, 17 Jan 2019 17:55:57 -0500 Subject: [PATCH] Docs: Fix File.renameTo() Expressions https://stackoverflow.com/questions/30151642/moving-processed-files-to-another-directory-using-spring-integration-ftp-inbound/30152053?noredirect=1#comment95312701_30152053 - also fix some PDF overflows --- src/reference/asciidoc/message.adoc | 19 ++++++++++--------- src/reference/asciidoc/mongodb.adoc | 2 +- src/reference/asciidoc/sftp.adoc | 2 +- src/reference/asciidoc/transactions.adoc | 6 ++++-- 4 files changed, 16 insertions(+), 13 deletions(-) diff --git a/src/reference/asciidoc/message.adoc b/src/reference/asciidoc/message.adoc index e2a8589fee..8c3f99332a 100644 --- a/src/reference/asciidoc/message.adoc +++ b/src/reference/asciidoc/message.adoc @@ -195,16 +195,17 @@ The following table describes headers that also appear in the `IntegrationMessag | Header Type | Usage -| `IntegrationMessageHeaderAccessor. -SEQUENCE_DETAILS` -| `java.util.` -`List>` -| A stack of correlation data used when nested correlation is needed (for example, `splitter->...->splitter->...->aggregator->...->aggregator`). +| IntegrationMessageHeaderAccessor. +SEQUENCE_DETAILS +| java.util. +List> +| A stack of correlation data used when nested correlation is needed (for example, +`splitter->...->splitter->...->aggregator->...->aggregator`). -| `IntegrationMessageHeaderAccessor. -ROUTING_SLIP` -| `java.util.` -`Map, Integer>` +| IntegrationMessageHeaderAccessor. +ROUTING_SLIP +| java.util. +Map, Integer> | See <>. |=== diff --git a/src/reference/asciidoc/mongodb.adoc b/src/reference/asciidoc/mongodb.adoc index 4ae9e451a0..df767c4490 100644 --- a/src/reference/asciidoc/mongodb.adoc +++ b/src/reference/asciidoc/mongodb.adoc @@ -365,7 +365,7 @@ If this attribute is not provided, the default value is `org.bson.Document`. * `query` or `query-expression`: Specifies the MongoDB query. See the http://www.mongodb.org/display/DOCS/Querying[MongoDB documentation] for more query samples. * `collection-callback`: Reference to an instance of `org.springframework.data.mongodb.core.CollectionCallback`. -Preferable an instance of `org.springframework.integration.mongodb.outbound.MessageCollectionCallback` since 5.0.11 with the request message context. +Preferable an instance of `o.s.i.mongodb.outbound.MessageCollectionCallback` since 5.0.11 with the request message context. See its Javadocs for more information. NOTE: You can not have both `collection-callback` and any of the query attributes. diff --git a/src/reference/asciidoc/sftp.adoc b/src/reference/asciidoc/sftp.adoc index 043ba59812..f3936042fb 100644 --- a/src/reference/asciidoc/sftp.adoc +++ b/src/reference/asciidoc/sftp.adoc @@ -469,7 +469,7 @@ The preceding configuration works for any `ResettableFileListFilter`. Starting with version 5.0, the inbound channel adapter can build sub-directories locally, according to the generated local file name. That can be a remote sub-path as well. To be able to read a local directory recursively for modification according to the hierarchy support, you can now supply an internal `FileReadingMessageSource` with a new `RecursiveDirectoryScanner` based on the `Files.walk()` algorithm. -See https://docs.spring.io/spring-integration/api/org/springframework/integration/file/remote/synchronizer/AbstractInboundFileSynchronizingMessageSource.html#setScanner-org.springframework.integration.file.DirectoryScanner[`AbstractInboundFileSynchronizingMessageSource.setScanner()]` for more information. +See https://docs.spring.io/spring-integration/api/org/springframework/integration/file/remote/synchronizer/AbstractInboundFileSynchronizingMessageSource.html#setScanner-org.springframework.integration.file.DirectoryScanner[`AbstractInboundFileSynchronizingMessageSource.setScanner()`] for more information. Also, you can now switch the `AbstractInboundFileSynchronizingMessageSource` to the `WatchService`-based `DirectoryScanner` by using `setUseWatchService()` option. It is also configured for all the `WatchEventType` instances to react for any modifications in local directory. The reprocessing sample shown earlier is based on the built-in functionality of the `FileReadingMessageSource.WatchServiceDirectoryScanner`, which uses `ResettableFileListFilter.remove()` when the file is deleted (`StandardWatchEventKinds.ENTRY_DELETE`) from the local directory. diff --git a/src/reference/asciidoc/transactions.adoc b/src/reference/asciidoc/transactions.adoc index bfacddeabc..d8c4f555f5 100644 --- a/src/reference/asciidoc/transactions.adoc +++ b/src/reference/asciidoc/transactions.adoc @@ -207,8 +207,10 @@ The following example shows how to use the namespace to configure a file inbound - - + + ---- ====