INT-4356: FileTransferMH: Add string SpEL setters

JIRA: https://jira.spring.io/browse/INT-4356

**Cherry-pick to 4.3.x**

Address PR comments:
* Remove unused variable in the test case
* Add string-based SpEL setters to the `AbstractInboundFileSynchronizer`
* Fix `@since` in the `FileTransferringMessageHandler` to the proper version
This commit is contained in:
Artem Bilan
2017-10-09 16:29:54 -04:00
committed by Gary Russell
parent a5d30b9f66
commit 1fa73a9728
6 changed files with 53 additions and 7 deletions

View File

@@ -720,7 +720,7 @@ public class FtpJavaApplication {
@ServiceActivator(inputChannel = "ftpChannel")
public MessageHandler handler() {
FtpMessageHandler handler = new FtpMessageHandler(ftpSessionFactory());
handler.setRemoteDirectoryExpression(new LiteralExpression("remote-target-dir"));
handler.setRemoteDirectoryExpressionString("headers['remote-target-dir']");
handler.setFileNameGenerator(new FileNameGenerator() {
@Override

View File

@@ -773,7 +773,7 @@ public class SftpJavaApplication {
@ServiceActivator(inputChannel = "toSftpChannel")
public MessageHandler handler() {
SftpMessageHandler handler = new SftpMessageHandler(sftpSessionFactory());
handler.setRemoteDirectoryExpression(new LiteralExpression("remote-target-dir"));
handler.setRemoteDirectoryExpressionString("headers['remote-target-dir']");
handler.setFileNameGenerator(new FileNameGenerator() {
@Override