Skip to content

Commit

Permalink
spring-projectsGH-3026: restored back to default
Browse files Browse the repository at this point in the history
restored back to default
  • Loading branch information
Joaquin Santana committed Oct 22, 2019
1 parent 52e4517 commit 7690d8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Expand Up @@ -23,7 +23,6 @@
import org.springframework.integration.file.remote.session.SessionFactory;
import org.springframework.integration.file.support.FileExistsMode;
import org.springframework.integration.ftp.outbound.FtpMessageHandler;
import org.springframework.integration.ftp.session.FtpRemoteFileTemplate;

/**
* A {@link FileTransferringMessageHandlerSpec} for FTP.
Expand All @@ -42,7 +41,7 @@ public class FtpMessageHandlerSpec extends FileTransferringMessageHandlerSpec<FT
}

FtpMessageHandlerSpec(RemoteFileTemplate<FTPFile> remoteFileTemplate, FileExistsMode fileExistsMode) {
this.target = new FtpMessageHandler(new FtpRemoteFileTemplate(remoteFileTemplate.getSessionFactory()), fileExistsMode);
this.target = new FtpMessageHandler(remoteFileTemplate, fileExistsMode);
}

}
Expand Up @@ -48,8 +48,8 @@ public FtpMessageHandler(FtpRemoteFileTemplate remoteFileTemplate) {
super(remoteFileTemplate);
}

public FtpMessageHandler(FtpRemoteFileTemplate template, FileExistsMode fileExistsMode) {
super(template, fileExistsMode);
public FtpMessageHandler(RemoteFileTemplate<FTPFile> remoteFileTemplate, FileExistsMode mode) {
super(remoteFileTemplate, mode);
}


Expand Down

0 comments on commit 7690d8c

Please sign in to comment.