New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor FileTransferringMessageHandler impls and resepctive Java DSL components #3092
Comments
I'm going to give a look to this as well! |
Kinda breaking change in the binary. Moving to the next release. |
Hi artembilan , I am newbie to GitHub contributions. Please let me know if I can take a look into this issue. Thanks |
Hi @deepak5127 , Yes, you definitely welcome to take a look into this. Feel free to ask more question here if any. Thank you for consider to fix it! |
Sure, thanks @artembilan |
@artembilan Started looking into FtpMessageHandlerSpec refacotring. I see RemoteFileTemplate is used in all three specs - inbound, outbound and gateway. The issue says to refactor only FtpMessageHandlerSpec. So should I keep FtpOutboundGatewaySpec and FtpStreamingInboundChannelAdapterSpec as - is ? |
Let's fix |
Sure, thanks |
Sorry one more question, FtpMessageHandlerSpec and SftpMessageHandlerSpec are called from Ftp and Sftp classes. Should i deprecate methods which has (RemoteFileTemplate remoteFileTemplate) and (RemoteFileTemplate remoteFileTemplate, FileExistsMode fileExistsMode) in favor of their respective SftpRemoteFileTemplate and FtpRemoteFileTemplate ? |
That's correct. I'm fully agree that we need to follow that change anyway. |
Thanks @artembilan . I have completed the code changes in my local branch. Couple of questions,
|
Your observation is correct:
Thanks; looking forward for Pull Request from you! |
@artembilan Created PR |
The
FileTransferringMessageHandler
hierarchy possible refactoring:SftpMessageHandler
always comes only with theSftpRemoteFileTemplate
, so it looks like anFtpMessageHandler
has to require only itsFtpRemoteFileTemplate
. ThereforeFtpMessageHandler(RemoteFileTemplate<FTPFile> remoteFileTemplate, FileExistsMode mode)
is deprecated and must be replaced with theFtpRemoteFileTemplate
-based one.SftpMessageHandler
cannot be created from the basicRemoteFileTemplate
, itsSftpMessageHandlerSpec
must require a properSftpRemoteFileTemplate
. Therefore those ctors must be deprecated in favor of newly introduced forSftpRemoteFileTemplate
FtpMessageHandlerSpec
FileTransferringMessageHandlerSpec
, and therefore -FileTransferringMessageHandler
should exist for a while. There might be some use-cases when we can fully rely on the genericRemoteFileTemplate
.The text was updated successfully, but these errors were encountered: