Skip to content

Commit

Permalink
Doc Polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
garyrussell committed Feb 23, 2017
1 parent 019946b commit ea66259
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
5 changes: 1 addition & 4 deletions src/reference/asciidoc/ftp.adoc
Expand Up @@ -537,10 +537,7 @@ The java configuration below shows one technique to remove the remote file after
Use the `max-fetch-size` attribute to limit the number of files fetched on each poll when a fetch is necessary; set to 1 and use a persistent filter when running in a clustered environment.

The adapter puts the remote directory and file name in headers `FileHeaders.REMOTE_DIRECTORY` and `FileHeaders.REMOTE_FILE` respectively.
Starting with _version 5.0_, complete remote file information, in JSON, is provided in the `FileHeaders.REMOTE_FILE_INFO` header, if a supported JSON object mapper on the classpath - currently Jackson 2 and Boon.

Common properties are available as top level map entries, but the complete `FTPFile` object is included, under key `fileInfo`, providing all properties supported by the underlying library.
While there is some duplication with the top-level entries, the top level entries provide a consistent attribute set between FTP and SFTP.
Starting with _version 5.0_, additional remote file information, in JSON, is provided in the `FileHeaders.REMOTE_FILE_INFO` header.

==== Configuring with Java Configuration

Expand Down
5 changes: 1 addition & 4 deletions src/reference/asciidoc/sftp.adoc
Expand Up @@ -576,10 +576,7 @@ The java configuration below shows one technique to remove the remote file after
Use the `max-fetch-size` attribute to limit the number of files fetched on each poll when a fetch is necessary; set to 1 and use a persistent filter when running in a clustered environment.

The adapter puts the remote directory and file name in headers `FileHeaders.REMOTE_DIRECTORY` and `FileHeaders.REMOTE_FILE` respectively.
Starting with _version 5.0_, complete remote file information, in JSON, is provided in the `FileHeaders.REMOTE_FILE_INFO` header, if a supported JSON object mapper on the classpath - currently Jackson 2 and Boon (Jackson is recommended).

Common properties are available as top level map entries, but the complete JSch `LsEntry` object is included, under key `fileInfo`, providing all properties supported by the underlying library.
While there is some duplication with the top-level entries, the top level entries provide a consistent attribute set between FTP and SFTP.
Starting with _version 5.0_, additional remote file information, in JSON, is provided in the `FileHeaders.REMOTE_FILE_INFO` header.

==== Configuring with Java Configuration

Expand Down
2 changes: 1 addition & 1 deletion src/reference/asciidoc/whats-new.adoc
Expand Up @@ -85,7 +85,7 @@ See <<ftp-outbound-gateway>> and <<sftp-outbound-gateway>> for more information.
The FTP and SFTP outbound gateways now support the `REPLACE_IF_MODIFIED` `FileExistsMode` when fetching remote files.
See <<ftp-outbound-gateway>> and <<sftp-outbound-gateway>> for more information.

If Jackson (or Boon) is on the classpath, the (S)FTP streaming inbound channel adapters now add a JSON representation of the remote file information in a message header.
The (S)FTP streaming inbound channel adapters now add a JSON representation of the remote file information in a message header.
See <<ftp-streaming>> and <<sftp-streaming>> for more information.

==== Integration Properties
Expand Down

0 comments on commit ea66259

Please sign in to comment.